/* =========================================
   CSS Variables (Design System Palette)
========================================= */
:root {
    --bg-color: #F9F9F9; /* Off-White */
    --text-primary: #2D3748; /* Deep Slate */
    --accent-navy: #2C5282; /* Muted Navy */
    --btn-terracotta: #C05621; /* Terracotta */
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

:focus-visible {
    outline: 2px solid var(--accent-navy);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =========================================
   Base Styles & Topographic Background
========================================= */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    
    /* 200x200 Seamless Architectural Grid (4% opacity) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232D3748' stroke-opacity='0.04'%3E%3C!-- The French Hexagon (Central Hub) --%3E%3Cpolygon points='100,70 126,85 126,115 100,130 74,115 74,85' stroke-width='2' /%3E%3Cpolygon points='100,80 117,90 117,110 100,120 83,110 83,90' stroke-width='1' stroke-dasharray='3,3' /%3E%3C!-- The Governance Network (Orthogonal Tracking Lines) --%3E%3Cpath d='M100 70 L100 0 M100 130 L100 200 M126 85 L200 85 M126 115 L200 115 M74 115 L0 115 M74 85 L0 85' stroke-width='1' /%3E%3C!-- The Aramoana (Māori Stepped Pathway / Project Progress) --%3E%3Cpath d='M0 50 L25 50 L25 25 L50 25 L50 0 M150 0 L150 25 L175 25 L175 50 L200 50 M200 150 L175 150 L175 175 L150 175 L150 200 M50 200 L50 175 L25 175 L25 150 L0 150' stroke-width='1.5' /%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-position: center;
}

/* =========================================
   Sticky Navigation Bar
========================================= */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(45, 55, 72, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lang-toggle {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
}

.active-lang {
    font-weight: 600;
}

.contact-link {
    color: var(--accent-navy);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.hidden {
    display: none !important;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding: 120px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--btn-terracotta);
    color: var(--bg-color);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-placeholder::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-navy);
    z-index: -1;
}

/* =========================================
   Industries / Friction Section
========================================= */
.friction-flow {
    padding: 80px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.card {
    background-color: #FFFFFF;
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(45, 55, 72, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 48px;
    height: 48px;
    stroke: var(--accent-navy);
    stroke-width: 1.5;
    margin-bottom: 24px;
}

.arrow-down {
    width: 24px;
    height: 24px;
    stroke: var(--accent-navy);
    stroke-width: 1.5;
    margin: 20px 0;
    opacity: 0.5;
}

.headache {
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.6;
}

.headache strong {
    color: #4A5568;
    display: block;
    margin-bottom: 8px;
}

.fix {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.fix strong {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

/* =========================================
   Bio Section
========================================= */
.bio-section {
    background-color: transparent; 
    padding: 0 48px 120px; /* Reduced top padding since it flows directly from Industries */
}

.bio-section .section-title {
    margin-bottom: 64px; /* Matches the spacing of other section titles */
}

.bio-container {
    max-width: 1000px; /* Slightly narrower than the 1200px grid for a focused reading experience */
    margin: 0 auto;
}

/* The New Featured Card Look */
.bio-card {
    background-color: #FFFFFF;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 55, 72, 0.05);
}

.bio-layout {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 40px;
}

.bio-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 320px;
}

.bio-profile-pic {
    width: 100%;
    aspect-ratio: 3 / 4; /* Matches the rectangular Hero placeholder */
    border-radius: 8px; /* Matches the card corners instead of being circular */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bio-text-content {
    flex: 1;
}

.bio-text-content p {
    line-height: 1.7;
    margin-bottom: 24px; /* Increased slightly for better breathing room */
    color: var(--text-primary);
    opacity: 0.9;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0077b5;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 8px;
    width: 100%; 
    box-sizing: border-box;
}

.linkedin-btn:hover {
    background-color: #005885;
}

/* Desktop Bio Version */
@media (min-width: 900px) {
    .bio-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px; /* Increased gap for desktop */
    }
    
    .bio-image {
        width: 280px; /* Fixed width on desktop */
    }
    
    .linkedin-btn {
        width: auto; 
    }
}

/* =========================================
   Process Section (The New Dark Section)
========================================= */
.process {
    background-color: var(--accent-navy);
    width: 100%;
    padding: 120px 48px;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.process .section-title {
    color: var(--bg-color);
    margin-bottom: 80px;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.step {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 24px;
}

.step::before {
    content: attr(data-step);
    position: absolute;
    top: -60px;
    left: -20px;
    font-size: 10rem;
    font-weight: 600;
    color: var(--bg-color);
    opacity: 0.05;
    z-index: -1;
    line-height: 1;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--bg-color);
}

.step p {
    font-size: 1.05rem;
    color: var(--bg-color);
    line-height: 1.6;
    opacity: 0.9;
}

/* =========================================
   Final Call to Action
========================================= */
.final-cta {
    padding: 120px 48px 160px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.large-btn {
    font-size: 1.25rem;
    padding: 20px 40px;
}

/* =========================================
   Footer
========================================= */
.site-footer {
    padding: 48px;
    border-top: 1px solid rgba(45, 55, 72, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-color);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copy p {
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.6;
}

/* =========================================
   Mobile Responsiveness
========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }
    
    .hero {
        flex-direction: column;
        padding: 120px 24px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image-placeholder {
        max-width: 320px;
    }
    
    .hero-image-placeholder::before {
        top: 16px;
        left: 16px;
    }
    
    .friction-flow {
        padding: 64px 24px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .bio-section {
        padding: 80px 24px;
    }
    
    .process {
        padding: 80px 24px;
    }
    
    .process-grid {
        flex-direction: column;
        gap: 80px;
    }
    
    .step::before {
        top: -50px;
        left: -10px;
        font-size: 8rem;
    }
    
    .final-cta {
        padding: 80px 24px 100px;
    }
    
    .final-cta h2 {
        font-size: 1.75rem;
    }
}