/* ===================================
   Casa de Tony — Hotel & Lodging Site
   Emerald Green + Cream Palette
   =================================== */

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

: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:  #fffdf7;
    --cream-100: #fff9ed;
    --cream-200: #fff3db;
    --cream-300: #fae8c8;
    
    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--stone-800);
    background: var(--cream-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-800);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald-800);
    border-radius: var(--radius-sm);
    color: var(--cream-50);
}

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

.nav-links a:not(.nav-cta) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--emerald-700);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--emerald-800);
    color: var(--cream-50) !important;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--emerald-800);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 253, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--stone-700);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background 0.2s;
    width: 100%;
    text-align: center;
}

.mobile-menu-link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 28px;
    background: var(--emerald-800);
    color: var(--cream-50);
    border-radius: 50px;
    font-weight: 500;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--emerald-900);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.82) 0%,
        rgba(4, 120, 87, 0.72) 50%,
        rgba(6, 95, 70, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 253, 247, 0.15);
    border: 1px solid rgba(255, 253, 247, 0.25);
    border-radius: 50px;
    color: var(--cream-200);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    color: var(--cream-50);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--cream-200);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--cream-50);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
    background: var(--emerald-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(255, 253, 247, 0.12);
    color: var(--cream-100);
    border: 1px solid rgba(255, 253, 247, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 253, 247, 0.2);
    border-color: rgba(255, 253, 247, 0.5);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--cream-50);
    color: var(--emerald-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--cream-100);
    border: 1.5px solid rgba(255, 253, 247, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 253, 247, 0.12);
    border-color: rgba(255, 253, 247, 0.8);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 253, 247, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   Info Bar
   =================================== */
.info-bar {
    background: var(--emerald-800);
    padding: 0;
}

.info-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 20px 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--emerald-200);
    font-size: 0.9rem;
    font-weight: 400;
}

.info-item a {
    color: var(--emerald-200);
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: var(--cream-50);
}

.info-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ===================================
   Section Shared
   =================================== */
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--stone-500);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ===================================
   Rooms Section
   =================================== */
.rooms {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.room-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stone-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.room-card-img {
    height: 220px;
    overflow: hidden;
}

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

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

.room-card-body {
    padding: 28px;
    background: white;
}

.room-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.room-card-body > p {
    font-size: 0.92rem;
    color: var(--stone-500);
    line-height: 1.65;
    margin-bottom: 20px;
}

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

.room-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--stone-700);
    font-weight: 500;
}

.room-features svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ===================================
   Amenities Section
   =================================== */
.amenities {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--emerald-50) 0%, var(--cream-50) 100%);
}

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

.amenity-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--stone-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-200);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.amenity-card:hover .amenity-icon {
    background: var(--emerald-100);
}

.amenity-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 10px;
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.65;
}

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

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-content .section-tag {
    margin-bottom: 16px;
}

.location-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.location-desc {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.75;
    margin-bottom: 32px;
}

.location-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.location-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--stone-700);
    line-height: 1.5;
}

.location-highlights svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-content .btn {
    margin-top: 8px;
}

.location-map {
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 100px 0;
    background: var(--emerald-800);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta .section-tag {
    background: rgba(255, 253, 247, 0.12);
    border-color: rgba(255, 253, 247, 0.25);
    color: var(--emerald-200);
}

.cta .section-title {
    color: var(--cream-50);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--emerald-200);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-desc strong {
    color: var(--cream-100);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--stone-900);
    padding: 56px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream-100);
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--emerald-700);
    border-radius: var(--radius-sm);
    color: var(--cream-100);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--stone-400);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--stone-400);
}

.footer-info-item a {
    color: var(--stone-400);
    transition: color 0.2s ease;
}

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

.footer-info-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--stone-500);
}

/* ===================================
   Scroll Reveal (progressive enhancement)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .location-map {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-content {
        padding: 100px 24px 80px;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .info-bar-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .section-header {
        margin-bottom: 44px;
    }
    .rooms, .amenities, .location, .cta {
        padding: 72px 0;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .location-map {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .nav-inner {
        padding: 0 16px;
    }
    .room-card-body {
        padding: 20px;
    }
    .amenity-card {
        padding: 28px 22px;
    }
}
