/* 
* northcoast.ai - Main Stylesheet
* A modern, responsive design for an AI-focused business website
*/

/* ===== VARIABLES ===== */
:root {
    /* Color Palette - Cleveland Inspired */
    --primary-color: #e35205; /* Cleveland Browns Orange */
    --primary-dark: #c44500;
    --primary-light: #ff6d2e;
    --secondary-color: #041e42; /* Cleveland Guardians Navy */
    --accent-color: #860038; /* Cleveland Cavaliers Wine */
    --accent-light: #ffb81c; /* Cleveland Cavaliers Gold */
    --lake-blue: #0077b6; /* Lake Erie Blue */
    --lake-teal: #00b4d8; /* Lake Erie Teal */
    --rock-purple: #6a0dad; /* Rock and Roll Purple */
    --rock-red: #d90429; /* Rock and Roll Red */
    --dark-blue: #03045e;
    --light-blue: #caf0f8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Rubik', sans-serif;
    --logo-font: 'Orbitron', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    
    /* Shadows */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-dark); /* AA: 5:1 on white (brand orange #e35205 is only 3.8:1) */
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--light-blue);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 82, 5, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-light), var(--primary-color));
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(227, 82, 5, 0.5);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-light);
}

.btn-primary:hover::after {
    opacity: 0.5;
    filter: blur(15px);
}

.btn-secondary {
    background: rgba(255, 184, 28, 0.15);
    color: var(--primary-dark); /* AA on the pale-gold tint; gold text (#ffb81c) failed contrast on white sections */
    border: 2px solid var(--accent-light);
    box-shadow: 0 4px 15px rgba(255, 184, 28, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: var(--accent-light);
    color: var(--secondary-color);
    border-color: var(--accent-light);
    box-shadow: 0 6px 25px rgba(255, 184, 28, 0.4);
    transform: translateY(-5px) scale(1.02);
    font-weight: 700;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-fast);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--logo-font);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
}

.logo-text {
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--lake-teal) 0%, var(--accent-light) 100%);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text::before {
    transform: scaleX(1);
}

.logo-dot {
    color: var(--accent-light);
    position: relative;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--heading-font);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-light);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lake-teal) 0%, var(--accent-light) 100%);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

.nav-menu a:hover:after, .nav-menu a.active:after {
    width: 100%;
    transform: translateY(-2px);
}

.nav-menu a:before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    opacity: 0;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.nav-menu a:hover:before, .nav-menu a.active:before {
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white); /* sits on the navy header — dark-gray was near-invisible on mobile */
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--lake-blue) 70%, var(--lake-teal) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,50 Q25,60 50,50 T100,50 V100 H0 Z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: 400px;
    background-repeat: repeat-x;
    background-position: bottom;
    opacity: 0.3;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 400px bottom;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.hero-content h1 .accent {
    color: var(--accent-light);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--light-blue);
    max-width: 90%;
    line-height: 1.6;
}

.hero-image {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.ai-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rock-purple) 0%, var(--rock-red) 50%, var(--primary-color) 100%);
    opacity: 0.8;
    z-index: 1;
}

.ai-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23ffffff" opacity="0.05" width="100" height="100"/><path d="M50,30 L70,50 L50,70 L30,50 Z" stroke="%23ffffff" stroke-width="1" fill="none"/><circle cx="50" cy="50" r="30" stroke="%23ffffff" stroke-width="1" fill="none"/><circle cx="50" cy="50" r="15" stroke="%23ffffff" stroke-width="1" fill="none"/><line x1="20" y1="50" x2="80" y2="50" stroke="%23ffffff" stroke-width="1"/><line x1="50" y1="20" x2="50" y2="80" stroke="%23ffffff" stroke-width="1"/></svg>');
    background-size: 200px;
    background-repeat: repeat;
    background-position: center;
    z-index: 2;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    text-align: center;
}

.services-overview h2 {
    display: inline-block;
    margin-bottom: 3rem;
}

.services-overview h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Give each service its own Cleveland-palette identity so the grid isn't three
   identical cards. Card 1 stays Browns orange; 2 = Lake Erie blue; 3 = Cavs wine. */
.services-grid .service-card:nth-child(2):before { background: var(--lake-blue); }
.services-grid .service-card:nth-child(2) .service-icon { color: var(--lake-blue); }
.services-grid .service-card:nth-child(3):before { background: var(--accent-color); }
.services-grid .service-card:nth-child(3) .service-icon { color: var(--accent-color); }

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cleveland-skyline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.cleveland-skyline-img:hover {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.image-placeholder:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    opacity: 0.2;
}

/* ===== OUR WORK ===== */
/* Quiet like the community section below: proof of capability, not a sales
   panel. No motion, no gradients; the scroll-reveal JS deliberately skips
   these cards so they're visible even if JS fails. */
.our-work {
    background-color: var(--white);
}

.our-work h2 {
    color: var(--secondary-color);
}

