/* =============================================================================
   Fitzrovia Private Staff — Main Stylesheet
   File: assets/css/styles.css

   Sections:
     1.  Google Font Imports
     2.  CSS Custom Properties (Design Tokens)
     3.  Reset & Base Styles
     4.  Typography
     5.  Buttons
     6.  Cookie Consent Banner
     7.  Header & Navigation
     8.  Hero Section
     9.  Logo Section
     10. Services Overview
     11. Why Choose Us
     12. Call to Action
     13. Policy Pages (Data Protection / Cookie Policy)
     14. Footer
     15. Page Header (inner pages)
     16. About Page
     17. Forms
     18. Candidates Page
     19. Clients Page
     20. Responsive Design (mobile breakpoints)
     21. Accessibility
   ============================================================================= */

/* =============================================================================
   1. Google Font Imports
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =============================================================================
   2. CSS Custom Properties (Design Tokens)
   All brand colours, spacing, shadows, and typography values live here.
   Update these variables to restyle the entire site.
   ============================================================================= */
:root {
    /* Primary Brand Colors */
    --primary-terracotta: #C46A44;
    --primary-dark: #A8553A;
    
    /* Neutral Colors */
    --off-white: #F9F7F3;
    --cream: #F1EEE9;
    --light-taupe: #E8E3DD;
    --medium-taupe: #C9BDB5;
    --dark-taupe: #8B7B73;
    --charcoal-grey: #3C4347;
    
    /* Legacy color mappings for compatibility */
    --primary-coral: #C46A44;
    --warm-white: #F9F7F3;
    --charcoal: #3C4347;
    
    /* Accent Colors */
    --success-green: #7BA05B;
    --warning-amber: #D4A574;
    --error-red: #C85A5A;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    --font-main-title: 'Cormorant Garamond', serif;
    --font-subtitle: 'Montserrat', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(196, 106, 68, 0.1);
    --shadow-medium: 0 4px 20px rgba(196, 106, 68, 0.15);
    --shadow-heavy: 0 8px 30px rgba(196, 106, 68, 0.2);
}

/* =============================================================================
   3. Reset & Base Styles
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--warm-white);
}

/* Container utility — centred, max-width wrapper used on every section */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   4. Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-taupe);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* =============================================================================
   5. Buttons
   Variants: .btn-primary, .btn-secondary, .btn-outline, .btn-outline-light
   Size modifier: .btn-large
   ============================================================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary-coral);
    color: white;
    border-color: var(--primary-coral);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-coral);
    border-color: var(--primary-coral);
}

.btn-secondary:hover {
    background-color: var(--primary-coral);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-coral);
    border-color: var(--primary-coral);
}

.btn-outline:hover {
    background-color: var(--primary-coral);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-coral);
}

/* =============================================================================
   6. Cookie Consent Banner
   Controlled via JavaScript (initializeCookieConsent in assets/js/main.js).
   The .show class is toggled by JS to slide the banner into view.
   ============================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--charcoal);
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}



.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: white;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--primary-coral);
    text-decoration: underline;
}

.cookie-link:hover {
    color: white;
}

/* =============================================================================
   7. Header & Navigation
   Sticky header with responsive hamburger menu for mobile.
   Mobile menu behaviour is handled in assets/js/main.js via initializeNavigation().
   ============================================================================= */
.header {
    background-color: var(--warm-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-family: var(--font-main-title);
    font-size: 18px;
    font-weight: 600;
    color: #3C4347;
    letter-spacing: 1px;
    padding-left: 1px;
}

.logo-sub {
    font-family: var(--font-subtitle);
    font-size: 9px;
    font-weight: 600;
    color: #C46A44;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-coral);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--charcoal);
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--cream);
    color: var(--primary-coral);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    margin: 3px 0;
    transition: 0.3s;
}

/* =============================================================================
   8. Hero Section (index.html)
   Full-width building image with a bottom gradient fade overlay.
   Scroll-fade effect is applied in JS (initializeHeroScrollEffect).
   ============================================================================= */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-building-container {
    position: relative;
    width: 100%;
    height: 80vh;
}

.hero-building {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(249, 247, 243, 0.95) 0%, rgba(249, 247, 243, 0.8) 5%, transparent 100%);
    height: 50%;
    pointer-events: none;
}

/* =============================================================================
   9. Logo Section (index.html)
   Full-width centred logo + tagline displayed below the hero image.
   ============================================================================= */
.logo-section {
    padding: 80px 0;
    background-color: var(--warm-white);
    text-align: center;
}

