/* ===========================================
   OFF AND ON — Agency Site
   Editorial modernism meets power-switch motif
   =========================================== */

/* Fonts loaded via <link> in HTML — Outfit (display) + Sora (body) */

:root {
    /* Brand Palette */
    --teal: #1E7A6E;
    --teal-light: #3DB8A9;
    --teal-dark: #155B52;
    --teal-glow: rgba(30, 122, 110, 0.15);
    --teal-subtle: rgba(42, 157, 143, 0.06);

    --dark: #0D0D0D;
    --dark-soft: #1A1A1A;
    --dark-mid: #2A2A2A;
    --white: #FFFFFF;
    --cream: #FAFAF7;
    --grey-light: #E8E8E3;
    --grey-mid: #999;
    --grey-text: #6B6B6B;

    /* Typography */
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Sora', -apple-system, sans-serif;

    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 1.5rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows — tinted with brand hue */
    --shadow-md: 0 4px 20px rgba(42, 157, 143, 0.08);
    --shadow-lg: 0 8px 40px rgba(42, 157, 143, 0.12);
    --shadow-teal: 0 4px 30px rgba(42, 157, 143, 0.25);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

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

/* Subtle grain overlay for texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ===========================================
   UTILITY
   =========================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--teal);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--teal);
    margin-bottom: var(--space-md);
}

.section-label-center {
    justify-content: center;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    max-width: 20ch;
    text-wrap: balance;
}

.section-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-subtext {
    font-size: 1.0625rem;
    color: var(--grey-text);
    max-width: 50ch;
    line-height: 1.7;
    text-wrap: pretty;
}

.section-subtext--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--grey-light);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--dark-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

.btn:active {
    transform: scale(0.97) translateY(0) !important;
    transition-duration: 0.1s;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
    transform: translateX(3px);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ===========================================
   HEADER
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all 0.4s var(--ease-out);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom-color: var(--grey-light);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-mark {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-mark {
    opacity: 0.85;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-left: var(--space-xs);
}

.logo-off {
    color: var(--teal);
}

.logo-amp {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--grey-mid);
    margin: 0 0.15em;
}

.logo-on {
    color: var(--dark);
}

.footer-logo-mark {
    height: 44px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

/* Desktop nav */
.nav {
    display: none;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--grey-text);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-accent {
    background: var(--teal, #2A9D8F);
    color: #fff !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link-accent::before {
    content: '✨';
    font-size: 0.85em;
}
.nav-link-accent:hover {
    background: var(--teal-dark, #21867a);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(42, 157, 143, 0.35);
}
.nav-link-accent::after { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-phone {
    display: none;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.header-phone:hover {
    color: var(--teal);
}

.header-cta {
    display: none;
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    padding: 100px var(--container-pad) var(--space-xl);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--teal);
}

.mobile-menu .btn {
    margin-top: var(--space-sm);
    font-size: 1rem;
}

/* ===========================================
   HERO
   =========================================== */
.hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.2) translate(20px, -10px); opacity: 1; }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--teal-subtle);
    border: 1px solid rgba(42, 157, 143, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--teal-dark);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin-bottom: var(--space-md);
    max-width: 16ch;
    animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}

.hero-title .highlight {
    color: var(--teal);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    color: var(--grey-text);
    max-width: 48ch;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s var(--ease-out) 0.35s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    animation: fadeUp 0.6s var(--ease-out) 0.45s both;
}

/* Hero stats strip */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--grey-light);
    animation: fadeUp 0.6s var(--ease-out) 0.55s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.hero-stat-value .teal {
    color: var(--teal);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--grey-mid);
    margin-top: var(--space-2xs);
}

/* Decorative grid */
.hero-decoration {
    display: none;
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 45%;
    aspect-ratio: 1;
    opacity: 0.07;
    pointer-events: none;
}

.hero-grid-line {
    stroke: var(--teal);
    stroke-width: 1;
    fill: none;
}

