/* ================================
   RED Web Studio — Editorial Premium
   Light, warm, magazine-style
   ================================ */
:root {
    /* Surfaces */
    --cream: #FBF7F1;
    --cream-deep: #F4EFE6;
    --white: #FFFFFF;
    --paper: #FDFBF7;

    /* Ink */
    --ink: #1F1B17;
    --ink-soft: #5C544B;
    --ink-mute: #8B8378;

    /* Brand */
    --accent: #C8453B;
    --accent-deep: #8B2F26;
    --accent-tint: #FBEAE7;
    --sage: #5F7A5A;
    --sage-tint: #E8EFE5;

    /* Surface details */
    --border: #E5DFD5;
    --border-soft: #EFE9DE;
    --shadow-sm: 0 1px 2px rgba(31, 27, 23, 0.04), 0 1px 2px rgba(31, 27, 23, 0.03);
    --shadow-md: 0 6px 16px rgba(31, 27, 23, 0.06), 0 2px 4px rgba(31, 27, 23, 0.04);
    --shadow-lg: 0 24px 48px rgba(31, 27, 23, 0.10), 0 6px 16px rgba(31, 27, 23, 0.06);

    /* Fonts */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script: 'Caveat', cursive;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Radius */
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

section { position: relative; }

::selection { background: var(--accent); color: var(--white); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 600;
    font-variation-settings: "opsz" 144;
}
h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}
h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.accent { color: var(--accent); font-weight: 600; }

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--accent-tint);
    border-radius: 100px;
}
.section-title { margin-bottom: 56px; max-width: 740px; }

/* Fall-in Animation */
.fall-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fall-in.visible { opacity: 1; transform: translateY(0); }
.fall-in[data-delay="1"] { transition-delay: 0.1s; }
.fall-in[data-delay="2"] { transition-delay: 0.2s; }
.fall-in[data-delay="3"] { transition-delay: 0.3s; }
.fall-in[data-delay="4"] { transition-delay: 0.4s; }
.fall-in[data-delay="5"] { transition-delay: 0.5s; }
.fall-in[data-delay="6"] { transition-delay: 0.6s; }

.enlarge-on-scroll { transition: transform 0.6s var(--ease); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    letter-spacing: -0.01em;
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(200, 69, 59, 0.18);
}
.btn-accent:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 69, 59, 0.28);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: transparent;
    padding: 16px 20px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-lg { padding: 19px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.3s ease; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(6px); }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(251, 247, 241, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(251, 247, 241, 0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(31, 27, 23, 0.04);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1;
}
.logo:hover { opacity: 0.75; }
.logo-row {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
}
.logo-row .logo-sub {
    line-height: 1;
    padding-bottom: 4px;
}
.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}
.logo-red {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-red::after { content: '.'; color: var(--ink); }
.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.005em;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links .btn { padding: 11px 22px; font-size: 0.92rem; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---- Hero ---- */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 18%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.7;
}
.hero .container { position: relative; z-index: 1; }
.hero-typography {
    max-width: 980px;
    position: relative;
}

/* Bigger headline for typography-only hero */
.hero-typography h1 {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero h1 span { display: block; }
.hero h1 .typewriter { color: var(--accent); }
.hero-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 7px 16px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hero-sub {
    font-size: 1.2rem;
    max-width: 620px;
    margin-top: 32px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.hero-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 48px;
}
.trust-tag {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
}

/* Typewriter cursor */
.typewriter::after {
    content: '|';
    color: var(--accent);
    animation: blink 0.9s step-end infinite;
    font-weight: 300;
    font-style: normal;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---- Values / Promises ---- */
.values-section {
    padding: 96px 0;
    background: var(--cream-deep);
}
.values-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}
.value-block {
    padding: 8px 4px;
    position: relative;
}
.value-block::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 18px;
    border-radius: 2px;
}
.value-block h3 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.value-block p {
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---- Services (editorial table-of-contents) ---- */
.services { padding: 120px 0; background: var(--cream); }
.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.service-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 28px;
    align-items: start;
    padding: 32px 8px;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}
.service-row:hover {
    padding-left: 16px;
}
.service-num {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    padding-top: 8px;
}
.service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.service-body h3 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.3s ease;
}
.service-row:hover .service-body h3 { color: var(--accent); }
.service-body p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 720px;
}
.service-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sage);
    background: var(--sage-tint);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---- How AI / Compare ---- */