.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.hero-logo {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-main-title);
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 600;
    color: #3C4347;
    letter-spacing: 2px;
    padding-left: 2px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: var(--font-subtitle);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    color: #C46A44;
    letter-spacing: 3px;
    padding-left: 50px;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-subtitle {
        padding-left: 0;
    }
}

/* =============================================================================
   10. Services Overview (index.html)
   Four-column responsive grid of service cards.
   ============================================================================= */
.services-overview {
    padding: var(--section-padding);
    background-color: var(--warm-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--dark-taupe);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-coral);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-description {
    color: var(--dark-taupe);
}

/* =============================================================================
   11. Why Choose Us (index.html)
   Two-column layout: feature list on the left, image on the right.
   ============================================================================= */
.why-choose-us {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.feature-content p {
    color: var(--dark-taupe);
    margin: 0;
}

.image-placeholder {
    background-color: var(--light-taupe);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =============================================================================
   12. Call to Action (index.html)
   Full-width gradient banner with primary action buttons.
   ============================================================================= */
.cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   13. Policy Pages (data-protection.html, cookie-policy.html)
   Two-column layout for legal content pages.
   ============================================================================= */
.policy-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Two-column layout for policy pages */
.policy-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 60px;
}

.policy-column {
    min-height: 100vh;
}

.column-left {
    border-right: 1px solid var(--light-taupe);
    padding-right: 30px;
}

.column-right {
    padding-left: 30px;
}

.policy-meta {
    background: var(--cream);
    padding: 25px 40px;
    border-bottom: 1px solid #e5e5e5;
}

.policy-meta p {
    margin: 5px 0;
    color: var(--dark-taupe);
    font-size: 0.95rem;
}

.policy-text {
    padding: 40px;
}

.intro-section {
    background: #f8f9fa;
    margin: -40px -40px 40px -40px;
    padding: 30px 40px;
    border-bottom: 3px solid var(--primary-coral);
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin: 0;
    font-weight: 500;
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: var(--charcoal);
    font-family: var(--font-main-title);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-coral);
    display: inline-block;
}

.policy-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 20px;
    color: var(--primary-coral);
}

.policy-section p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.list-container {
    margin: 20px 0;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-coral);
    padding-left: 20px;
    line-height: 1.6;
}

.policy-list li:before {
    content: "•";
    color: var(--primary-coral);
    font-weight: bold;
    position: absolute;
    left: 8px;
    font-size: 1.2rem;
}

