/* ========================================
   Villa Carmelita - Styles
   Fresh, airy, pastel tones with emerald & cream
======================================== */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefce8;
    --cream-100: #fef9c3;
    --cream-200: #fef08a;
    --cream-300: #fde047;
    --cream-400: #facc15;
    
    --sand-50: #fafaf9;
    --sand-100: #f5f5f4;
    --sand-200: #e7e5e4;
    --sand-300: #d6d3d1;
    --sand-400: #a8a29e;
    --sand-500: #78716c;
    --sand-600: #57534e;
    --sand-700: #44403c;
    --sand-800: #292524;
    --sand-900: #1c1917;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--sand-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--sand-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--sand-800);
    border: 2px solid var(--sand-300);
}

.btn-outline:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--sand-800);
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--emerald-100);
    color: var(--emerald-700);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 232, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sand-200);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sand-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 10px;
    color: white;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sand-700);
}

.main-nav a:not(.btn):hover {
    color: var(--emerald-600);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sand-800);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/14025032/pexels-photo-14025032.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(6, 78, 59, 0.7) 0%, 
        rgba(4, 120, 87, 0.6) 50%,
        rgba(254, 252, 232, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 560px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
    color: var(--emerald-800);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-card h1 {
    margin-bottom: 20px;
    color: var(--sand-900);
}

.hero-card p {
    font-size: 1.125rem;
    color: var(--sand-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating Cards */
.floating-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 14px;
    color: white;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--sand-900);
}

.stat-text span {
    font-size: 0.875rem;
    color: var(--sand-500);
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--emerald-200), var(--emerald-300));
    border-radius: 24px;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--sand-600);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--emerald-100);
    border-radius: 14px;
    color: var(--emerald-700);
}

.feature-item span {
    font-weight: 500;
    color: var(--sand-800);
}

/* Rooms Section */
.rooms {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--sand-50) 0%, var(--cream-50) 100%);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--sand-600);
    font-size: 1.125rem;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.room-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.room-card.featured {
    position: relative;
}

.room-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.room-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--sand-800);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.room-content {
    padding: 28px;
}

.room-content h3 {
    margin-bottom: 12px;
}

.room-content p {
    color: var(--sand-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.room-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--sand-700);
}

.room-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-500);
    border-radius: 50%;
}

/* Location Section */
.location {
    padding: 120px 0;
    background: var(--cream-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.location-content {
    display: flex;
    flex-direction: column;
}

.location-content h2 {
    margin-bottom: 20px;
}

.location-content > p {
    color: var(--sand-600);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
    flex: 1;
}

.location-item {
    display: flex;
    gap: 20px;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
    border-radius: 16px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.location-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--sand-900);
    margin-bottom: 4px;
}

.location-item p {
    color: var(--sand-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    color: white;
}

.contact-info .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--emerald-200);
}

.contact-info h2 {
    color: white;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--emerald-200);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
    border-radius: 16px;
    color: white;
}

.contact-method strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 4px;
}

.contact-method span {
    color: var(--emerald-200);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--sand-800);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--sand-200);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sand-800);
    transition: all 0.3s ease;
    background: var(--sand-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    background: white;
    box-shadow: 0 0 0 4px var(--emerald-100);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--emerald-50);
    border: 2px solid var(--emerald-200);
    border-radius: 12px;
    color: var(--emerald-800);
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--emerald-600);
}

/* Footer */
.footer {
    background: var(--sand-900);
    color: var(--sand-400);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--sand-400);
    font-size: 0.95rem;
}

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

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--sand-400);
    font-size: 0.95rem;
}

.footer-contact a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--sand-800);
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Menu */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    z-index: 999;
}

.main-nav.open {
    right: 0;
}

.main-nav a:not(.btn) {
    font-size: 1.1rem;
}

.mobile-menu-btn {
    z-index: 1001;
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .floating-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 200px;
    }
    
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-card {
        padding: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .floating-cards {
        flex-direction: column;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .about-accent {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