.how-section {
    padding: 120px 0;
    background: var(--cream-deep);
}
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 80px;
}
.compare-col {
    padding: 36px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.compare-col.old { opacity: 0.95; }
.compare-col.new {
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--shadow-md);
}
.compare-col h4 {
    font-size: 1.25rem;
    margin-bottom: 22px;
    color: var(--ink);
}
.compare-col.new h4 { color: var(--cream); }
.compare-col ul { list-style: none; }
.compare-col li {
    padding: 12px 0;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.55;
}
.compare-col.new li { color: rgba(251, 247, 241, 0.85); }
.x {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.check {
    color: var(--sage);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.compare-col.new .check { color: #B8E0AE; }

.process-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.process-item {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--r);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.process-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}
.process-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ink);
}
.process-item p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---- About / Meet The Designer (centered minimal) ---- */
.about {
    padding: 120px 0;
    background: var(--cream);
}
.about-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-photo {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cream-deep);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform 0.5s var(--ease);
}
.about-photo:hover img { transform: scale(1.05); }
.about-photo-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-tint) 0%, var(--cream-deep) 70%);
}
.placeholder-initial {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.about-name {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}
.about-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 28px;
}
.about-pill {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    letter-spacing: 0.01em;
}

/* ---- Industries ---- */
.industries {
    padding: 120px 0;
    background: var(--cream-deep);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.industry-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 36px 30px;
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-sm);
}
.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.industry-num {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}
.industry-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--ink);
}
.industry-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 22px;
    color: var(--ink-soft);
}
.industry-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--sage);
    background: var(--sage-tint);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 600;
}
.industries-note {
    text-align: center;
    font-size: 1rem;
    margin-top: 48px;
    color: var(--ink-soft);
}
.industries-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-tint);
    transition: border-color 0.3s ease;
}
.industries-note a:hover { border-bottom-color: var(--accent); }

/* ---- Free Audit ---- */
.audit-section {
    padding: 120px 0;
    background: var(--cream);
}
.audit-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.audit-lead {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.45;
    margin-bottom: 32px;
    font-weight: 500;
}
.audit-checks {
    list-style: none;
    margin-bottom: 32px;
}
.audit-checks li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 14px;
}
.audit-checks .check {
    color: var(--sage);
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--sage-tint);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
}
.audit-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.trust-pill {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    background: var(--white);
    color: var(--ink-soft);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
}
.audit-form {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
}
.audit-form .form-group { margin-bottom: 20px; }
.audit-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 8px;
}
.audit-form input {
    width: 100%;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--ink);
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    transition: all 0.2s ease;
}
.audit-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.audit-form input::placeholder { color: var(--ink-mute); }
.audit-note {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 18px;
    color: var(--ink-soft);
}
.audit-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.audit-note a:hover { text-decoration: underline; }

/* ---- Work ---- */
.work {
    padding: 120px 0;
    background: var(--cream-deep);
}
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.work-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-sm);
    display: block;
    text-decoration: none;
    color: inherit;
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.work-screenshot {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--cream);
}
.work-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.work-card:hover .work-screenshot img { transform: scale(1.06); }
.work-overlay-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: var(--white);
    color: var(--ink);
    padding: 9px 18px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-sm);
}
.work-card:hover .work-overlay-badge { opacity: 1; transform: translateY(0); }

.work-card > h4,
.work-card > p,
.work-card > .work-meta {
    padding-left: 32px;
    padding-right: 32px;
}
.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 10px;
}
.work-tag {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 5px 14px;
    border-radius: 100px;
    font-weight: 600;
}
.work-result {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--sage);
    font-weight: 600;
}
.work-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--ink);
}
.work-card > p {
    font-size: 0.97rem;
    line-height: 1.6;
    padding-bottom: 32px;
    color: var(--ink-soft);
}