/* Rocket the dog mascot */
.rocket-dog {
    display: none;
    position: absolute;
    right: 6%;
    bottom: 22%;
    width: 60px;
    pointer-events: none;
    animation: dogFlyMobile 3.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.12));
}

.mascot-tail {
    transform-origin: 148px 178px;
    animation: tailWag 0.75s ease-in-out infinite alternate;
}

@keyframes dogFlyMobile {
    0%, 100% { transform: translateY(0px) rotate(-65deg); }
    50%       { transform: translateY(-12px) rotate(-65deg); }
}

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

@keyframes tailWag {
    0%   { transform: rotate(-12deg); }
    100% { transform: rotate(12deg); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   SERVICES
   =========================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--cream);
    position: relative;
}

.services-header {
    margin-bottom: var(--space-xl);
}

.services-grid {
    display: grid;
    gap: var(--space-md);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-subtle);
    border-radius: var(--radius-md);
    color: var(--teal);
    margin-bottom: var(--space-md);
    transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
    background: var(--teal);
    color: var(--white);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.65;
}

/* ===========================================
   WHO WE WORK WITH
   =========================================== */
.audience {
    padding: var(--space-3xl) 0;
    position: relative;
}

.audience-header {
    margin-bottom: var(--space-xl);
}

.audience-grid {
    display: grid;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.audience-card {
    display: flex;
    align-items: start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-light);
    transition: all 0.3s var(--ease-out);
}

.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.audience-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-subtle);
    border-radius: var(--radius-md);
    color: var(--teal);
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out);
}

.audience-card:hover .audience-icon {
    background: var(--teal);
    color: var(--white);
}

.audience-icon svg {
    width: 24px;
    height: 24px;
}

.audience-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-2xs);
}

.audience-desc {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.65;
}

/* ===========================================
   HOW IT WORKS
   =========================================== */
.process {
    padding: var(--space-3xl) 0;
    position: relative;
}

.process-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.process-header .section-heading {
    margin-left: auto;
    margin-right: auto;
}

.process-header .section-subtext {
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    gap: var(--space-lg);
    position: relative;
}

/* Connecting line */
.process-steps::before {
    display: none;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    position: relative;
}

.step-content {
    padding-top: 0.25rem;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.7;
    max-width: 45ch;
}

/* ===========================================
   WHY US
   =========================================== */
.why {
    padding: var(--space-3xl) 0;
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.why .section-heading {
    color: var(--white);
}

.why .section-subtext {
    color: var(--grey-mid);
}

.why-header {
    margin-bottom: var(--space-xl);
}

.why-grid {
    display: grid;
    gap: var(--space-sm);
}

.why-card {
    display: flex;
    align-items: start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--dark-mid);
    transition: all 0.3s var(--ease-out);
}

.why-card:hover {
    border-color: var(--teal);
    background: rgba(42, 157, 143, 0.05);
}

.why-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-mid);
    border-radius: var(--radius-sm);
    color: var(--teal);
    flex-shrink: 0;
    transition: background 0.3s var(--ease-out);
}

.why-card:hover .why-card-icon {
    background: var(--teal);
    color: var(--white);
}

.why-card-icon svg {
    width: 20px;
    height: 20px;
}

.why-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2xs);
}

.why-card-desc {
    font-size: 0.875rem;
    color: var(--grey-mid);
    line-height: 1.6;
}

/* ===========================================
   ABOUT
   =========================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.about-inner {
    display: grid;
    gap: var(--space-xl);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--grey-text);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
    max-width: 55ch;
}

.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

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

.about-photo {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* ===========================================
   PORTFOLIO
   =========================================== */
.portfolio {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.portfolio-grid {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-light);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.portfolio-card-browser {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.625rem var(--space-md);
    background: var(--dark);
    border-bottom: 1px solid var(--dark-mid);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-mid);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--grey-mid);
    background: var(--dark-soft);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    flex: 1;
    text-align: center;
}

.portfolio-card-body {
    padding: var(--space-lg);
}

