/* ============================================================
   Hemingway's Boatyard — Shared Stylesheet
   Colors: Navy #0c1a2e | Gold #EF9F27
   Fonts:  Playfair Display (headings) | Lato (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&family=Lato:wght@300;400;600;700&display=swap');

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

:root {
    --navy:      #0c1a2e;
    --navy-mid:  #162844;
    --navy-light:#1e3a5f;
    --gold:      #EF9F27;
    --gold-dark: #c7831a;
    --gold-light:#f5c06a;
    --cream:     #faf7f2;
    --white:     #ffffff;
    --gray-light:#f4f4f4;
    --text-dark: #1a1a1a;
    --text-mid:  #444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
}

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

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

/* ── Typography ───────────────────────────────────────────── */
.serif { font-family: 'Playfair Display', serif; }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

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

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,159,39,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.section-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--navy);
    margin-bottom: 20px;
}

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

.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 30px;
}

.divider.center { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 26, 46, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(239,159,39,0.2);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
}

.nav-logo {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(239,159,39,0.4);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-brand-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
}

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

.nav-links a {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.nav-cta {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 18px;
}

.nav-links a.nav-cta:hover {
    background: var(--gold-dark);
    color: var(--white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.page-header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.02) 40px,
            rgba(255,255,255,0.02) 80px
        );
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white);
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 12px;
    position: relative;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 60px 24px 0;
    border-top: 3px solid var(--gold);
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(239,159,39,0.35);
    margin-bottom: 14px;
    display: block;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-brand-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 700;
}

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

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

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

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-icon {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-rate-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-rate-link:hover { color: var(--white); }

/* ── Anchor offset for fixed nav ──────────────────────────── */
[id] { scroll-margin-top: 80px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid rgba(239,159,39,0.2);
        padding: 16px 0 24px;
        gap: 0;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
    }

    .nav-links a.nav-cta {
        margin: 12px 24px 0;
        display: inline-block;
        border-radius: 4px;
    }

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

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

@media (max-width: 480px) {
    .nav-brand-text { display: none; }
}