.our-work-intro {
    max-width: 760px;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.work-card {
    background-color: var(--light-gray);
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1.75rem;
}

.work-status {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.work-status--live {
    color: #1c7a3d; /* AA on the light-gray card */
}

.work-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.work-card p {
    color: var(--dark-gray);
}

.work-note {
    color: var(--medium-gray);
    font-style: italic;
    font-size: 0.95rem;
}

.work-link {
    display: inline-block;
    color: #00618f; /* AA on the light-gray card */
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== COMMUNITY WORK ===== */
/* Deliberately quiet: no motion, no gradients — this section is a memorial
   and proof-of-work, not a sales panel. */
.community-work {
    background-color: var(--light-gray);
}

.community-work .container {
    max-width: 1040px;
}

.community-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.community-work h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.community-work p {
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
}

.community-work p a {
    color: #00618f; /* darker lake-blue: AA (4.46:1 lake-blue failed on the light-gray panel) */
    text-decoration: underline;
}

/* btn-secondary text (#c44500) is AA on white but 4.26:1 on this light-gray
   panel; darken just here so the button elsewhere is unaffected. */
.community-work .btn-secondary {
    color: #a63c00;
}

.community-facts {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.community-facts li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    color: var(--medium-gray);
}

.community-facts li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Two-card gallery of live pro-bono projects (screenshot + link). Quiet cards,
   no motion; the scroll-reveal JS deliberately skips them. */
.community-intro {
    max-width: 760px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 2.25rem;
}

.community-card {
    background-color: var(--white);
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
}

.community-shot { display: block; line-height: 0; }

.community-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e2e2e2;
}

.community-card h3 {
    color: var(--secondary-color);
    margin: 1.25rem 1.5rem 0.6rem;
}

.community-card > p {
    margin: 0 1.5rem 1rem;
}

.community-card .community-facts {
    margin: 0 1.5rem 1.25rem;
}

.community-link {
    margin: auto 1.5rem 0;
    color: #00618f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.community-close {
    max-width: 820px;
    margin-top: 2.25rem;
    font-style: italic;
    color: var(--medium-gray);
}

/* ===== CTA SECTION ===== */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--rock-purple) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23ffffff" stroke-width="1" stroke-dasharray="5,5" opacity="0.2"/></svg>');
    background-size: 50px;
    opacity: 0.3;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light), var(--lake-teal), var(--rock-purple), var(--primary-color));
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta h2:after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-light);
    height: 4px;
    width: 80px;
    border-radius: 2px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--white); /* AA: light-blue was only 4.1:1 on the gradient's dark-orange end */
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
    padding: 5rem 0;
}

.service-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-features {
    margin: 2rem 0;
}

.service-features li {
    display: flex;
    margin-bottom: 1.5rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.service-features h3 {
    margin-bottom: 0.5rem;
}

.service-image {
    height: 400px;
    position: relative;
}

.image-ai-process, .image-website-construction, .image-manufacturing {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--card-shadow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* On-brand illustrative panels (swap the gradient for url('...') when photography is available) */
.image-ai-process::after,
.image-website-construction::after,
.image-manufacturing::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.image-ai-process {
    background-image: linear-gradient(135deg, var(--secondary-color), var(--lake-blue));
}
.image-ai-process::after { content: "\f544"; } /* robot */

.image-website-construction {
    background-image: linear-gradient(135deg, var(--lake-blue), var(--lake-teal));
}
.image-website-construction::after { content: "\f5fc"; } /* laptop-code */

.image-manufacturing {
    background-image: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.image-manufacturing::after { content: "\f275"; } /* industry */

/* ===== TEAM SECTION ===== */
.team-section {
    text-align: center;
}

.team-section h2 {
    display: inline-block;
}

.team-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
}



.clip-image {
    background-color: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
    


.clip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--medium-gray);
}

/* ===== VALUES SECTION ===== */
.values-section {
    text-align: center;
}

.values-section h2 {
    display: inline-block;
}

.values-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ===== CLEVELAND SECTION ===== */
.cleveland-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cleveland-image {
    height: 400px;
    border-radius: 8px;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/cleveland-downtown-web.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--card-shadow);
}

/* Serve modern formats where supported; PNG stays as the universal fallback.
   96 KB AVIF / 123 KB WebP vs the 1.2 MB PNG. */
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .cleveland-image {
        background-image:
            linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
            image-set(
                url('../images/cleveland-downtown-web.avif') type('image/avif'),
                url('../images/cleveland-downtown-web.webp') type('image/webp'),
                url('../images/cleveland-downtown-web.png') type('image/png')
            );
    }
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* Submit button in its loading/disabled state */
.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

