/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --white: #FFFFFF;
    --black: #000000;
    --gray: #707070;
}

/* ===================================
   GLOBAL RESET AND BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* On hero - white text */
.main-nav .nav-menu a {
    color: var(--white);
    transition: color 0.4s ease;
}

.main-nav .nav-cta {
    background-color: var(--white);
    color: var(--black) !important;
    border: 2px solid var(--white);
}

/* When scrolled - dark text */
.main-nav.scrolled .nav-menu a {
    color: var(--black);
}

.main-nav.scrolled .nav-cta {
    background-color: var(--black);
    color: var(--white) !important;
    border: 2px solid var(--black);
}

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

.nav-logo {
    display: block;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Show logo when scrolled */
.main-nav.scrolled .nav-logo img {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.4s ease, opacity 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

.nav-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.main-nav.scrolled .menu-toggle span {
    background-color: var(--black);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .nav-menu a {
        color: var(--black) !important;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        background-color: var(--black) !important;
        color: var(--white) !important;
    }
}


/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%),
                url('../assets/images/hero-background.jpg') center/cover no-repeat;
    z-index: -1;
}

.logo-container {
    padding: 6rem 2rem 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-content {
    padding: 0 2rem 4rem;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--white);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background-color: #f0f0f0;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-section {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    align-items: stretch;
}

.content-section.gray-bg {
    background-color: #f8f8f8;
}

.text-content,
.image-content {
    flex: 1;
    min-width: 0;
}

.text-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.text-content a {
    color: var(--gray);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.image-content {
    position: relative;
    overflow: hidden;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-content:hover img {
    transform: scale(1.02);
}

/* ===================================
   SERVICES LIST
   =================================== */
.services-list {
    list-style: none;
    margin: 2rem 0;
}

.services-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--gray);
}

.services-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: bold;
}

/* ===================================
   CONTACT INFO
   =================================== */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.contact-item a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--black);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    position: relative;
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    fill: var(--black);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-item {
    font-size: 0.95rem;
}

.footer-item strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
        min-height: 100vh;
        height: auto; /* Allow natural height on mobile */
    }

    .text-content {
        padding: 3rem 2rem;
    }

    .image-content {
        min-height: 40vh; /* Ensure images have good height on mobile */
    }

    .hero-content {
        padding: 0 1.5rem 3rem;
    }

    .logo {
        width: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-list li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .text-content {
        padding: 2rem 1.5rem;
    }

    .text-content h2 {
        font-size: 1.75rem;
    }

    .text-content p,
    .contact-item {
        font-size: 1rem;
    }

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