.policy-link {
    color: var(--primary-coral);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.policy-link:hover {
    color: var(--charcoal);
    border-bottom-color: var(--primary-coral);
}

.contact-section .contact-details {
    margin-top: 25px;
}

.contact-card {
    background: var(--cream);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.contact-card h4 {
    color: var(--charcoal);
    font-family: var(--font-main-title);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for policy pages */
@media (max-width: 1200px) {
    .policy-content {
        height: auto;
        min-height: calc(100vh - 200px);
    }
    
    .policy-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        height: auto;
        overflow-y: visible;
    }
    
    .column-left {
        border-right: none;
        border-bottom: 1px solid var(--light-taupe);
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .column-right {
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .policy-content {
        padding: 15px 0;
        height: auto;
        min-height: calc(100vh - 150px);
    }
    
    .content-wrapper {
        margin: 0 15px;
        border-radius: 6px;
    }
    
    .policy-columns {
        padding: 15px;
        gap: 15px;
        height: auto;
    }
    
    .policy-meta {
        padding: 10px 20px;
    }
    
    .intro-section {
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    .intro-section p {
        font-size: 0.9rem;
    }
    
    .policy-section {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .policy-section h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .policy-section h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
        margin-top: 12px;
    }
    
    .policy-section p {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .policy-list li {
        padding: 4px 0 4px 15px;
        padding-left: 12px;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .contact-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .column-left {
        padding-bottom: 15px;
    }
    
    .column-right {
        padding-top: 15px;
    }
}

/* =============================================================================
   14. Footer
   Dark background, four-column grid with logo, links, and contact.
   ============================================================================= */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-family: var(--font-main-title);
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.footer-logo-sub {
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 600;
    color: #C46A44;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    color: var(--primary-coral);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-coral);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* =============================================================================
   Mobile / overflow safety — keeps all content within the viewport
   ============================================================================= */
.image-placeholder {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.image-placeholder svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Ensure all content stays within viewport */
* {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    overflow-x: hidden;
}

/* =============================================================================
   20. Responsive Design
   Breakpoints: 768px (tablet/mobile menu), 480px (small phones)
   ============================================================================= */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-main {
        font-size: 14px;
    }
    
    .logo-sub {
        font-size: 9px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--cream);
        margin-top: 1rem;
    }

    .hero-building-container {
        height: 60vh;
    }
    
    .hero-building {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right;
    }
    
    .logo-section {
        padding: 60px 20px 40px;
    }

    .hero-logo {
        height: 90px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: clamp(20px, 5vw, 28px);
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: clamp(10px, 2vw, 14px);
        letter-spacing: 2px;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .feature-item {
        text-align: left;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    /* Mobile-specific image fixes */
    .image-placeholder {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .image-placeholder svg {
        width: 100%;
        height: auto;
        max-width: 320px;
    }

    /* Form responsive improvements */
    .form-container {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .form-fieldset {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =============================================================================
   21. Accessibility
   Reduced-motion preference + visible focus rings for keyboard navigation.
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-coral);
    outline-offset: 2px;
}

/* =============================================================================
   15. Page Header — used at the top of all inner pages
   Default: gradient background. Variants add full-bleed background images.
   ============================================================================= */
.page-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-taupe) 100%);
    text-align: center;
    position: relative;
    color: var(--charcoal);
}

.page-header.clients-header {
    padding: 20rem 0;
    background-color: var(--primary-terracotta);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/clients-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.page-header.contact-header {
    padding: 30rem 0;
    background-color: var(--primary-terracotta);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="page-pattern" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="%23C46A44" opacity="0.1"/></pattern></defs><rect width="400" height="400" fill="url(%23page-pattern)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    margin-bottom: 1rem;
    color: inherit;
}

.page-subtitle {
    font-size: 1.25rem;
    color: inherit;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* =============================================================================
   16. About Page
   ============================================================================= */

/* About Story Section */
.about-story {
    padding: var(--section-padding);
    background-color: var(--warm-white);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-taupe);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Expertise Section */
.expertise-section {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-taupe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-coral);
}

.expertise-title {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.5rem;
}

.expertise-description {
    color: var(--dark-taupe);
    line-height: 1.6;
}

/* Values Section */
.values-section {
    padding: var(--section-padding);
    background-color: var(--warm-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.value-title {
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-size: 1.25rem;
}

.value-description {
    color: var(--dark-taupe);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   17. Active Navigation State
   ============================================================================= */
.nav-link.active {
    color: var(--primary-coral);
}

.nav-link.active::after {
    width: 100%;
}

/* =============================================================================
   17. Forms
   Shared form styles used on contact.html, candidates.html, and clients.html.
   Validation error styles (.error, .error-message) applied by JS.
   ============================================================================= */
.form-section {
    padding: var(--section-padding);
    background-color: var(--warm-white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-taupe);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: var(--warm-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-coral);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 82, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .required {
    color: var(--error-red);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--light-taupe);
    color: var(--charcoal);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-upload-label:hover {
    background-color: var(--medium-taupe);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.message.success {
    background-color: rgba(123, 160, 91, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.message.error {
    background-color: rgba(200, 90, 90, 0.1);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.error-message {
    color: var(--error-red);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* =============================================================================
   18. Candidates Page
   ============================================================================= */
.candidates-intro {
    padding: var(--section-padding);
    background-color: var(--warm-white);
}

.intro-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-coral);
    font-size: 1.5rem;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.process-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--dark-taupe);
    border-bottom: 1px solid var(--light-taupe);
}

.process-list li:last-child {
    border-bottom: none;
}

.process-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary-coral);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.process-list {
    counter-reset: step-counter;
}

.candidates-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Why Register Section */
.why-register {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-taupe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-coral);
}

.benefit-title {
    margin-bottom: 1rem;
    color: var(--charcoal);
    font-size: 1.5rem;
}

.benefit-description {
    color: var(--dark-taupe);
    line-height: 1.6;
}

/* Form Fieldset Styles */
.form-fieldset {
    border: 1px solid var(--light-taupe);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.fieldset-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-coral);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    background-color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header .section-subtitle {
    color: var(--dark-taupe);
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-fieldset {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-list li {
        padding-left: 2.5rem;
    }
    
    .process-list li::before {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-fieldset {
        padding: 1rem;
    }
    
    .fieldset-title {
        font-size: 1.125rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-coral: #D4540F;
        --primary-dark: #A8430C;
        --charcoal: #000000;
    }
}