.portfolio-card-trade {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    background: var(--teal-subtle);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.portfolio-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.portfolio-card-desc {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.65;
    max-width: 50ch;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal);
    transition: gap 0.3s var(--ease-out);
}

.portfolio-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.portfolio-card:hover .portfolio-card-link svg {
    transform: translate(3px, -3px);
}

/* Monnow Eco Plumb — navy + green brand */
.portfolio-card--mep {
    border-color: #1a2332;
}

.portfolio-card--mep .portfolio-card-browser {
    background: #1a2332;
}

.portfolio-card--mep .browser-url {
    background: #263040;
}

.portfolio-card--mep .portfolio-card-trade {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.portfolio-card--mep .portfolio-card-link {
    color: #27ae60;
}

.portfolio-card--mep:hover {
    border-color: #27ae60;
    box-shadow: 0 8px 40px rgba(39, 174, 96, 0.15);
}

/* Tom Wareham Construction — charcoal + orange brand */
.portfolio-card--twc {
    border-color: #2b2b2b;
}

.portfolio-card--twc .portfolio-card-browser {
    background: #2b2b2b;
}

.portfolio-card--twc .browser-url {
    background: #3a3a3a;
}

.portfolio-card--twc .portfolio-card-trade {
    color: #d4722c;
    background: rgba(212, 114, 44, 0.1);
}

.portfolio-card--twc .portfolio-card-link {
    color: #d4722c;
}

.portfolio-card--twc:hover {
    border-color: #d4722c;
    box-shadow: 0 8px 40px rgba(212, 114, 44, 0.15);
}

.portfolio-note {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--grey-mid);
    font-style: italic;
    text-align: center;
}

