/* ============================================
   Driftwood Inn — Editorial Hotel Website
   Palette: Terracotta + Sand
   Fonts: Playfair Display + Outfit
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --terracotta-50:  #fef7f4;
    --terracotta-100: #fdeedd;
    --terracotta-200: #fad5c4;
    --terracotta-300: #f5b49a;
    --terracotta-400: #ee8a6a;
    --terracotta-500: #e06543;
    --terracotta-600: #cf4a2a;
    --terracotta-700: #ad3b21;
    --terracotta-800: #8c311d;
    --terracotta-900: #732919;
    --terracotta-950: #3e1209;

    --sand-50:  #fdfbf7;
    --sand-100: #faf5eb;
    --sand-200: #f3e8d0;
    --sand-300: #e8d4a8;
    --sand-400: #d4b87a;
    --sand-500: #c4a05a;
    --sand-600: #b08a44;
    --sand-700: #8c6c34;
    --sand-800: #6b5329;
    --sand-900: #564322;

    --dark: #1a1410;
    --dark-soft: #2d2419;
    --gray-50:  #faf8f5;
    --gray-100: #f3efe8;
    --gray-200: #e8e2d6;
    --gray-300: #d4cbb8;
    --gray-400: #b0a490;
    --gray-500: #8a7e6e;
    --gray-600: #6b6155;
    --gray-700: #4a433a;
    --gray-800: #2d2820;
    --gray-900: #1a1714;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 20, 16, 0.08);
    --shadow-lg: 0 8px 30px rgba(26, 20, 16, 0.10);
    --shadow-xl: 0 16px 50px rgba(26, 20, 16, 0.12);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--terracotta-600);
    color: #fff;
}
.btn-primary:hover {
    background: var(--terracotta-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-nav {
    background: var(--terracotta-600);
    color: #fff;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}
.btn-nav:hover {
    background: var(--terracotta-700);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

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

/* --- Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: var(--space-sm);
}

/* --- Section Title --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 540px;
    line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.navbar.scrolled .logo {
    color: var(--dark);
}

.hero .logo {
    color: #fff;
}
.navbar.scrolled .hero .logo,
.navbar.scrolled .logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--gray-700);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--terracotta-600);
}

.navbar .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}
.navbar .nav-links a:hover {
    color: #fff;
}
.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--dark);
}

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--terracotta-900) 0%,
        var(--terracotta-700) 30%,
        var(--sand-700) 60%,
        var(--sand-500) 100%
    );
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 20, 16, 0.3) 0%,
        rgba(26, 20, 16, 0.1) 50%,
        rgba(26, 20, 16, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: var(--space-lg);
    color: #fff;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-200);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
    margin-bottom: var(--space-xl);
}

.hero-title .accent {
    font-style: italic;
    color: var(--sand-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(6px); }
    60% { transform: translateX(-50%) translateY(3px); }
}

/* --- Section Base --- */
.section {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

/* --- Intro --- */
.intro {
    background: var(--sand-50);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.intro-text {
    padding: var(--space-lg) 0;
}

.intro-text .section-title {
    margin-bottom: var(--space-lg);
}

.intro-text p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.75;
}

.intro-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* --- Divider --- */
.divider {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
    color: var(--terracotta-400);
}

/* --- Rooms --- */
.rooms {
    background: var(--gray-50);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.room-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.room-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.room-info {
    padding: var(--space-xl);
}

.room-info h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.room-info p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.room-features li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--sand-100);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
}

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

.amenities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.amenities-text .section-title {
    margin-bottom: var(--space-md);
}

.amenities-text .lead {
    margin-bottom: var(--space-2xl);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.amenity-item svg {
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.amenities-collage {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.amenities-collage img:first-child {
    border-radius: var(--radius-lg);
    height: 300px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.amenities-collage img:last-child {
    border-radius: var(--radius-lg);
    height: 200px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    margin-top: calc(var(--space-md) * -1);
    margin-left: var(--space-lg);
}

/* --- Location --- */
.location {
    background: var(--gray-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.location-info .section-title {
    margin-bottom: var(--space-md);
}

.location-info .lead {
    margin-bottom: var(--space-xl);
}

.location-address {
    font-style: normal;
    font-size: 1.0625rem;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.location-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.location-detail svg {
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.location-detail a {
    color: var(--terracotta-600);
    font-weight: 500;
    transition: color 0.2s;
}

.location-detail a:hover {
    color: var(--terracotta-700);
    text-decoration: underline;
}

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, var(--terracotta-800) 0%, var(--terracotta-600) 50%, var(--sand-700) 100%);
    color: #fff;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner .section-eyebrow {
    color: var(--sand-200);
}

.cta-inner .section-title {
    color: #fff;
    margin-bottom: var(--space-md);
}

.cta-inner .lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.cta .btn-primary {
    background: #fff;
    color: var(--terracotta-700);
}
.cta .btn-primary:hover {
    background: var(--sand-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* --- Contact --- */
.contact {
    background: var(--sand-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: var(--space-md);
}

.contact-info .lead {
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--gray-700);
}

.contact-item svg {
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--terracotta-600);
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--terracotta-700);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--sand-50);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta-400);
    box-shadow: 0 0 0 3px rgba(224, 101, 67, 0.1);
}

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

.form-success {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--terracotta-50);
    border: 1px solid var(--terracotta-200);
    border-radius: var(--radius-sm);
    color: var(--terracotta-800);
    font-size: 0.9375rem;
    text-align: center;
}

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

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

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

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-lg);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--sand-300);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    color: var(--sand-300);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Reveal Animations (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);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .room-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-5xl: 5rem;
        --space-4xl: 4rem;
    }

    .mobile-toggle {
        display: block;
        color: #fff;
    }

    .navbar.scrolled .mobile-toggle {
        color: var(--dark);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sand-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right 0.35s ease;
    }

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

    .nav-links a {
        color: var(--gray-700) !important;
        font-size: 1.0625rem;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26, 20, 16, 0.4);
        z-index: 999;
    }

    .mobile-overlay.show {
        display: block;
    }

    .intro-grid,
    .amenities-layout,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        aspect-ratio: 16/10;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .room-card:last-child {
        max-width: none;
    }

    .amenities-collage img:first-child {
        height: 220px;
    }

    .amenities-collage img:last-child {
        height: 160px;
        margin-left: var(--space-md);
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .intro-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-4xl) 0;
    }

    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}
