/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #63a5c2;
    --secondary-color: #bd4b5c;
    --text-color: #000c30;
    --background-color: #ffffff;
    --light-bg: #f8fafc;
    --medium-bg: #f2f2f2;
    --dark-bg: #000c30;
    --border-color: #e7e7e7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 5em;
    line-height: 1.4;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-bg);
    color: #ffffff;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Header */
.site-header {
    background: var(--primary-color);
    padding: 1.5em 0;
    box-shadow: var(--shadow);
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    max-width: 450px;
    height: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

/* Navigation - WCAG Compliant Colors */
.main-navigation {
    display: flex;
    align-items: center;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5em;
    background: rgba(255, 255, 255, 0.95);
    padding: 1em 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Allows wrapping if needed */
    justify-content: center; /* Center items */
}

.nav-link {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 0.8em 1.2em;
    border-radius: 6px;
    border: 2px solid transparent;
    white-space: nowrap; /* Prevents text wrapping */
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary-color);
    background: var(--light-bg);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
    color: white;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nav-link[aria-current="page"]:hover,
.nav-link[aria-current="page"]:focus {
    background: #a53e4d;
    color: white;
    border-color: #a53e4d;
}

/* Sections with alternating backgrounds */
section {
    padding: 4em 0;
}

/* Alternate section backgrounds */
.intro-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--background-color) 100%);
}

.offer-section {
    background: var(--background-color);
}

.work-section {
    background: var(--medium-bg);
}

.approach-section {
    background: var(--light-bg);
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a8fa8 100%);
    color: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1em;
    text-align: center;
}

.contact-section .section-title {
    color: white;
}

/* Grid Layouts */
.intro-grid,
.offer-grid,
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em;
    align-items: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4em;
}

