/* ─── INNER PAGES SHARED STYLES ─── */
/* Extends styles.css for About, Contact, Legal, and Sitemap pages */

/* ─── INNER PAGE HEADER FIX ─── */
/* Inner pages use .logo / .nav / .nav-chevron class names
   instead of the homepage's .header-logo / .header-nav / .dropdown-chevron.
   These rules mirror the homepage header styles for those alternate class names. */

/* Logo */
.header .logo,
.header .header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    flex-shrink: 0;
}

.header .logo img,
.header .header-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 225px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .header .logo img,
    .header .header-logo img {
        height: 34px;
        max-width: 190px;
    }
}

.header .logo:hover {
    color: var(--primary);
}

.header .logo .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.header .logo .logo-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}

.header .logo .logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.header .logo .logo-tag {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Nav — match .header-nav */
.header nav.nav {
    display: none;
    align-items: center;
    gap: 4px;
}

@media (min-width: 1024px) {
    .header nav.nav {
        display: flex;
    }
}

/* Chevron — match .dropdown-chevron */
.nav-chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.is-open .nav-chevron {
    transform: rotate(180deg);
}

/* ─── PAGE HERO / BREADCRUMB BANNER ─── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 94, 44, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43, 122, 75, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-on-dark-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.7;
}

/* ─── ABOUT PAGE — UNIQUE SECTIONS ─── */

/* Story Section with Timeline */
.about-story {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.about-story-text .section-tag {
    margin-bottom: 16px;
}

.about-story-text h2 {
    margin-bottom: 20px;
}

.about-story-text p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-story-visual {
    position: relative;
}

.about-img-placeholder,
.about-story-visual .site-photo,
.goal-visual .site-photo {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e8e0d6 100%);
    border-radius: var(--radius-lg);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    border: 2px dashed var(--border);
    position: relative;
    overflow: hidden;
}

.about-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(196, 94, 44, 0.03) 20px,
        rgba(196, 94, 44, 0.03) 40px
    );
}

.about-img-placeholder span {
    position: relative;
    z-index: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.about-story-visual .site-photo,
.goal-visual .site-photo,
.owner-photo-wrap .site-photo {
    display: block;
    object-fit: cover;
    border: 0;
}

.about-story-visual .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 12px 32px rgba(196, 94, 44, 0.3);
    z-index: 3;
}

.experience-badge .badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.experience-badge .badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

/* Mission & Values Cards */
.about-mission {
    padding: 80px 0;
    background: #fff;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.mission-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 45, 69, 0.08);
    border-color: var(--border);
}

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

.mission-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mission-card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.mission-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

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

/* Owner / Meet the Team */
.about-owner {
    padding: 80px 0;
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.owner-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.owner-photo-wrap {
    position: relative;
}

.owner-photo-placeholder,
.owner-photo-wrap .site-photo {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.owner-photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
}

.owner-photo-placeholder span {
    position: relative;
    z-index: 1;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    padding: 10px 18px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
}

.owner-name-plate {
    position: absolute;
    bottom: -16px;
    left: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 16px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 24px rgba(196, 94, 44, 0.35);
    z-index: 3;
}

.owner-name-plate h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.owner-name-plate span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.owner-details {
    padding-top: 10px;
}

.owner-details h2 {
    color: #fff;
    margin-bottom: 20px;
}

.owner-details p {
    color: var(--text-on-dark-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
}

.owner-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.credential-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.credential-item span {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    line-height: 1.5;
}

/* Who We Are — Stats Bar */
.about-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Who We Are Section */
.about-who {
    padding: 80px 0;
    background: var(--bg-alt);
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-content h2 {
    margin-bottom: 20px;
}

.who-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.who-list {
    margin-top: 24px;
}

.who-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.who-list-item svg {
    width: 22px;
    height: 22px;
    color: var(--cta);
    flex-shrink: 0;
    margin-top: 2px;
}

.who-list-item span {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Goal Section */
.about-goal {
    padding: 80px 0;
    background: #fff;
}

.goal-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.goal-text h2 {
    margin-bottom: 20px;
}

.goal-text p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.goal-visual {
    position: relative;
}

/* About CTA */
.about-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    color: #fff;
}

.about-cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.about-cta p {
    color: var(--text-on-dark-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-cta .cta-pair {
    justify-content: center;
}

/* ─── CONTACT PAGE ─── */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-card-text h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.contact-card-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card-text a {
    color: var(--accent-dark);
    font-weight: 500;
}

.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border-light);
}


.contact-form-wrap h2 {
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-light);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #fff;
}

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

.contact-map {
    margin-top: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.contact-map iframe {
    display: block;
}

/* ─── LEGAL PAGES (Privacy, Terms, Disclaimer) ─── */
.legal-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 32px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 10px;
}

.legal-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    list-style: disc;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--accent);
}

.legal-content strong {
    color: var(--primary);
}

/* ─── SITEMAP PAGE ─── */
.sitemap-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.sitemap-group {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.sitemap-group:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.sitemap-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-glow);
}

.sitemap-group-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.sitemap-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitemap-group li {
    list-style: none;
}

.sitemap-group a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sitemap-group a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    flex-shrink: 0;
    transition: all var(--transition);
}

.sitemap-group a:hover {
    background: var(--accent-glow);
    color: var(--accent-dark);
}

.sitemap-group a:hover::before {
    background: var(--accent);
    transform: scale(1.3);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .about-story-grid,
    .who-grid,
    .goal-content-wrap,
    .owner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-values-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

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

    .owner-photo-wrap {
        max-width: 350px;
        margin: 0 auto;
    }

    .owner-credentials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 40px;
    }

    .mission-values-grid {
        grid-template-columns: 1fr;
    }

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

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

    .legal-content {
        padding: 28px 20px;
    }

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

    .about-story,
    .about-mission,
    .about-owner,
    .about-who,
    .about-goal,
    .about-cta {
        padding: 60px 0;
    }

    .about-story-visual .experience-badge {
        bottom: -16px;
        right: 10px;
        padding: 14px;
    }

    .experience-badge .badge-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .owner-credentials {
        grid-template-columns: 1fr;
    }
}
