/* ==========================================================================
   MAXPROM - Premium Agency Design System
   Inter typeface · White hero · Orange accents · Near-black footer
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Backgrounds */
    --color-bg-white: #ffffff;
    --color-bg-light: #F7F8FA;
    --color-bg-footer: #1a1f21;

    /* Orange — primary accent & CTA */
    --color-orange: #FF7A3D;
    --color-orange-hover: #E86A2E;
    --color-orange-soft: rgba(255, 122, 61, 0.08);

    /* Blue — secondary */
    --color-blue: #1E6FE6;
    --color-blue-hover: #1658C0;
    --color-blue-soft: rgba(30, 111, 230, 0.06);

    /* Text */
    --color-heading: #1a1a1a;
    --color-text: #475569;
    --color-text-light: #64748B;
    --color-text-muted: #94A3B8;
    --color-white: #ffffff;
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-45: rgba(255, 255, 255, 0.45);
    --color-white-12: rgba(255, 255, 255, 0.12);
    --color-white-06: rgba(255, 255, 255, 0.06);

    /* Misc */
    --color-gold: #F59E0B;
    --color-border: #E2E8F0;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Transitions */
    --ease: 0.25s ease;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-image: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 50%;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.15s ease; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 500; }

p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Orange emphasis text */
.text-gradient {
    color: var(--color-orange);
    background: none;
    -webkit-text-fill-color: var(--color-orange);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--ease);
}

.btn--primary {
    background: var(--color-orange);
    color: var(--color-heading);
}
.btn--primary:hover {
    background: var(--color-orange-hover);
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--color-heading);
    color: var(--color-white);
}
.btn--secondary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid var(--color-white-45);
}
.btn--outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-heading);
    border: 1.5px solid var(--color-border);
}
.btn--outline-light:hover {
    border-color: var(--color-heading);
    background: var(--color-bg-light);
}

/* ---------- Header (Floating Bubble) ---------- */
.header {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    width: auto;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1000;
    padding: 10px 10px 10px 28px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header--scrolled {
    background: var(--color-orange);
    box-shadow: 0 4px 24px rgba(255, 122, 61, 0.3);
    top: 12px;
    padding: 8px 8px 8px 28px;
    border-color: transparent;
}

.header--scrolled .header__logo img {
    filter: brightness(0) invert(1);
}

.header--scrolled .header__nav a {
    color: rgba(255, 255, 255, 0.8);
}

.header--scrolled .header__nav a:hover,
.header--scrolled .header__nav a.active {
    color: var(--color-white);
}

.header--scrolled .header__cta .btn {
    background: var(--color-white);
    color: var(--color-orange);
}

.header--scrolled .header__cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.header--scrolled .header__toggle span {
    background-color: var(--color-white);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    max-width: none;
}

.header__logo img {
    height: 32px;
    width: auto;
    filter: brightness(0);
    transition: filter 0.3s ease;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__nav a {
    color: var(--color-heading);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 0;
    transition: color var(--ease);
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--color-heading);
}

.header__cta .btn {
    padding: 10px 22px;
    font-size: 0.86rem;
    border-radius: var(--radius-md);
}

/* Desktop dropdown */
.header__nav-group {
    position: relative;
}

.header__nav-parent {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-expand {
    display: none;
}

.header__nav-group:hover .nav-chevron {
    transform: rotate(180deg);
}

.header__nav-children {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    margin-top: 8px;
}

.header__nav-group:hover .header__nav-children {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header__nav-children::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.header__nav-children a {
    display: block;
    padding: 10px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-heading) !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.header__nav-children a:hover {
    background: var(--color-bg-light);
    color: var(--color-orange) !important;
}

.header--scrolled .header__nav-children a {
    color: var(--color-heading) !important;
}

.header--scrolled .header__nav-children a:hover {
    color: var(--color-orange) !important;
}

.header__nav-cta {
    display: none;
}

/* Mobile toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-heading);
    border-radius: 2px;
    transition: all var(--ease);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 20px;
}

.hero__title {
    color: var(--color-heading);
    margin-bottom: 28px;
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 500;
}

.hero__title span {
    color: var(--color-orange);
}

.hero__description {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    width: 100%;
    max-width: 540px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.12));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- Clients Logo Bar (inside hero) ---------- */
.clients {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.clients__label {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.clients__marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients__track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.clients__track img {
    height: 44px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) grayscale(100%);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about__image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-image);
}

.about__image-accent { display: none; }

.about__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.about__title {
    margin-bottom: 24px;
}

.about__title .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.about__text {
    margin-bottom: 20px;
    color: var(--color-text);
}

.about .btn--outline-light {
    margin-top: 12px;
}

/* ---------- Approach ---------- */
.approach {
    padding: var(--section-padding);
    background: var(--color-bg-light);
}

.approach__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.approach__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.approach__header .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.approach__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.approach__card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 44px 32px 40px;
    text-align: center;
    transition: all var(--ease);
    box-shadow: var(--shadow-card);
}

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

.approach__card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange-soft);
    border-radius: 14px;
}