/* Inline, accessible submission status (replaces alert()) */
.form-status {
    margin: 1rem 0 0;
    min-height: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status:empty {
    display: none;
}

.form-status--pending { color: var(--medium-gray); }
.form-status--success { color: #1a7f4b; }
.form-status--error   { color: var(--rock-red); }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== CLEVELAND MAP ===== */
.cleveland-map {
    text-align: center;
}

.map-container {
    height: 300px;
    background-color: var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color); /* AA on the light-blue panel; orange (#e35205) was only 3.16:1 */
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
    padding: 8rem 0 5rem;
    text-align: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.thank-you-content h1 {
    margin-bottom: 1.5rem;
}

.personalized-message {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.next-steps {
    background-color: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.next-steps h3 {
    margin-bottom: 1.5rem;
}

.next-steps ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.next-steps ul li i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.thank-you-cta {
    margin-top: 2rem;
}

.thank-you-cta .btn {
    margin: 0 0.5rem;
}

.form-group label.sms-optin {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.form-group .sms-optin input {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.sms-consent {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

.academy-tip {
    margin-top: 0.9rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* ===== LEGAL PAGES (privacy policy) ===== */
.legal-section {
    padding: 4rem 0 5rem;
}

.legal-content {
    max-width: 760px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 2.2rem 0 0.8rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.4rem;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* ===== AI INSIGHTS ===== */
.ai-insights {
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.insight-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 5rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M0,100 Q50,120 100,100 T200,100" stroke="%23ffffff" stroke-width="1" fill="none" opacity="0.1"/></svg>');
    background-size: 200px;
    opacity: 0.1;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-light), var(--lake-teal), var(--rock-purple), var(--primary-color));
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--logo-font);
}

.footer-logo .logo-text {
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 1px;
}

.footer-logo p {
    font-size: 1rem;
    color: var(--light-blue);
    font-family: var(--body-font);
    margin-top: 0.5rem;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    font-family: var(--heading-font);
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-light) 100%);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--light-blue);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-left: 0;
}

.footer-links ul li a:before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-light);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links ul li a:hover:before {
    opacity: 1;
    left: 0;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 1rem;
    color: var(--accent-light);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--light-blue);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero .container, 
    .about-preview .container, 
    .service-detail .container,
    .cleveland-section .container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail:nth-child(even) .container {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .service-image, .about-image, .hero-image {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-medium);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    .services-grid,
    .team-grid,
    .values-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .thank-you-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ===== ACCESSIBILITY POLISH ===== */

/* Skip link: hidden off-screen until focused, then pins to the top-left above
   the fixed header so keyboard users can jump straight to <main>. */
.skip-link {
    position: fixed; /* fixed (not absolute) so it pins to the viewport even when scrolled */
    left: -9999px;
    top: 0;
    z-index: 1100;
    background: var(--accent-light);
    color: var(--secondary-color);
    padding: 0.75rem 1.25rem;
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Focus target for the skip link; offset the jump below the fixed header */
#main {
    scroll-margin-top: 90px;
}

#main:focus {
    outline: none;
}

/* Inline links inside body copy need a non-colour cue so they don't rely on
   colour alone (WCAG 1.4.1). Buttons and nav/footer link lists are excluded. */
main p a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Visible keyboard-focus ring for every interactive element
   (inputs already had :focus; links, buttons and the menu toggle did not) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Honour users who prefer less motion: neutralise pulse, reveal transitions,
   the animated footer gradient, and hover lifts */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== MANUFACTURING AI PAGE & INSIGHTS ===== */
.maai-intro {
    padding: var(--section-padding);
}

.maai-intro .container,
.maai-section .container {
    max-width: 860px;
}

.maai-section {
    padding: 4rem 0;
}

.maai-section.alt-bg {
    background-color: var(--light-gray);
}

.maai-section h2 {
    font-family: var(--heading-font);
    font-size: 1.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.maai-section h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 1.75rem 0 0.75rem;
}

.maai-section p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.maai-kicker {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.maai-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.maai-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
}

.maai-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lake-blue);
    font-weight: 700;
}

.maai-list--no li::before {
    content: "\2715";
    color: var(--accent-color);
}

.maai-price-card {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--card-shadow);
}

.maai-price-card .price {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.maai-price-card .price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--medium-gray);
}

.maai-price-note {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 1rem;
}

.maai-honest {
    border-left: 4px solid var(--primary-color);
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.maai-faq details {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.9rem 0;
}

.maai-faq summary {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
}

.maai-faq summary:focus-visible {
    outline: 3px solid var(--lake-blue);
    outline-offset: 2px;
}

.maai-faq details p {
    margin-top: 0.6rem;
}

.maai-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .maai-two-col {
        grid-template-columns: 1fr;
    }
}

.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--dark-gray);
}

.form-group select:focus-visible {
    outline: 3px solid var(--lake-blue);
    outline-offset: 2px;
}

.form-trust {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 0.75rem;
}

/* Insights article */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.article-body h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 2.25rem 0 0.9rem;
}

.article-body p {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body ul {
    margin: 0 0 1.25rem 1.4rem;
    list-style: disc;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.article-meta {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-cta {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.75rem;
    margin-top: 2.5rem;
}
