/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #14452F;
    --accent-green: #355E3B;
    --putty: #D2B48C;
    --cream: #E2E2DB;
    --charcoal: #444258;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
}

a {
    color: var(--accent-green);
    text-decoration: none;
}

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

button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

button:hover {
    background-color: #0E3B22;
}

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

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Shrinking header for legal pages */
.header.shrink {
    padding: 0.5rem 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.header.shrink .logo-img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 159px;
    width: 255px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Burger Menu Button */
.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.burger-menu:hover {
    transform: scale(1.1);
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.scrolled span {
    background-color: var(--primary-green);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Fullscreen Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(20, 69, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.close-line {
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    text-align: center;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.nav-overlay.active .nav-menu {
    transform: translateY(0);
}

.nav-menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active .nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu items */
.nav-overlay.active .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.active .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.active .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.active .nav-menu li:nth-child(5) { transition-delay: 0.3s; }
.nav-overlay.active .nav-menu li:nth-child(6) { transition-delay: 0.35s; }
.nav-overlay.active .nav-menu li:nth-child(7) { transition-delay: 0.4s; }
.nav-overlay.active .nav-menu li:nth-child(8) { transition-delay: 0.45s; }

.nav-link {
    color: var(--putty);
    text-decoration: none;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    color: var(--putty);
    transform: scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--putty);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    background-color: #E2E2DB;
    background-image: url('map.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    position: relative;
    padding: 0 20px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(226, 226, 219, 0.3);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(to right, #E2E2DB 70%, transparent);
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 2rem;
    margin-left: 5rem;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #14452F;
}

.hero-text p {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: #444258;
}

.hero-text button,
.hero-text .btn {
    background-color: #14452F;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.hero-text button:hover,
.hero-text .btn:hover {
    background-color: #0E3B22;
}

.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #0E3B22;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 69, 47, 0.3);
}

/* Main Content Sections */
.section {
    min-height: auto;
    padding: 20px 0;
}

.section:nth-child(even) {
    background-color: #F8F8F2;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    text-align: center;
    font-weight: 600;
}

.section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--charcoal);
    line-height: 1.7;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.expertise-card {
    background: var(--white);
    padding: 3rem 2.4rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-weight: 600;
}

.expertise-card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
}

.expertise-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: var(--charcoal);
    line-height: 1.6;
}

.expertise-card li {
    margin-bottom: 0.5rem;
}

/* Reviews Section Specific Styling */
#reviews.section {
    padding: 40px 0;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
    padding: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.council-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.council-logo img {
    max-width: 150px;
    max-height: 100px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.council-logo:hover img {
    filter: grayscale(0%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 69, 47, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Review Cards */
.review-card {
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.review-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    text-align: center;
}

.review-occupation {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.65rem !important;
    color: var(--charcoal) !important;
    margin-bottom: 2rem !important;
    font-weight: 300 !important;
    text-align: center !important;
}

.review-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    line-height: 1.6;
    text-align: center;
}

.review-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
}

/* About Me Section */
.about-me-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-me-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-me-text p {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--accent-green);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.partner-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 26, 46, 0.15);
    border-color: #f9f9f9;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 80px;
    width: 100%;
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-align: center;
}

.partner-link {
    color: #0b3d3a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.partner-link:hover {
    color: #1a1a2e;
    text-decoration: underline;
}

.partner-description {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444258;
    text-align: center;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Contact Form */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-green);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.phone-input-container {
    display: flex;
    gap: 10px;
}

.phone-input-container select {
    flex: 0 0 120px;
    width: 120px;
}

.phone-input-container input {
    flex: 1;
}

.required-fields-note {
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0 2rem 0;
    font-style: italic;
    text-align: left;
}

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #0E3B22;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--putty);
    font-family: 'Playfair Display', serif;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 2px solid var(--putty);
    color: var(--charcoal);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-radius: 15px 15px 0 0;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.accept-btn {
    background: var(--primary-green);
    color: var(--white);
}

.accept-btn:hover {
    background: #0E3B22;
}

.policy-btn {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.policy-btn:hover {
    background: var(--accent-green);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 2rem;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .section h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section p {
        font-size: 1.1rem;
    }
    
    /* Hide bullet points in mobile view */
    .hero-text h1 ul {
        list-style-type: none;
        padding-left: 0;
    }
    
    .close-btn {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hero {
        flex-direction: column;
        background-position: center top;
        background-size: cover;
        padding-top: 5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .hero::before {
        width: 100%;
        background: linear-gradient(to bottom, #E2E2DB 60%, transparent);
    }
    
    .hero-text {
        position: relative;
        z-index: 1;
        max-width: 600px;
        padding: 2rem;
        margin-left: 1rem;
        text-align: center;
    }
    
    .about-me-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-me-text h2,
    .about-me-text p {
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
}

/* Accessibility */
@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 */
.burger-menu:focus,
.close-btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-overlay {
        background: rgba(0, 0, 0, 0.98);
    }
    
    .nav-link {
        color: #ffffff;
    }
    
    .nav-link:hover {
        color: var(--putty);
    }
}