.approach__card-icon svg {
    stroke: var(--color-orange);
}

.approach__card h3 {
    margin-bottom: 14px;
}

.approach__card p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ---------- Stats (Orange Strip) ---------- */
.stats {
    padding: 80px 0;
    background: var(--color-orange);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stats__item h3 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    color: var(--color-white);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.stats__item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats__item {
    position: relative;
}

.stats__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Services ---------- */
.services {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.services__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.services__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.services__header .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-white);
    transition: all var(--ease);
    box-shadow: var(--shadow-card);
}

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

.service-card__image {
    height: 220px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.04);
}

.service-card__body {
    padding: 28px 28px 32px;
}

.service-card__body h3 { margin-bottom: 12px; }

.service-card__body p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--color-text);
    line-height: 1.7;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-orange);
    transition: gap 0.15s ease;
}

.service-card__link::after {
    content: '\2192';
    transition: transform 0.15s ease;
}

.service-card__link:hover { color: var(--color-orange-hover); }
.service-card__link:hover::after { transform: translateX(4px); }

/* ---------- Web Development ---------- */
.webdev {
    padding: var(--section-padding);
    background: var(--color-bg-light);
    overflow: hidden;
}

.webdev .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.webdev__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.webdev__title { margin-bottom: 24px; }

.webdev__title .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.webdev__text {
    margin-bottom: 32px;
    color: var(--color-text);
}

.webdev__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.webdev__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    color: var(--color-heading);
    font-size: 0.98rem;
}

.webdev__feature-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}

.webdev__mockups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.webdev__mockups img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-image);
    transition: transform var(--ease);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webdev__mockups img:hover { transform: translateY(-6px); }

/* ---------- CTA ---------- */
.cta {
    padding: var(--section-padding);
    text-align: center;
    background: var(--color-bg-footer);
}

.cta__inner {
    padding: 0;
}

.cta__title {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
}

.cta__title .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.cta__text {
    color: var(--color-white-45);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.8;
}

.cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.testimonials__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.testimonials__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.testimonials__header .text-gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all var(--ease);
}

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

.testimonial-card__quote {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--color-orange);
    opacity: 0.3;
}

.testimonial-card__text {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--color-text);
}

.testimonial-card__stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--color-heading);
    font-size: 0.95rem;
}

.testimonial-card__role {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ---------- Page Hero (Interior Pages) ---------- */
.page-hero {
    padding: 180px 0 100px;
    background: var(--color-bg-light);
    text-align: center;
}

.page-hero__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.page-hero__title {
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Story ---------- */
.story {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.story__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-image);
}

.story__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.story__content h2 {
    margin-bottom: 24px;
}

.story__content p {
    margin-bottom: 20px;
    color: var(--color-text);
}

/* ---------- Values ---------- */
.values {
    padding: var(--section-padding);
    background: var(--color-bg-light);
}

.values__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.values__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.values__card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 44px 32px 40px;
    text-align: center;
    transition: all var(--ease);
    box-shadow: var(--shadow-card);
}

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

.values__card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange-soft);
    border-radius: 14px;
    color: var(--color-orange);
}

.values__card h3 {
    margin-bottom: 14px;
}

.values__card p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ---------- Team ---------- */
.team {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.team__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.team__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.team__subtitle {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-top: 16px;
    font-style: italic;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.team__member {
    text-align: center;
}

.team__member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--color-bg-light);
}

