/* ───────────────────────────────────────────
   Purrfect Pooch — Enhanced Styles
   ─────────────────────────────────────────── */

:root {
    /* Brand */
    --primary: #2c6e49;
    --primary-light: #3a9d6e;
    --primary-dark: #1e5238;
    --secondary: #f4a261;
    --secondary-light: #f7b97e;
    --dark: #1d3557;
    --light: #f1faee;
    --white: #ffffff;

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 4px 20px rgba(44,110,73,0.3);

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease-out);
    --transition-fast: 0.15s var(--ease-out);

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.7;
    font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Focus visible for keyboard accessibility */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

/* ── Scroll fade-in animation ───────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ───────────────────────────────────────────
   HEADER
   ─────────────────────────────────────────── */
.header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 1.6rem;
    -webkit-text-fill-color: initial;
}

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

.nav a {
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

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

.nav a:hover::after {
    width: 100%;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all var(--transition);
}

.hamburger-line:nth-child(1) { top: 10px; }
.hamburger-line:nth-child(2) { top: 17px; }
.hamburger-line:nth-child(3) { top: 24px; }

.menu-toggle.active .hamburger-line:nth-child(1) {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ───────────────────────────────────────────
   HERO
   ─────────────────────────────────────────── */
.hero, .page-hero {
    position: relative;
    height: 75vh;
    min-height: 450px;
    max-height: 700px;
    overflow: hidden;
}

.hero img, .page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.30) 0%,
        rgba(44,110,73,0.15) 50%,
        rgba(0,0,0,0.35) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}

.hero-overlay h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

/* ───────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(44,110,73,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-full { width: 100%; }

/* ───────────────────────────────────────────
   SECTIONS
   ─────────────────────────────────────────── */
.section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.section-alt {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 4rem 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(44,110,73,0.08);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(44,110,73,0.15);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto;
}

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

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-image {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255,255,255,0.8));
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
    border-radius: 0;
    margin-bottom: 0;
}

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

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* ───────────────────────────────────────────
   STATS
   ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat p {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: left;
    position: relative;
    transition: all var(--transition);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.testimonial-card p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author cite {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
    font-size: 0.9rem;
}

/* ───────────────────────────────────────────
   CONTACT
   ─────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: left;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: transform var(--transition);
}

.contact-item:last-child { border-bottom: none; }

.contact-item:hover {
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44,110,73,0.08);
    border-radius: var(--radius-sm);
}

.contact-item strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.contact-form input,
.contact-form textarea {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--gray-800);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,110,73,0.12);
}

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

/* ───────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────── */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary);
}

.footer a {
    color: var(--primary-light);
    transition: color var(--transition-fast);
}

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

/* ───────────────────────────────────────────
   RESPONSIVE — 900px
   ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .section-alt {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}

/* ───────────────────────────────────────────
   RESPONSIVE — 768px
   ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .nav.active { display: flex; }

    .nav a {
        margin-left: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1rem;
    }

    .nav a::after { display: none; }

    .menu-toggle { display: block; }

    .hero, .page-hero {
        height: 60vh;
        min-height: 350px;
    }

    .hero-overlay h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .section {
        margin: 3.5rem auto;
        padding: 0 1rem;
    }

    .section-alt {
        padding: 3rem 1rem;
    }

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

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ───────────────────────────────────────────
   RESPONSIVE — 480px
   ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .hero, .page-hero {
        height: 50vh;
        min-height: 300px;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ── Mission Content ──── */
.mission-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* ── Timeline ──── */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transition: background var(--transition-fast);
}
.timeline-item:hover::before { background: var(--primary); }
.timeline-year {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(44,110,73,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}
.timeline-content h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.25rem; }
.timeline-content p { color: var(--gray-500); font-size: 0.95rem; }