/* Cards and containers with shadows */
.intro-content,
.offer-content,
.work-content,
.approach-content,
.fees-section {
    background: white;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.fees-section {
    background: var(--light-bg);
    margin-top: 2em;
}

/* Images */
.intro-image img,
.offer-image img,
.work-image img,
.stones-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.intro-image img:hover,
.offer-image img:hover,
.work-image img:hover {
    transform: translateY(-5px);
}

.intro-portrait {
    max-width: 400px;
}

.forest-portrait {
    max-width: 683px;
}

.professional-portrait {
    max-width: 376px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    background: var(--secondary-color);
    color: white;
    padding: 16px 38px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-top: 1.5em;
    box-shadow: 0 4px 15px rgba(189, 75, 92, 0.3);
}

.cta-button:hover,
.cta-button:focus {
    background: #a53e4d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 75, 92, 0.4);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Lists */
.qualifications-list,
.help-list {
    list-style: none;
    margin: 1.5em 0;
}

.qualifications-list li,
.help-list li {
    padding: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
    background: var(--light-bg);
    margin-bottom: 0.5em;
    border-radius: 6px;
    padding: 0.8em 1em 0.8em 2.5em;
}

.qualifications-list li::before,
.help-list li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

/* Contact Section */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    padding: 1em 2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.contact-link:hover,
.contact-link:focus {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* Footer - WCAG Compliant */
.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 3em 0 2em;
    margin-top: 4em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-copyright {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    color: #8bc4d9;
    text-decoration: underline;
}

.accessibility-statement {
    font-size: 0.9em;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 1em;
    border-radius: 6px;
    margin-top: 1.5em;
}

.accessibility-statement a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.accessibility-statement a:hover {
    color: #8bc4d9;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus {
    background: #a53e4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile-only section */
.mobile-image-section {
    display: none;
    background: var(--medium-bg);
    padding: 2em 0;
}

/* Subsection titles */
.subsection-title {
    color: var(--secondary-color);
    margin: 1.5em 0 0.5em 0;
    font-size: 1.4em;
}

.help-title {
    color: var(--secondary-color);
    margin: 2em 0 1em 0;
    font-size: 1.6em;
}

.fees-title {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.8em;
}

.fees-content {
    text-align: center;
}

.fees-content p {
    margin-bottom: 1em;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
a:focus,
.nav-link:focus,
.cta-button:focus,
.contact-link:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #cc0000;
        --text-color: #000000;
        --background-color: #ffffff;
        --light-bg: #f0f0f0;
        --medium-bg: #e0e0e0;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: #000000;
        color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .intro-image img:hover,
    .offer-image img:hover,
    .work-image img:hover,
    .cta-button:hover,
    .contact-link:hover {
        transform: none;
    }



    /* Grid Layouts */
    .intro-grid,
    .offer-grid,
    .work-grid,
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .offer-grid {
        grid-template-areas: 
            "text"
            "image";
    }

    .offer-text {
        grid-area: text;
    }

    .offer-image {
        grid-area: image;
    }

    /* Contact Section */
    .contact-methods {
        flex-direction: column;
        gap: 1em;
    }

    /* Mobile-only Image Section */
    .mobile-image-section {
        display: block;
    }

    .mobile-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Content Padding */
    .intro-content,
    .offer-content,
    .work-content,
    .approach-content,
    .fees-section {
        padding: 1.5em;
    }

    /* Section Spacing */
    section {
        padding: 3em 0;
    }

    /* Button Sizing */
    .cta-button {
        padding: 14px 30px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }

    /* Contact Links */
    .contact-link {
        padding: 0.8em 1.5em;
        font-size: 1.1em;
        text-align: center;
    }

    /* Lists */
    .qualifications-list li,
    .help-list li {
        padding: 0.8em 1em 0.8em 2.5em;
        font-size: 0.95em;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 3em;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    /* Header adjustments */
    .header-container {
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }
    
    .site-logo {
        max-width: 400px;
    }

    /* Navigation for mobile */
      .nav-menu {
        gap: 0.8em; /* Tighter spacing on mobile */
        padding: 0.8em 1em;
        justify-content: center; /* Ensure centering */
    }
    
    .nav-link {
        padding: 0.6em 1em;
        font-size: 1em; /* Slightly smaller on mobile */
        text-align: center;
    }

    /* Grid Layouts - stack sections vertically with consistent image-first order */
    .intro-grid,
    .offer-grid,
    .work-grid,
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    /* Force consistent stacking: image first, then text */
    .intro-grid {
        grid-template-areas: 
            "image"
            "text";
    }

    .offer-grid {
        grid-template-areas: 
            "image"
            "text";
    }

    .work-grid {
        grid-template-areas: 
            "image"
            "text";
    }

    .approach-grid {
        grid-template-areas: 
            "image"
            "text";
    }

    /* Assign grid areas */
    .intro-image { grid-area: image; }
    .intro-content { grid-area: text; }
    .offer-image { grid-area: image; }
    .offer-content { grid-area: text; }
    .work-image { grid-area: image; }
    .work-content { grid-area: text; }
    .stones-image { grid-area: image; }
    .approach-content { grid-area: text; }

    /* Contact Section */
    .contact-methods {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }

    /* Content Padding */
    .intro-content,
    .offer-content,
    .work-content,
    .approach-content,
    .fees-section {
        padding: 1.5em;
    }

    /* Section Spacing */
    section {
        padding: 2em 0;
    }

    /* Button Sizing */
    .cta-button {
        padding: 14px 30px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .contact-methods {
        flex-direction: column;
        gap: 1.5em;
        align-items: center;
        padding: 0 1em;
    }

    .contact-link {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1.2em 2em;
        text-align: center;
    }

    /* Remove any existing margins that might be causing overlap */
    .contact-method {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* Lists */
    .qualifications-list li,
    .help-list li {
        padding: 0.8em 1em 0.8em 2.5em;
        font-size: 0.95em;
    }

    /* Images */
    .intro-image img,
    .offer-image img,
    .work-image img,
    .stones-image img {
            display: inline-block;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Scroll to top button */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .intro-content,
    .offer-content,
    .work-content,
    .approach-content,
    .fees-section {
        padding: 1em;
    }
}
/* Accessibility page styles */
.accessibility-content {
    max-width: 800px;
    margin: 0 auto;
}

.accessibility-content h2 {
    color: var(--secondary-color);
    margin: 2em 0 1em 0;
    font-size: 1.6em;
}

.accessibility-content ul {
    margin: 1em 0;
    padding-left: 2em;
}

.accessibility-content li {
    margin-bottom: 0.5em;
}
.back-to-home {
    text-align: center;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
}

.back-to-home .cta-button {
    display: inline-flex;
    width: auto;
}

/* High contrast footer links */
.footer-copyright a,
.accessibility-statement a {
    color: #a8d8eb !important; /* Much lighter blue */
    text-decoration: underline;
    font-weight: 700; /* Bolder text */
}

.footer-copyright a:hover,
.footer-copyright a:focus,
.accessibility-statement a:hover,
.accessibility-statement a:focus {
    color: #ffffff !important; /* Pure white on hover */
    text-decoration: none;
    background-color: rgba(168, 216, 235, 0.2);
}
    .nav-menu {
        gap: 0.5em;
        padding: 0.6em 0.8em;
    }
    
    .nav-link {
        padding: 0.5em 0.8em;
        font-size: 0.95em;
    }

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: white;
    padding: 1.5em;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1em;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin: 1.5em 0;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.8em 2em;
    border: 2px solid white;
    border-radius: 6px;
    background: transparent;
    color: white;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cookie-buttons .btn-accept {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cookie-buttons .btn-accept:hover,
.cookie-buttons .btn-accept:focus {
    background: #a53e4d;
    border-color: #a53e4d;
    transform: translateY(-2px);
}

.cookie-buttons .btn-reject:hover,
.cookie-buttons .btn-reject:focus {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.cookie-links {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #a8d8eb !important; /* Light blue for good contrast */
    text-decoration: underline;
    font-weight: 600;
}

.cookie-links a:hover,
.cookie-links a:focus {
    color: #ffffff !important; /* Pure white on hover */
    text-decoration: none;
    background-color: rgba(168, 216, 235, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1em;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cookie-links {
        flex-direction: column;
        gap: 0.5em;
    }
    
    /* Keep the same colors on mobile - these are redundant now but safe to keep */
    .cookie-links a {
        color: #a8d8eb !important;
    }
    
    .cookie-links a:hover,
    .cookie-links a:focus {
        color: #ffffff !important;
    }
}
/* Accessibility & Privacy Page Styles */
.accessibility-content {
    max-width: 800px;
    margin: 0 auto;
}

.accessibility-content h2 {
    color: #000c30; /* Using your --text-color for better contrast (7:1 ratio) */
    margin: 2.5em 0 1em 0;
    font-size: 1.8em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5em;
}

.accessibility-content h3 {
    color: #000c30; /* Using --text-color instead of --primary-color for better contrast */
    margin: 1.5em 0 0.8em 0;
    font-size: 1.4em;
}

.accessibility-content ul {
    margin: 1em 0;
    padding-left: 2em;
}

.accessibility-content li {
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.accessibility-content strong {
    color: #000c30; /* High contrast instead of --secondary-color */
    font-weight: 600;
}

.back-to-home {
    text-align: center;
    margin-top: 4em;
    padding-top: 2em;
    border-top: 2px solid var(--border-color);
}

.back-to-home .cta-button {
    display: inline-flex;
    width: auto;
    margin: 0 auto;
}

/* Contact methods styling for the policy page */
.accessibility-content .contact-methods {
    margin: 2em 0;
    justify-content: center;
}

.accessibility-content .contact-link {
    color: #000c30; /* High contrast text */
    background: var(--light-bg);
    border-color: #000c30; /* High contrast border */
    font-weight: 600;
}

.accessibility-content .contact-link:hover,
.accessibility-content .contact-link:focus {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Ensure all text has sufficient contrast */
.accessibility-content {
    color: #000c30; /* Your --text-color */
}

.accessibility-content p {
    color: #000c30;
}