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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #faf9f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #1a4d3a;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #2d5a3d;
    max-width: 800px;
}

h3 {
    font-size: 1.5rem;
    color: #1a4d3a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d4c4a8;
    font-weight: 400;
}

p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #2c2c2c;
    max-width: 600px;
}

/* Layout */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.section.alternate {
    flex-direction: row-reverse;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #d4c4a8;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a4d3a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    text-decoration: none;
    color: #2d5a3d;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a4d3a;
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #1a4d3a;
}

/* Main Content */
.main {
    padding-top: 120px; /* Account for fixed header */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background-color: #faf9f7;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: grayscale(20%) contrast(110%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 2rem;
    border-left: 1px solid #d4c4a8;
    padding-left: 3rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.hero h2 {
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
    color: #2d5a3d;
}

/* Content Sections */
.content-section {
    padding: 8rem 0;
    border-bottom: 1px solid #e8e3d8;
}

.content-section:last-child {
    border-bottom: none;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-content.alternate {
    direction: rtl;
}

.section-content.alternate .text-content {
    direction: ltr;
}

.text-content {
    max-width: 500px;
}

.image-content {
    position: relative;
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(26, 77, 58, 0.1);
}

/* Full-width image sections */
.full-width-image {
    padding: 6rem 0;
}

.full-width-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(26, 77, 58, 0.15);
}

/* CTA Button */
.cta-container {
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: transparent;
    color: #1a4d3a;
    text-decoration: none;
    border: 2px solid #1a4d3a;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #1a4d3a;
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #faf9f7;
}

/* Services Page Styling */
.text-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.text-content li {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e3d8;
}

.text-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.text-content li strong {
    display: block;
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-size: 1.125rem;
    color: #1a4d3a;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.text-content li br {
    display: none;
}

.text-content li br + br {
    display: block;
    margin-top: 0.5rem;
}

/* Contact Page Styling */
.contact-details {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f6f2;
    border-left: 3px solid #d4c4a8;
}

.contact-details h3 {
    margin-bottom: 2rem;
    color: #1a4d3a;
    font-size: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e3d8;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-weight: 600;
    color: #2d5a3d;
    min-width: 60px;
    margin-right: 1rem;
    font-size: 1rem;
}

.contact-link {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #1a4d3a;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2d5a3d;
    text-decoration: underline;
}

/* Terms Page Styling */
.text-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a4d3a;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid #d4c4a8;
    padding-bottom: 0.5rem;
}

.text-content h3:first-child {
    margin-top: 0;
}

.text-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #2c2c2c;
}

.text-content li:last-child {
    margin-bottom: 0;
}

.text-content p + ul {
    margin-top: 1rem;
}

.text-content ul + p {
    margin-top: 1.5rem;
}

/* Footer Styling */
.footer {
    background-color: #1a4d3a;
    color: #faf9f7;
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: #d4c4a8;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #e8e3d8;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact strong {
    color: #faf9f7;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-link {
    color: #d4c4a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #faf9f7;
    text-decoration: underline;
}

.footer-keywords {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #b8b3a8;
}

.footer-keywords strong {
    color: #d4c4a8;
}

.footer-bottom {
    border-top: 1px solid #2d5a3d;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #b8b3a8;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a4d3a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu li {
    margin-bottom: 1.5rem;
}

.mobile-menu-link {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-size: 1.25rem;
    color: #1a4d3a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1a4d3a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu-link:hover::after,
.mobile-menu-link.active::after {
    width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background-color: rgba(26, 77, 58, 0.1);
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.125rem;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    .nav {
        display: none;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 0 1.5rem;
    }

    .section-content {
        gap: 4rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
    }

    .header-content {
        padding: 1.5rem 1rem;
    }

    .nav ul {
        gap: 2rem;
    }

    .main {
        padding-top: 100px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 1rem 3rem;
    }

    .hero-content {
        padding-left: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section {
        min-height: auto;
        padding: 4rem 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section.alternate {
        flex-direction: column;
    }

    .content-section {
        padding: 5rem 0;
    }

    .full-width-image {
        padding: 4rem 0;
    }

    .full-width-image img {
        height: 50vh;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 0.75rem;
    }

    .header-content {
        padding: 1rem 0.75rem;
    }

    .nav ul {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 0.75rem 2rem;
        min-height: auto;
    }

    .hero-content {
        padding-left: 1rem;
        border-left: none;
        padding-left: 0;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .content-section {
        padding: 4rem 0;
    }

    .full-width-image {
        padding: 3rem 0;
    }

    .full-width-image img {
        height: 40vh;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.cta-button:focus {
    outline: 2px solid #1a4d3a;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header {
        position: static;
        background: #faf9f7;
        border-bottom: 1px solid #000;
    }

    .main {
        padding-top: 0;
    }

    .cta-button {
        display: none;
    }

    .full-width-image img {
        height: auto;
        max-height: 400px;
    }
}
