/* ============================================
   MERMAID HOUSE — Coastal Lodging Website
   Palette: Terracotta + Sand + Ocean
   ============================================ */

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

:root {
    --terracotta-50: #fef7f4;
    --terracotta-100: #fdeade;
    --terracotta-200: #f9d0c0;
    --terracotta-300: #f2a890;
    --terracotta-400: #e8785a;
    --terracotta-500: #d4573a;
    --terracotta-600: #b8432a;
    --terracotta-700: #9a3524;
    --terracotta-800: #7f2e22;
    --terracotta-900: #68271e;

    --sand-50: #fefcf8;
    --sand-100: #fdf6ec;
    --sand-200: #faebd0;
    --sand-300: #f4d9ab;
    --sand-400: #e9c27a;
    --sand-500: #d4a24e;
    --sand-600: #b8863a;
    --sand-700: #9a6c2e;
    --sand-800: #7f5726;
    --sand-900: #684720;

    --ocean-50: #f0f7fa;
    --ocean-100: #dceef5;
    --ocean-200: #b8ddea;
    --ocean-300: #7ec2d9;
    --ocean-400: #4a9fbf;
    --ocean-500: #2d7a9f;
    --ocean-600: #1f5f7e;
    --ocean-700: #174a62;
    --ocean-800: #123a4e;
    --ocean-900: #0d2d3d;

    --neutral-50: #faf9f7;
    --neutral-100: #f5f3ef;
    --neutral-200: #e8e4dd;
    --neutral-300: #d1ccc3;
    --neutral-400: #a8a196;
    --neutral-500: #7a7268;
    --neutral-600: #5c554c;
    --neutral-700: #453f37;
    --neutral-800: #2e2a25;
    --neutral-900: #1a1714;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.06), 0 1px 2px rgba(26, 23, 20, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 23, 20, 0.08), 0 2px 6px rgba(26, 23, 20, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 23, 20, 0.12), 0 4px 12px rgba(26, 23, 20, 0.06);
    --shadow-xl: 0 24px 60px rgba(26, 23, 20, 0.16), 0 8px 20px rgba(26, 23, 20, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--sand-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terracotta-600);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
}

.site-header.scrolled {
    background: rgba(253, 246, 236, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    color: var(--terracotta-500);
}

.logo-light {
    color: #fff;
}
.logo-light .logo-icon {
    color: var(--sand-300);
}

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

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta-400);
    transition: width var(--transition);
}

.nav a:hover {
    color: var(--terracotta-600);
}
.nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--neutral-800);
    border-color: var(--neutral-300);
}
.btn-outline-dark:hover {
    border-color: var(--terracotta-400);
    color: var(--terracotta-600);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; padding: 14px 24px; font-size: 1rem; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--terracotta-500);
    margin-bottom: 12px;
}
.section-eyebrow.light {
    color: var(--sand-300);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.section-title.light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 23, 20, 0.45) 0%,
        rgba(26, 23, 20, 0.55) 50%,
        rgba(26, 23, 20, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 0 100px;
    max-width: 720px;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 540px;
}

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

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.hero-feature svg {
    color: var(--sand-300);
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s ease-in-out infinite;
}

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

/* ============================================
   INTRO
   ============================================ */
.intro {
    padding: 120px 0;
    background: var(--sand-50);
}

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

.intro-text p {
    color: var(--neutral-600);
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.intro-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--neutral-700);
}

.intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ROOMS
   ============================================ */
.rooms {
    padding: 120px 0;
    background: var(--sand-100);
}

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

.room-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.room-card-image {
    overflow: hidden;
    aspect-ratio: 3/2;
}
.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-card:hover .room-card-image img {
    transform: scale(1.05);
}

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

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

.room-card-body p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.room-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.room-features li {
    font-size: 0.85rem;
    color: var(--neutral-700);
    padding-left: 16px;
    position: relative;
}
.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--terracotta-300);
    border-radius: 50%;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
    padding: 120px 0;
    background: var(--sand-50);
}

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

.exp-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.exp-card:hover {
    border-color: var(--terracotta-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.exp-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-50);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--terracotta-600);
}

.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.exp-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: 120px 0;
    background: var(--sand-100);
}

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

.location-details {
    list-style: none;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-details li,
.location-details a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--neutral-700);
}
.location-details a:hover {
    color: var(--terracotta-600);
}
.location-details svg {
    color: var(--terracotta-400);
    flex-shrink: 0;
}

.location-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-700);
}

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

/* ============================================
   CTA
   ============================================ */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 23, 20, 0.72) 0%,
        rgba(26, 23, 20, 0.52) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.75;
}
.cta-text a {
    color: var(--sand-300);
    font-weight: 600;
    border-bottom: 1px solid rgba(244, 217, 171, 0.4);
    transition: border-color var(--transition);
}
.cta-text a:hover {
    border-color: var(--sand-300);
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--sand-50);
}

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

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--neutral-700);
    transition: color var(--transition);
}
.contact-method:hover {
    color: var(--terracotta-600);
}
.contact-method svg {
    color: var(--terracotta-400);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--sand-50);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta-400);
    background: #fff;
    box-shadow: 0 0 0 3px var(--terracotta-100);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--neutral-400);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg {
    color: var(--terracotta-500);
    margin-bottom: 16px;
}
.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 8px;
}
.form-success p {
    color: var(--neutral-600);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer a {
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer a:hover {
    color: var(--sand-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sand-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 99;
    }
    .nav ul.open {
        right: 0;
    }
    .nav a {
        font-size: 1.1rem;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(26, 23, 20, 0.5);
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .intro-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .intro-image {
        order: -1;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

    .hero-content {
        padding: 120px 0 80px;
    }

    .hero-features {
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }
    .cta-actions .btn {
        width: 100%;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .exp-card {
        padding: 28px;
    }
}