/* ---- FAQ ---- */
.faq {
    padding: 120px 0;
    background: var(--cream-deep);
}
.faq-list {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item {
    border-bottom: 1px solid var(--border-soft);
    padding: 0 32px;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-weight: 300;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
    padding: 0 0 28px 0;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.75;
    max-width: 720px;
}

/* ---- CTA ---- */
.cta-section {
    padding: 110px 0;
    background: var(--ink);
    text-align: center;
}
.cta-title { color: var(--cream); margin-bottom: 22px; }
.cta-section .accent { color: var(--accent); }
.cta-section p {
    color: rgba(251, 247, 241, 0.75);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-accent {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cta-section .btn-accent:hover {
    background: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0;
    background: var(--cream);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
}
.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    transition: all 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-mute); }
.form-group select { color: var(--ink-soft); cursor: pointer; }
.form-group select option { background: var(--white); color: var(--ink); }
.form-group textarea { resize: vertical; min-height: 110px; font-family: var(--font-sans); }

.contact-info { padding-top: 8px; }
.info-item { margin-bottom: 28px; }
.info-item strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.info-item p { font-size: 1rem; color: var(--ink-soft); }
.info-item a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s ease; }
.info-item a:hover { color: var(--accent); }
.info-item.whatsapp a { color: var(--sage); font-weight: 600; }
.info-item.whatsapp a:hover { color: var(--accent); }

.social-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.social-row .social-fb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 14px;
    background: #1877F2;
    color: var(--white);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
}
.social-row .social-fb svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.social-row .social-fb:hover {
    background: #0F66DC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

/* ---- Footer ---- */
.footer {
    background: var(--cream-deep);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.footer-links-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links-row a {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links-row a:hover { color: var(--accent); }
.footer-contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 28px 0;
    flex-wrap: wrap;
}
.footer-contact-row a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-contact-row a:hover { color: var(--accent); }
.footer-contact-row .wa-link { color: var(--sage); font-weight: 600; }
.footer-sep { color: var(--ink-mute); }
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--ink-mute);
    text-align: center;
}
.footer-social { display: flex; gap: 12px; }
.footer-social .social-fb {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1877F2;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}
.footer-social .social-fb svg {
    width: 20px;
    height: 20px;
}
.footer-social .social-fb:hover {
    background: #0F66DC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

/* ---- AI Chat Widget ---- */
.ai-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(200, 69, 59, 0.35);
    transition: all 0.3s var(--ease);
    position: relative;
}
.ai-chat-toggle:hover { transform: scale(1.06); background: var(--accent-deep); }
.ai-chat-toggle svg { width: 26px; height: 26px; transition: opacity 0.3s ease; }
.ai-chat-toggle .ico-close { display: none; }
.ai-chat.open .ico-open { display: none; }
.ai-chat.open .ico-close { display: block; }
.chat-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--sage);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 100px;
    border: 2px solid var(--cream);
}

.chat-window {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 360px;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 60px rgba(31, 27, 23, 0.18);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 540px;
}
.ai-chat.open .chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-head {
    padding: 18px 20px;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.chat-head strong { font-weight: 600; }
.online-dot {
    width: 8px; height: 8px;
    background: var(--sage);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(95, 122, 90, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(95, 122, 90, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(95, 122, 90, 0); }
}
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--cream);
}
.ai-msg {
    margin-bottom: 14px;
    max-width: 85%;
}
.ai-msg.bot { margin-right: auto; }
.ai-msg.user { margin-left: auto; }
.ai-msg p {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border-soft);
}
.ai-msg.user p {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    border-bottom-right-radius: 4px;
}
.ai-msg.bot p { border-bottom-left-radius: 4px; }

.quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.quick-btns button {
    padding: 7px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    font-weight: 500;
}
.quick-btns button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-tint);
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--border-soft);
    background: var(--white);
}
.chat-input input {
    flex: 1;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 16px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.88rem;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input input::placeholder { color: var(--ink-mute); }
.chat-input button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.2s ease;
}
.chat-input button:hover { background: var(--accent-deep); }

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}
.typing-dots span {
    width: 6px; height: 6px;
    background: var(--ink-mute);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .hero-typography h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
    .values-row { grid-template-columns: 1fr 1fr; gap: 32px; }
    .compare-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .about-photo { width: 130px; height: 130px; margin-bottom: 28px; }
    .about-name { font-size: 2.1rem; margin-bottom: 18px; }
    .about-bio { font-size: 1rem; margin-bottom: 24px; }
    .industries-grid { grid-template-columns: 1fr 1fr; }
    .audit-wrap { grid-template-columns: 1fr; gap: 40px; max-width: 620px; margin: 0 auto; }
    .testimonial-row { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .process-row { grid-template-columns: 1fr 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links-row { justify-content: center; }
    .footer-contact-row { gap: 12px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-sep { display: none; }
    .section-title { margin-bottom: 40px; }
    .services, .how-section, .about, .industries, .audit-section, .work, .faq, .contact { padding: 84px 0; }
    .values-section { padding: 68px 0; }
    .cta-section { padding: 80px 0; }

    /* Mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 28px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .service-row { padding: 28px 4px; gap: 20px; grid-template-columns: 52px 1fr; }
    .work-screenshot { height: 220px; }
    .chat-window { width: calc(100vw - 48px); right: -12px; }
    /* Compact navbar logo on tablet */
    .logo-red { font-size: 1.5rem; }
    .logo-sub { font-size: 0.7rem; }
    .logo-tagline { font-size: 0.55rem; letter-spacing: 0.14em; }
}

@media (max-width: 640px) {
    .values-row { grid-template-columns: 1fr 1fr; gap: 24px; }
    .process-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .service-body h3 { font-size: 1.35rem; }
    .service-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero { padding: 112px 0 56px; min-height: auto; }
    .hero-sub { font-size: 1.05rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn-lg { width: 100%; justify-content: center; }
    .hero-trust { gap: 8px; }
    .trust-tag { font-size: 0.75rem; padding: 7px 14px; }
    .industries-grid { grid-template-columns: 1fr; max-width: 100%; }
    .audit-form { padding: 32px 24px; }
    .faq-item { padding: 0 22px; }
    .faq-item summary { font-size: 1.05rem; }
    .contact-form { padding: 28px 22px; }
    .work-card > h4, .work-card > p, .work-card > .work-meta { padding-left: 24px; padding-right: 24px; }
    .work-screenshot { height: 200px; }
    .work-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
    /* Compact navbar */
    .logo-red { font-size: 1.4rem; }
    .logo-sub { font-size: 0.68rem; }
    .logo-tagline { font-size: 0.52rem; }
    .nav-container { min-height: 64px; }
}

@media (max-width: 390px) {
    .container { padding: 0 18px; }
    .service-row { padding: 24px 0; gap: 14px; grid-template-columns: 38px 1fr; }
    .service-body h3 { font-size: 1.2rem; }
    .about-photo { width: 110px; height: 110px; }
    .about-pill { font-size: 0.72rem; padding: 7px 14px; }
    .about-name { font-size: 1.85rem; }
    /* Smallest navbar */
    .logo-red { font-size: 1.25rem; }
    .logo-sub { font-size: 0.65rem; }
    .logo-tagline { font-size: 0.5rem; letter-spacing: 0.12em; }
    .nav-container { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
    /* Tighter hero */
    .hero { padding: 96px 0 48px; }
    .hero-label { font-size: 0.7rem; padding: 6px 12px; }
    .btn-lg { padding: 16px 28px; font-size: 0.95rem; }
    /* Tighter sections */
    .values-section { padding: 56px 0; }
    .value-block h3 { font-size: 1.4rem; }
    .about { padding: 64px 0; }
    .industries { padding: 64px 0; }
    .audit-section { padding: 64px 0; }
    .work { padding: 64px 0; }
    .faq { padding: 64px 0; }
    .contact { padding: 64px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    html { scroll-behavior: auto; }
}
