/* ============================================
   Idle-A-While Resort — Styles
   Palette: Terracotta + Sand
   ============================================ */

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

:root {
    --terra-900: #5C2E1E;
    --terra-800: #7A3B27;
    --terra-700: #9A4B33;
    --terra-600: #B5593F;
    --terra-500: #C0603A;
    --terra-400: #D4785A;
    --terra-300: #E0967E;
    --terra-200: #EBC4B4;
    --terra-100: #F5DDD4;
    --terra-50:  #FBF0EC;
    
    --sand-900:  #3D3229;
    --sand-800:  #5A4A3E;
    --sand-700:  #7A6658;
    --sand-600:  #9A8474;
    --sand-500:  #B8A494;
    --sand-400:  #D4C4B6;
    --sand-300:  #E4D8CC;
    --sand-200:  #F0E8DF;
    --sand-100:  #F7F2ED;
    --sand-50:   #FBF9F7;
    
    --white: #FFFFFF;
    --black: #1A1410;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(26,20,16,0.08), 0 1px 2px rgba(26,20,16,0.06);
    --shadow-md: 0 4px 16px rgba(26,20,16,0.1), 0 2px 4px rgba(26,20,16,0.06);
    --shadow-lg: 0 12px 40px rgba(26,20,16,0.14), 0 4px 12px rgba(26,20,16,0.08);
    --shadow-xl: 0 24px 60px rgba(26,20,16,0.18);
    
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--sand-900);
    background: var(--sand-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terra-700);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 249, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sand-200);
    transition: box-shadow var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo-mark {
    color: var(--terra-500);
}

.logo-accent {
    color: var(--terra-600);
}

/* NAV */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sand-800);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--sand-800);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sand-700);
    transition: color var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--terra-600);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra-500);
    transition: width var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--terra-500);
    color: var(--white);
    border-color: var(--terra-500);
}

.btn-primary:hover {
    background: var(--terra-600);
    border-color: var(--terra-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline-dark {
    background: transparent;
    color: var(--sand-800);
    border-color: var(--sand-400);
}

.btn-outline-dark:hover {
    border-color: var(--terra-500);
    color: var(--terra-600);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section {
    padding: 100px 0;
}

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

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 12px;
}

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

.section-desc {
    font-size: 1.05rem;
    color: var(--sand-700);
    line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 20, 16, 0.55) 0%,
        rgba(26, 20, 16, 0.70) 50%,
        rgba(26, 20, 16, 0.85) 100%
    );
}

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

.hero-card {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-300);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-headline br {
    display: none;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

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

/* HERO STATS */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    min-width: 200px;
    transition: background var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

/* ============================================
   ROOMS
   ============================================ */
.rooms {
    background: var(--white);
}

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

.room-card {
    background: var(--sand-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--sand-200);
    transition: all var(--transition);
}

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

.room-img-wrap {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.room-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.room-body {
    padding: 28px;
}

.room-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sand-900);
    margin-bottom: 10px;
}

.room-desc {
    font-size: 0.92rem;
    color: var(--sand-700);
    line-height: 1.65;
    margin-bottom: 20px;
}

.room-features {
    list-style: none;
    margin-bottom: 24px;
}

.room-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--sand-800);
    margin-bottom: 8px;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--terra-400);
    border-radius: 50%;
}

/* ============================================
   AMENITIES
   ============================================ */
.amenities {
    background: var(--sand-50);
}

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

.amenity-item {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.amenity-item:hover {
    border-color: var(--terra-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terra-50);
    border-radius: var(--radius-sm);
    color: var(--terra-600);
    margin-bottom: 20px;
}

.amenity-item h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sand-900);
    margin-bottom: 10px;
}

.amenity-item p {
    font-size: 0.9rem;
    color: var(--sand-700);
    line-height: 1.65;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    background: var(--white);
}

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

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

.location-info {
    font-style: normal;
}

.location-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.location-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terra-600);
    padding-top: 3px;
}

.location-row a {
    color: var(--sand-800);
    font-weight: 500;
    transition: color var(--transition);
}

.location-row a:hover {
    color: var(--terra-600);
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--sand-100);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--sand-100);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1rem;
    color: var(--sand-700);
    line-height: 1.75;
}

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

.value-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
}

.value-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terra-300);
    line-height: 1;
    padding-top: 4px;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand-900);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.88rem;
    color: var(--sand-700);
    line-height: 1.6;
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
    background: var(--sand-900);
    padding: 100px 0;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cta-content .section-eyebrow {
    color: var(--terra-400);
}

.cta-content .section-title {
    color: var(--white);
}

.cta-content .section-desc {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.cta-phone:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--terra-400);
    color: var(--terra-300);
}

.cta-phone svg {
    color: var(--terra-400);
}

/* FORM */
.cta-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sand-900);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand-700);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--sand-300);
    border-radius: var(--radius-sm);
    background: var(--sand-50);
    color: var(--sand-900);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--sand-500);
}

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

.form-note {
    font-size: 0.82rem;
    color: var(--sand-600);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-weight: 500;
    font-size: 0.92rem;
    margin-top: 16px;
}

.form-success svg {
    flex-shrink: 0;
    color: #2E7D32;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--sand-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-contact a {
    color: var(--terra-400);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--terra-300);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 140px;
    }
    
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-grid,
    .about-grid,
    .cta-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-secondary {
        width: 50%;
        right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    /* Mobile nav */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(251, 249, 247, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--sand-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu a {
        font-size: 1.05rem;
        color: var(--sand-800);
    }
    
    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .hero-headline br {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    /* Room grid mobile */
    .room-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .amenity-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .about-img-secondary {
        position: relative;
        width: 100%;
        right: 0;
        bottom: 0;
        margin-top: 16px;
    }
    
    .about-images {
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-form {
        padding: 28px;
    }
    
    .cta-phone {
        font-size: 1.05rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .location-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