.team__member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.team__member:hover .team__member-image img {
    transform: scale(1.05);
}

.team__member h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.team__member p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ---------- Florida ---------- */
.florida {
    padding: var(--section-padding);
    background: var(--color-bg-light);
}

.florida .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.florida__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.florida__content h2 {
    margin-bottom: 24px;
}

.florida__content p {
    margin-bottom: 20px;
    color: var(--color-text);
}

.florida__content .btn {
    margin-top: 12px;
}

.florida__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.florida__image img {
    max-width: 400px;
    width: 100%;
    opacity: 0.15;
    filter: grayscale(100%);
}

/* ---------- Service Intro ---------- */
.service-intro {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.service-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.service-intro__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-image);
}

.service-intro__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.service-intro__content h2 {
    margin-bottom: 24px;
}

.service-intro__content p {
    margin-bottom: 20px;
    color: var(--color-text);
}

/* ---------- Service Features ---------- */
.service-features {
    padding: var(--section-padding);
    background: var(--color-bg-light);
}

.service-features__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.service-features__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.service-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-feature {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 36px 28px 32px;
    transition: all var(--ease);
    box-shadow: var(--shadow-card);
}

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

.service-feature__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange-soft);
    border-radius: 14px;
    color: var(--color-orange);
}

.service-feature h3 {
    margin-bottom: 12px;
}

.service-feature p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ---------- Service Process ---------- */
.service-process {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.service-process__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.service-process__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.service-process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service-step {
    text-align: center;
    padding: 32px 20px;
}

.service-step__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-orange);
    opacity: 0.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.service-step h3 {
    margin-bottom: 14px;
}

.service-step p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ---------- Blog ---------- */
.blog {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-white);
    transition: all var(--ease);
    box-shadow: var(--shadow-card);
    display: block;
}

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

.blog-card__image {
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 24px 24px 28px;
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 10px;
}

.blog-card__body h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-card__body p {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card__meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---------- Article ---------- */
.article__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.article__content {
    max-width: 720px;
    margin: 0 auto;
}

.article__content p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article__content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.article__content ul {
    margin-bottom: 28px;
    padding-left: 0;
}

.article__content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article__content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-orange);
}

.article__cta {
    margin-top: 56px;
    padding: 40px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.article__cta h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article__cta p {
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all var(--ease);
}

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

.contact__card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange-soft);
    border-radius: 14px;
    color: var(--color-orange);
    flex-shrink: 0;
}

.contact__card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact__card a,
.contact__card p {
    font-size: 0.95rem;
    color: var(--color-text);
}

.contact__card a:hover {
    color: var(--color-orange);
}

.contact__social {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.contact__social h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 16px;
}

.contact__social-links {
    display: flex;
    gap: 10px;
}

.contact__social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all var(--ease);
}

.contact__social-links a:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.contact__form-wrapper h2 {
    margin-bottom: 12px;
}

.contact__form-wrapper > p {
    color: var(--color-text);
    margin-bottom: 36px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact__form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-heading);
}

.contact__form-group label span {
    font-weight: 400;
    color: var(--color-text-muted);
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-white);
    color: var(--color-heading);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    width: 100%;
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--color-orange-soft);
}

.contact__form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact__form-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.contact__form-status {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact__form-status--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.contact__form-status--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ---------- Footer (Near-Black) ---------- */
.footer {
    background: var(--color-bg-footer);
    padding: 80px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--color-white-06);
}

.footer__brand p {
    color: var(--color-white-45);
    font-size: 0.95rem;
    margin-top: 20px;
    line-height: 1.7;
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-white-06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-45);
    transition: all var(--ease);
}

.footer__social a:hover {
    background: var(--color-white-12);
    color: var(--color-white);
}

.footer__heading {
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__links a {
    color: var(--color-white-45);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--color-white-70); }

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white-45);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer__contact-item svg {
    flex-shrink: 0;
    color: var(--color-white-45);
}

.footer__contact-item a:hover { color: var(--color-white-70); }

.footer__bottom {
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    color: var(--color-white-45);
    font-size: 0.85rem;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    color: var(--color-white-45);
    font-size: 0.85rem;
}

