/* ============================================
   Hanalei Bay Resort Pool — Editorial Design
   Palette: Deep Navy (#1a365d) + Warm Gold (#c8a45a)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
    --navy: #1a365d;
    --navy-dark: #0f2440;
    --navy-deeper: #0a1a30;
    --gold: #c8a45a;
    --gold-light: #d4b76e;
    --gold-dark: #b08d3f;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-light: #8a8a8a;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --nav-height: 80px;
    --container-max: 1280px;
    --container-padding: clamp(1.25rem, 4vw, 3rem);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Navigation
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 164, 90, 0.15);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-logo-icon {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

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

.nav-link--cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(200, 164, 90, 0.5);
    border-radius: 4px;
    color: var(--gold);
    transition: all 0.25s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

/* Mobile Toggle */
.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(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

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

.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(
        180deg,
        rgba(10, 26, 48, 0.72) 0%,
        rgba(26, 54, 93, 0.65) 50%,
        rgba(15, 36, 64, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 0 var(--container-padding);
    padding-top: var(--nav-height);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-accent {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(200, 164, 90, 0.8), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 90, 0.3);
}

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

.btn--outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
}

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

/* ============================================
   Sections
============================================ */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section--light {
    background: var(--cream);
}

.section--dark {
    background: var(--navy);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-eyebrow--light {
    color: var(--gold);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

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

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.gold-accent {
    color: var(--gold);
}

/* ============================================
   About
============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: -1;
}

.about-content {
    max-width: 520px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 54, 93, 0.12);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   Pool
============================================ */
.pool-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.pool-header .section-title {
    margin-bottom: 1.25rem;
}

.pool-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.75;
}

.pool-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.pool-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.pool-gallery-item--large {
    grid-row: 1 / 3;
}

.pool-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pool-gallery-item:hover img {
    transform: scale(1.03);
}

.pool-gallery-item--large img {
    height: 100%;
    min-height: 400px;
}

.pool-gallery-item img:not(:first-child) {
    height: 240px;
}

.pool-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 26, 48, 0.8), transparent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   Amenities
============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

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

.amenity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(26, 54, 93, 0.06);
    transition: all 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.1);
    border-color: rgba(200, 164, 90, 0.3);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: 4px;
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.amenity-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.amenity-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Location
============================================ */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.location-content {
    padding: 1rem 0;
}

.location-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.location-details {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.location-details li svg {
    color: var(--gold);
    flex-shrink: 0;
}

.location-link {
    color: var(--gold);
    transition: color 0.2s ease;
}

.location-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.location-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ============================================
   Contact
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-item-value {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 500;
}

.contact-item-value a {
    color: var(--navy);
    transition: color 0.2s ease;
}

.contact-item-value a:hover {
    color: var(--gold-dark);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 4px;
    border: 1px solid rgba(26, 54, 93, 0.08);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid rgba(26, 54, 93, 0.12);
    border-radius: 4px;
    transition: all 0.25s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid rgba(200, 164, 90, 0.3);
    border-radius: 4px;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-success svg {
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--navy-deeper);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: var(--gold);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
============================================ */
.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) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pool-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .pool-gallery-item--large {
        grid-row: auto;
        grid-column: 1 / -1;
    }
    
    .pool-gallery-item--large img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.75rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrap {
        order: -1;
    }
    
    .about-image-wrap img {
        height: 360px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-stats {
        gap: 2rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .pool-gallery {
        grid-template-columns: 1fr;
    }
    
    .pool-gallery-item--large {
        grid-column: auto;
    }
    
    .pool-gallery-item img:not(:first-child) {
        height: 260px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