/* The Rose & Crown — dark green + gold brand */
.portfolio-card--rac { border-color: #1a2e1a; }
.portfolio-card--rac .portfolio-card-browser { background: #1a2e1a; }
.portfolio-card--rac .browser-url { background: #2d4a2d; }
.portfolio-card--rac .portfolio-card-trade { color: #c9a84c; background: rgba(201,168,76,0.1); }
.portfolio-card--rac .portfolio-card-link { color: #c9a84c; }
.portfolio-card--rac:hover { border-color: #c9a84c; box-shadow: 0 8px 40px rgba(201,168,76,0.15); }

/* Work page hero */
.page-hero {
    padding: 120px 0 60px;
    text-align: center;
}

/* Full-width grid on work page */
.portfolio-grid--full {
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .portfolio-grid--full { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .portfolio-grid--full { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-note a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.portfolio-note a:hover {
    color: var(--teal-dark);
}

/* ===========================================
   FAQ
   =========================================== */
.faq {
    padding: var(--space-3xl) 0;
}

.faq-header {
    margin-bottom: var(--space-xl);
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-xs);
}

.faq-item {
    background: var(--cream);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.faq-item[open] {
    border-color: var(--teal);
    background: var(--teal-subtle);
}

.faq-question {
    padding: var(--space-md) var(--space-md);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--teal);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question:hover {
    color: var(--teal);
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.7;
    max-width: 60ch;
}

.faq-answer a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    color: var(--teal-dark);
}

/* ===========================================
   CONTACT
   =========================================== */
.contact {
    padding: var(--space-3xl) 0;
    position: relative;
}

.contact-inner {
    display: grid;
    gap: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-subtle);
    border-radius: var(--radius-md);
    color: var(--teal);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.contact-detail-label {
    font-size: 0.75rem;
    color: var(--grey-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-wrapper {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--grey-light);
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.01em;
}

.required {
    color: var(--teal);
    font-weight: 700;
}

.optional {
    color: var(--grey-mid);
    font-weight: 400;
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8125rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1.5px solid var(--grey-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--grey-mid);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

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

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--dark);
    color: var(--white);
}

.footer-inner {
    display: grid;
    gap: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--grey-mid);
    max-width: 35ch;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.footer-links-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--grey-mid);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-light);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1877F2;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: background 0.2s ease;
}

.footer-social:hover {
    background: #0d65d9;
    color: #ffffff;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--dark-mid);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--grey-mid);
}

/* ===========================================
   STICKY MOBILE CTA
   =========================================== */
.sticky-cta {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 90;
    display: flex;
    gap: var(--space-xs);
}

.sticky-cta .btn {
    flex: 1;
    padding: 0.9375rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===========================================
   RESPONSIVE — TABLET (640px+)
   =========================================== */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto var(--space-sm);
    }

    .step-desc {
        margin: 0 auto;
    }

    .process-steps::before {
        display: block;
        content: '';
        position: absolute;
        top: 28px;
        left: calc(16.66% + 28px);
        right: calc(16.66% + 28px);
        height: 2px;
        background: var(--grey-light);
    }

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

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

    .hero-decoration {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* ===========================================
   RESPONSIVE — DESKTOP (900px+)
   =========================================== */
@media (min-width: 900px) {
    :root {
        --container-pad: 2rem;
    }

    .nav {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .header-phone {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .about-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .contact-inner {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
    }

    /* Hide sticky CTA on desktop */
    .sticky-cta {
        display: none;
    }
}

/* ===========================================
   RESPONSIVE — LARGE DESKTOP (1100px+)
   =========================================== */
@media (min-width: 1100px) {
    .hero-inner {
        max-width: 75%;
    }

    .rocket-dog {
        display: block;
        right: 4%;
        bottom: auto;
        top: 50%;
        width: 200px;
        animation: dogFloat 3.5s ease-in-out infinite;
        filter: drop-shadow(0 24px 32px rgba(0,0,0,0.10));
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== TOP ANNOUNCEMENT BAR ==================== */
.topbar {
    display: block;
    background: linear-gradient(90deg, #1F2937 0%, #0F1B2E 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid var(--teal, #2A9D8F);
    transition: background 0.2s ease;
    position: relative;
    z-index: 100;
}
.topbar:hover { background: linear-gradient(90deg, #1E7A6E 0%, #155B52 100%); }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}
.topbar-tag {
    background: var(--teal, #2A9D8F);
    color: #fff;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.topbar-text { color: rgba(255,255,255,0.95); }
.topbar-text strong { color: #fff; font-weight: 700; }
.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--teal-light, #6FD3C6);
    font-weight: 700;
    flex-shrink: 0;
}
.topbar:hover .topbar-cta { color: #fff; }
.topbar-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.topbar:hover .topbar-cta svg { transform: translateX(3px); }

@media (max-width: 640px) {
    .topbar { padding: 8px 0; }
    .topbar-inner { font-size: 0.82rem; gap: 8px; flex-wrap: nowrap; justify-content: center; }
    .topbar-text {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        min-width: 0;
    }
    .topbar-text-full { display: none; }
    .topbar-text-short { display: inline; }
    .topbar-cta-text { display: none; }
    .topbar-cta svg { width: 16px; height: 16px; }
}
.topbar-text-short { display: none; }

/* ==================== FREE AUDIT STRIP (homepage) ==================== */
.audit-strip {
    background: linear-gradient(135deg, #1E7A6E 0%, #155B52 100%);
    padding: 56px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.audit-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.audit-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.audit-strip-content { flex: 1; }
.audit-strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.audit-strip-badge svg { width: 14px; height: 14px; }
.audit-strip h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 10px;
}
.audit-strip p {
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    margin: 0;
    max-width: 640px;
}
.audit-strip-cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.audit-strip-cta .btn-primary {
    background: #fff;
    color: var(--teal, #2A9D8F);
    border-color: #fff;
}
.audit-strip-cta .btn-primary:hover {
    background: var(--cream, #FFF8F0);
    color: var(--teal-dark, #21867a);
}
.audit-strip-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

@media (min-width: 768px) {
    .audit-strip { padding: 64px 0; }
    .audit-strip-inner {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .audit-strip-cta { align-items: flex-end; flex-shrink: 0; }
}
