/* ============================================================
   At The Bay — css/atb.css
   ============================================================ */

/* Custom Properties */
:root {
    --color-bg:           #FAFAF8;
    --color-surface:      #F2F0EC;
    --color-dark:         #1A1A1A;
    --color-mid:          #5C5C5C;
    --color-accent:       #2C6E6A;
    --color-accent-hover: #224F4C;
    --color-white:        #FFFFFF;
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.875rem 2.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(44,110,106,0.3);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,110,106,0.35);
}

/* Layout */
.section        { padding: 6rem 0; }
.section--alt   { background: var(--color-surface); }
.container      { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-dark);
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(26,26,26,0.97);
    padding: 0.875rem 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-white);
    letter-spacing: 0.06em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-book {
    background: var(--color-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    opacity: 1;
    transition: background 0.2s;
}
.nav-links .nav-book:hover { background: var(--color-accent-hover); opacity: 1; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(26,26,26,0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0 1rem;
        backdrop-filter: blur(8px);
    }
    .nav-links.open { display: flex; }
    .nav-links li { text-align: center; }
    .nav-links a { display: block; padding: 0.875rem 2rem; }
    .nav-links .nav-book {
        margin: 0.5rem 2rem 0;
        border-radius: 4px;
        display: block;
        text-align: center;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 7rem;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Photos/Dove-Views.jpg');
    background-size: cover;
    background-position: center 40%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.25) 55%,
        rgba(0,0,0,0.05) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 0 1rem;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.hero-location {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}
.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    opacity: 0.55;
    animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.intro-body p {
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--color-mid);
    margin-bottom: 1.5rem;
}
.intro-body p:last-child { margin-bottom: 0; }
.intro-body strong { color: var(--color-dark); font-weight: 400; }
.intro-image img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
}
.intro-cta { margin-top: 2.5rem; }

@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .intro-image { order: -1; }
    .intro-image img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    columns: 2;
    column-gap: 0.875rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 0.875rem;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.32); }
.gallery-item-title {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-item-title { opacity: 1; transform: translateY(0); }
.gallery-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.gallery-item:hover .gallery-play {
    background: rgba(255,255,255,1);
    transform: translate(-50%, -50%) scale(1.08);
}
.gallery-play svg { width: 26px; height: 26px; fill: var(--color-accent); margin-left: 5px; }

@media (max-width: 600px) { .gallery-grid { columns: 1; } }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.93);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
    position: relative;
    max-width: 92vw;
    text-align: center;
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
}
.lightbox-inner iframe {
    width: 80vw;
    height: 45vw;
    max-height: 78vh;
    border: none;
    border-radius: 2px;
    display: block;
}
.lightbox-caption {
    margin-top: 1.25rem;
    color: var(--color-white);
}
.lightbox-caption h3 {
    font-size: 1.2rem;
    font-weight: 400;
}
.lightbox-caption p {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}
.lightbox-close {
    position: fixed;
    top: 1.25rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0.5rem;
    line-height: 0;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-close svg { width: 30px; height: 30px; }

@media (max-width: 768px) {
    .lightbox-inner iframe { width: 95vw; height: 54vw; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 4px;
    background: var(--color-bg);
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px; height: 44px;
    margin: 0 auto 1rem;
    color: var(--color-accent);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.4;
}
.feature-desc {
    font-size: 0.775rem;
    color: var(--color-mid);
    margin-top: 0.4rem;
    line-height: 1.45;
}

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

/* ============================================================
   LOCATION & ACTIVITIES
   ============================================================ */
.location-intro {
    max-width: 660px;
    margin: 0 auto 3.5rem;
    text-align: center;
    color: var(--color-mid);
    font-size: 1.05rem;
    line-height: 1.8;
}
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-bottom: 3rem;
}
.activity-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}
.activity-item img {
    width: 100%;
    display: block;
    transition: transform 0.45s ease;
}
.activity-item:hover img { transform: scale(1.04); }
.activity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.activity-title {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.3;
}
.map-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.map-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--color-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.map-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 10px rgba(44,110,106,0.12);
}
.map-link svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }

@media (max-width: 1024px) { .map-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .map-links { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 5rem;
    align-items: center;
}
.about-photo img {
    width: 200px; height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 28px rgba(0,0,0,0.14);
}
.about-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-mid);
    margin-bottom: 1.25rem;
}
.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-photo { display: flex; justify-content: center; }
}

/* ============================================================
   REVIEW BAND
   ============================================================ */
.review-band {
    background: var(--color-dark);
    padding: 5rem 0;
    text-align: center;
}
.review-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    color: var(--color-white);
    max-width: 780px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
    opacity: 0.95;
}
.review-quote::before { content: '\201C'; }
.review-quote::after  { content: '\201D'; }
.review-name {
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================================
   FOOTER / CTA
   ============================================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 0 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}
.footer-sub {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 3rem;
}
.footer-contact a,
.footer-phone {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}
.footer-contact a:hover { color: var(--color-white); }
.footer-contact svg,
.footer-phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-phone {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 300;
}
.footer-phone:hover { color: var(--color-white); }
.footer-divider {
    width: 36px; height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 3rem auto 1.5rem;
}
.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.775rem;
}

/* ============================================================
   RESPONSIVE — general
   ============================================================ */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-heading { margin-bottom: 2rem; }
}
