/* ==========================================================================
   Hotel Sangay — Design System v2 (Safar-Inspired Luxury)
   Warm earth tones, editorial serif, rounded cards, parallax
   ========================================================================== */

:root {
    --bg-cream: #F5F0EB;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1714;
    --bg-dark-alt: #252018;
    --accent: #a11d1a;
    --accent-hover: #891816;
    --accent-light: rgba(161,29,26,0.12);
    --text-dark: #1A1714;
    --text-muted: #6B6560;
    --text-light: #A09A94;
    --border-light: rgba(26,23,20,0.08);
    --border-dark: rgba(255,255,255,0.1);
    --white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --shadow-card: 0 4px 30px rgba(26,23,20,0.06);
    --shadow-hover: 0 12px 40px rgba(26,23,20,0.12);
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.25s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-muted);
    background-color: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.15;
}

a { text-decoration:none; color:inherit; transition: color var(--transition-fast); }
img { max-width:100%; height:auto; display:block; }

.container { width:90%; max-width:1280px; margin:0 auto; }

.section { padding: 7rem 0; }

.text-center { text-align:center; }

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(161,29,26,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}
.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--text-dark);
}

.btn-arrow::after {
    content: '→';
    transition: transform var(--transition);
}
.btn-arrow:hover::after {
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.link-arrow span { transition: transform var(--transition); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow:hover { color: var(--accent-hover); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.4rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(245,240,235,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.9rem 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}

.navbar-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: all var(--transition);
}
.navbar.scrolled .logo img { height: 50px; }

/* Logo swap: white on hero, dark when scrolled */
.logo .logo-dark { display: none; }
.logo .logo-white { display: block; }
.navbar.scrolled .logo .logo-dark { display: block; }
.navbar.scrolled .logo .logo-white { display: none; }

/* Interior pages with no hero start scrolled */
.navbar.navbar-dark { background: var(--bg-cream); padding: 0.9rem 0; }
.navbar.navbar-dark .logo .logo-dark { display: block; }
.navbar.navbar-dark .logo .logo-white { display: none; }
.navbar.navbar-dark .nav-links a:not(.btn) { color: var(--text-dark); }
.navbar.navbar-dark .menu-toggle span { background: var(--text-dark); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: currentColor;
    transition: width var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links a.active { color: var(--accent) !important; }

.navbar.scrolled .nav-links a:not(.btn) { color: var(--text-dark); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
    border-radius: 2px;
}
.navbar.scrolled .menu-toggle span { background: var(--text-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    will-change: transform;
}
.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 110%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,23,20,0.35) 0%, rgba(26,23,20,0.15) 50%, rgba(26,23,20,0.55) 100%);
}

.hero-content {
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 850px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.hero-scroll a:hover { opacity: 1; }
.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: var(--white);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Booking Widget (horizontal bar like Safar)
   ========================================================================== */
.booking-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow-card);
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
}

.booking-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.booking-form .form-group {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-right: 1px solid var(--border-light);
}
.booking-form .form-group:last-of-type { border-right: none; }

.booking-form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.booking-form input,
.booking-form select {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    padding: 0.3rem 0;
}

.booking-form .btn-booking {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.booking-form .btn-booking:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(161,29,26,0.3);
}

/* ==========================================================================
   Section Grids
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ==========================================================================
   Image Styles
   ========================================================================== */
.img-rounded {
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.img-rounded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.img-rounded:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   Room / Feature Cards (Safar-style)
   ========================================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    cursor: pointer;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.card:hover .card-img img { transform: scale(1.06); }

.card-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
}

.card-body {
    padding: 1.8rem;
}
.card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}
.card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   Package Card
   ========================================================================== */
.package-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.package-card-img {
    height: 220px;
    overflow: hidden;
}
.package-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.package-card:hover .package-card-img img { transform: scale(1.05); }
.package-card-body {
    padding: 1.5rem;
    text-align: center;
}
.package-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Stats Row
   ========================================================================== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 4rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* ==========================================================================
   CTA Banner (dark section)
   ========================================================================== */
.cta-banner {
    background: var(--bg-dark);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner .section-title { color: var(--white); }
.cta-banner .section-desc { color: rgba(255,255,255,0.7); margin-left:auto; margin-right:auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.footer .brand-col p { max-width: 300px; line-height: 1.8; }
.footer .brand-col img { max-width: 160px; margin-bottom: 1.5rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--accent); }

.footer address { font-style: normal; }
.footer address p { margin-bottom: 0.8rem; }
.footer address a:hover { color: var(--accent); }

.social-links { display: flex; gap: 0.8rem; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form { max-width: 600px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.contact-form .form-full { margin-bottom: 1.5rem; }
.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ==========================================================================
   Page Header (for internal pages)
   ========================================================================== */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg-cream);
}
.page-header .section-title { margin-bottom: 0.8rem; }

/* ==========================================================================
   Spa Therapy List
   ========================================================================== */
.therapy-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.therapy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.therapy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Package Detail Pages
   ========================================================================== */
.package-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.package-includes li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 0.95rem;
}
.package-includes li:last-child { border-bottom: none; }

.package-price-box {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
}
.package-price-box.compact {
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}
.price-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.price-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--accent);
}
.price-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.ayurveda-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.ayurveda-card {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ayurveda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.ayurveda-card-header {
    background: var(--bg-dark);
    color: white;
    padding: 1.5rem 2rem;
}
.ayurveda-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: #fff;
}
.ayurveda-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4a574;
}
.ayurveda-card-body {
    padding: 1.5rem 2rem 2rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.policy-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}
.policy-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.policy-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2 { gap: 3rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .booking-form { flex-wrap: wrap; }
    .booking-form .form-group { border-right: none; border-bottom: 1px solid var(--border-light); flex: 1 1 45%; }
    .stats-row { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 85%; max-width: 400px;
        height: 100vh;
        background: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.08);
        z-index: 1050;
    }
    .nav-links.active { right: 0; }
    .nav-links a:not(.btn) { color: var(--text-dark) !important; font-size: 1.2rem; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .section { padding: 4rem 0; }
    .hero { min-height: 600px; }

    .booking-bar { margin-top: -2rem; padding: 1.5rem; border-radius: var(--radius-md); }
    .booking-form { flex-direction: column; }
    .booking-form .form-group { border-right: none; border-bottom: 1px solid var(--border-light); padding: 0.8rem 0; }
    .booking-form .form-group:last-of-type { border-bottom: none; }

    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 2rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .ayurveda-packages { grid-template-columns: 1fr; }
    .policies-grid { grid-template-columns: 1fr; }
}

a.package-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