/* ── Values Grid ──── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.value-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.value-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.5rem; }
.value-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }

/* ── CTA Section ──── */
.cta-section { margin-top: 3rem; }
.cta-box {
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    color: var(--white);
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-box .btn-primary { background: var(--white); color: var(--primary); border-color: var(--white); }
.cta-box .btn-primary:hover { background: var(--gray-100); border-color: var(--gray-100); transform: translateY(-2px); }

/* ── Responsive tweaks for about sections ──── */
@media (max-width: 768px) {
    .timeline { padding-left: 1.5rem; }
    .timeline-item::before { left: -1.85rem; }
    .values-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2.5rem 1.5rem; }
}


/* ── Step Card ── */
.step-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    transition: all var(--transition);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}
.step-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Step Number ── */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

/* ── Step Icon ── */
.step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 90;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Mobile hero overlay refinement for inner pages */
@media (max-width: 768px) {
  .page-hero {
    min-height: 360px;
  }

  .page-hero .hero-overlay {
    top: auto;
    bottom: 2.25rem;
    transform: none;
    padding: 1.25rem;
    max-width: 92%;
  }

  .page-hero .hero-overlay h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.65rem;
  }

  .page-hero .hero-overlay p {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 34ch;
  }

  .page-hero .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 420px) {
  .page-hero {
    min-height: 330px;
  }

  .page-hero .hero-overlay {
    bottom: 1.75rem;
  }

  .page-hero .hero-overlay h1 {
    font-size: 2rem;
  }

  .page-hero .hero-overlay p {
    font-size: 0.9rem;
  }
}

/* =========================================================
   PATCH — mobile about page visibility, spacing, breadcrumb
   ========================================================= */

/* Fix missing/broken approach grid rule */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Breadcrumb styling so it does not show as raw stacked text */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4rem;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

/* Safety fix: do not let scroll animations make content invisible */
.fade-up {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Mobile cleanup */
@media (max-width: 768px) {
    .breadcrumb {
        display: none !important;
    }

    .hero,
    .page-hero {
        height: 420px !important;
        min-height: 420px !important;
        max-height: none !important;
    }

    .page-hero .hero-overlay {
        justify-content: flex-end !important;
        padding: 0 1.25rem 4rem !important;
    }

    .page-hero .hero-overlay h1 {
        font-size: 2rem !important;
        line-height: 1.05 !important;
        margin-bottom: 0.65rem !important;
    }

    .page-hero .hero-overlay p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        max-width: 34ch !important;
        margin-bottom: 0 !important;
    }

    .page-hero .hero-badge {
        font-size: 0.72rem !important;
        margin-bottom: 0.65rem !important;
    }

    .section {
        margin: 2.5rem auto !important;
        padding: 0 1rem !important;
    }

    .section-alt {
        margin: 2.5rem 0 !important;
        padding: 2.5rem 1rem !important;
        border-radius: 0 !important;
    }

    .section-header {
        margin-bottom: 1.5rem !important;
    }

    .stats-grid,
    .values-grid,
    .approach-steps,
    .testimonial-grid,
    .cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .timeline {
        margin-top: 1rem !important;
        padding-left: 1.5rem !important;
    }

    .timeline-item {
        margin-bottom: 1.5rem !important;
    }

    .mission-content,
    .stat,
    .value-card,
    .step-card,
    .testimonial-card,
    .card,
    .cta-box {
        min-height: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero,
    .page-hero {
        height: 390px !important;
        min-height: 390px !important;
    }

    .page-hero .hero-overlay {
        padding-bottom: 3.25rem !important;
    }

    .page-hero .hero-overlay h1 {
        font-size: 1.9rem !important;
    }

    .section {
        margin: 2rem auto !important;
    }

    .section-alt {
        margin: 2rem 0 !important;
        padding: 2rem 1rem !important;
    }
}

/* Fully transparent overlay on inner pages — text only */
.page-hero .hero-overlay {
    background: transparent !important;
}

.page-hero .hero-overlay h1,
.page-hero .hero-overlay p,
.page-hero .hero-overlay .hero-badge {
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
}

/* Slightly stronger badge background so it doesn't get lost */
.page-hero .hero-overlay .hero-badge {
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.35);
}
