/* Design System */
/* Navigation */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
#mobileMenu {
    position: fixed;
    top: 72px; /* Height of navbar */
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* Main Content Padding */
main {
    padding-top: 72px; /* Height of navbar */
}

/* Flip Card Animation */
.flip-card {
    perspective: 1000px;
    height: 150px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-primary: #A28C6E;    /* Sand */
    --color-secondary: #CBE5F3;  /* Water */
    --color-accent: #8AB17D;     /* Flora */
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
}

/* Container */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Navigation */
.nav-logo {
    height: 3.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8AB17D;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #8F7A5E;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #333;
}

.btn-secondary:hover {
    background-color: #B9D3E1;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(162, 140, 110, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(162, 140, 110, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Decorative Elements */
.wave-top {
    clip-path: polygon(100% 0, 0 0, 0 100%, 33% 85%, 66% 100%, 100% 85%);
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    height: 120px;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.wave-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 66% 100%, 33% 85%, 0 100%);
    background: linear-gradient(to bottom, #A28C6E, #E7F3F9);
    height: 140px;
    width: 100vw;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(162, 140, 110, 0.1);
}

/* Mobile Menu */
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

/* Gallery */
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: -2rem;
    right: -2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-custom {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-logo {
        height: 2.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        min-height: 44px; /* Touch target size */
    }

    .gallery-item {
        aspect-ratio: 3/4;
    }

    .modal-content {
        width: 100%;
    }

    .modal-close {
        top: -3rem;
        right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide {
    animation: slideUp 0.5s ease forwards;
}
