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

:root {
    --primary-gold: #C5A059;
    --secondary-gold: #E5C579;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-off-white: #F9F9F9;
    --border-color: #EAEAEA;
    --header-height: 80px;
    --footer-height: 60px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow: hidden;
    /* Prevent body scroll, handle in main */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-white);
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    flex-shrink: 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li {
    cursor: pointer;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

/* Main Content Area */
main {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-off-white);
}

.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    background-color: var(--bg-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Container for content to keep it centered and neat */
.content-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
    /* Space for scrolling */
}

/* Typography & Elements */
h1.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-gold);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Home Specific */
#home {
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.2rem;
    font-style: italic;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: #fff;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    text-align: left;
    /* Left align for more professional look */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-gold);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
    transform: scaleY(1);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.card:hover h3::after {
    width: 50px;
    background-color: var(--primary-gold);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    width: 100%;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    background-color: var(--bg-off-white);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-gold {
    padding: 12px 35px;
    background-color: var(--primary-gold);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-gold:hover {
    background-color: var(--secondary-gold);
}

/* Footer */
footer {
    height: auto;
    min-height: 120px;
    background-color: var(--bg-white);
    border-top: 2px solid var(--primary-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 30px;
    z-index: 100;
    text-align: center;
    gap: 10px;
}

footer h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 1px;
}

footer p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

footer .copyright {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

/* Scrollbar Styling */
.content-section::-webkit-scrollbar {
    width: 6px;
}

.content-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content-section::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
}

/* Responsive Design */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .content-container {
        max-width: 1140px;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .content-container {
        max-width: 960px;
        padding: 0 20px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    h1.page-title {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 0 20px;
        height: 70px;
    }

    .logo-img {
        height: 40px;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle .hamburger {
        width: 100%;
        height: 3px;
        background-color: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

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

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

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

    /* Mobile navigation */
    #mainNav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        transition: right 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    #mainNav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

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

    /* Content adjustments */
    .content-section {
        padding: 30px 20px;
    }

    .content-container {
        padding-bottom: 30px;
    }

    /* Typography */
    h1.page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Grid - single column */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    /* Contact form - stack vertically */
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    /* About section - stack vertically */
    #about .content-container > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    #about .content-container > div[style*="height: 400px"] {
        width: 100% !important;
        height: 300px !important;
        margin-top: 2rem;
    }

    /* Footer */
    footer {
        padding: 25px 20px;
    }

    footer h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Small (480px - 767px) */
@media (max-width: 480px) {
    /* Header */
    header {
        padding: 0 15px;
        height: 60px;
    }

    .logo-img {
        height: 35px;
    }

    #mainNav {
        top: 60px;
        height: calc(100vh - 60px);
    }

    /* Content */
    .content-section {
        padding: 20px 15px;
    }

    .content-container {
        max-width: 100%;
    }

    /* Typography */
    h1.page-title {
        font-size: 1.75rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem 1.25rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn-gold {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 20px 15px;
    }

    footer h4 {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}

/* Mobile Extra Small (360px - 479px) */
@media (max-width: 360px) {
    h1.page-title {
        font-size: 1.5rem;
    }

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

    .card {
        padding: 1.25rem 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    #mainNav {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    body.menu-open {
        overflow: auto !important;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