.footer__legal a:hover { color: var(--color-white-70); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .story .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .florida .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .florida__image { order: -1; }
    .florida__image img { max-width: 280px; }
    .contact .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .service-intro .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .service-process__steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions { justify-content: center; }
    .hero { height: auto; min-height: 950px; }
    .hero__image { order: -1; }
    .hero__image img { max-width: 420px; }
    .about .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .webdev .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px 0; }

    .header {
        left: 16px;
        right: 16px;
        padding: 10px 18px;
        top: 10px;
        transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    background 0.3s ease,
                    box-shadow 0.3s ease,
                    border-color 0.3s ease,
                    padding 0.3s ease;
    }

    .header__logo img {
        height: 24px;
    }

    .header--scrolled {
        top: 10px;
        padding: 10px 18px;
    }


    /* Dark backdrop — sits outside header, darkens page only */
    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide-down nav panel — positioned below header */
    .header__nav {
        position: fixed;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--color-white);
        border-radius: var(--radius-md);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1002;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
    }

    .header__nav.active {
        max-height: 500px;
        padding: 8px 24px 24px;
    }

    .header__nav > a {
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-heading) !important;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
        transition: color 0.2s ease;
    }

    .header__nav > a:last-of-type {
        border-bottom: none;
    }

    .header__nav > a:hover,
    .header__nav > a.active {
        color: var(--color-orange) !important;
    }

    .header__nav .header__nav-cta a {
        border-bottom: none;
        padding: 15px 32px;
        color: var(--color-heading) !important;
    }

    /* Expandable sub-nav — mobile overrides */
    .nav-chevron { display: none; }
    .nav-expand {
        display: flex !important;
        width: 20px;
        height: 20px;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: 300;
        color: var(--color-text-light);
        transition: transform 0.3s ease;
    }

    .header__nav-group {
        border-bottom: 1px solid var(--color-border);
        padding: 0;
        position: static;
    }

    .header__nav-group > .header__nav-parent {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-heading) !important;
        border-bottom: none;
        cursor: pointer;
    }

    .header__nav-group.expanded .nav-expand {
        transform: rotate(45deg);
    }

    .header__nav-children {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: none;
        padding: 0;
        margin-top: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .header__nav-children::before { display: none; }

    .header__nav-group:hover .header__nav-children {
        max-height: 0;
        transform: none;
    }

    .header__nav-group.expanded .header__nav-children {
        max-height: 200px;
    }

    .header__nav-children a {
        display: block;
        padding: 10px 0 10px 16px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text) !important;
        border-bottom: none;
        white-space: normal;
    }

    .header__nav-children a:hover {
        background: none;
        color: var(--color-orange) !important;
    }

    /* Mobile CTA inside nav */
    .header__nav .header__nav-cta {
        padding: 14px 0 0;
    }

    .header__nav .header__nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .header__nav-cta {
        display: block;
    }

    .header__cta { display: none; }
    .header__toggle { display: flex; }

    /* Animated hamburger → X */
    .header__toggle {
        width: 24px;
        height: 16px;
        position: relative;
        z-index: 1001;
    }

    .header__toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .header__toggle span:nth-child(1) { top: 0; }
    .header__toggle span:nth-child(2) { top: 7px; }
    .header__toggle span:nth-child(3) { top: 14px; }

    .header__toggle.active span:nth-child(1) {
        top: 7px;
        transform: rotate(45deg);
    }

    .header__toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .header__toggle.active span:nth-child(3) {
        top: 7px;
        transform: rotate(-45deg);
    }

    .page-hero { padding: 140px 0 72px; }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .approach__grid,
    .services__grid,
    .values__grid,
    .service-features__grid,
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .service-process__steps {
        grid-template-columns: 1fr;
    }

    .team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .team__member-image {
        width: 160px;
        height: 160px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats__item:not(:last-child)::after { display: none; }

    .testimonials__grid { grid-template-columns: 1fr; }

    .webdev__mockups { grid-template-columns: repeat(2, 1fr); }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .clients__track { gap: 40px; }
    .clients__track img { height: 34px; }

    .cta { padding: 80px 0; }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
