/* ============================================================
   Ship Wreck Lounge — Styles
   Palette: Plum (#4A235A / #6B3A7A / #8B5FB0) + Amber (#D4943A / #E8A84C)
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

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

:root {
    --plum-50:  #f5f0f7;
    --plum-100: #ede3f0;
    --plum-200: #d9c2e0;
    --plum-300: #b894c8;
    --plum-400: #9668af;
    --plum-500: #7a4a91;
    --plum-600: #6b3a7a;
    --plum-700: #4A235A;
    --plum-800: #351a41;
    --plum-900: #1f0f26;

    --amber-100: #fef3d8;
    --amber-200: #fde4b0;
    --amber-300: #f9cc78;
    --amber-400: #E8A84C;
    --amber-500: #D4943A;
    --amber-600: #b87a2e;

    --white:    #fefefe;
    --off-white:#faf8f6;
    --gray-50:  #f7f5f3;
    --gray-100: #efece8;
    --gray-200: #e0dbd5;
    --gray-300: #c4bdb4;
    --gray-400: #9e958c;
    --gray-500: #7a7168;
    --gray-600: #5c544c;
    --gray-700: #3d3730;
    --gray-800: #252019;
    --gray-900: #14100c;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--plum-600);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--plum-700); }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--plum-700);
    color: var(--white);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
    color: var(--white);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s var(--ease-out);
}
.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(74, 35, 90, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--plum-700);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.logo:hover { color: var(--plum-700); }

.logo-icon {
    color: var(--amber-500);
    flex-shrink: 0;
}

.logo--light { color: var(--white); }
.logo--light:hover { color: var(--white); }
.logo--light .logo-icon { color: var(--amber-300); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-list a {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-500);
    transition: width 0.3s var(--ease-out);
}
.nav-list a:hover { color: var(--plum-700); }
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--plum-700);
}
.hamburger {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background: currentColor;
    left: 0;
    transition: transform 0.3s var(--ease-out);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}
.btn--primary {
    background: var(--plum-700);
    color: var(--white);
    border-color: var(--plum-700);
}
.btn--primary:hover {
    background: var(--plum-800);
    border-color: var(--plum-800);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 35, 90, 0.25);
}
.btn--ghost {
    background: transparent;
    color: var(--plum-700);
    border-color: var(--plum-200);
}
.btn--ghost:hover {
    border-color: var(--plum-500);
    color: var(--plum-700);
    background: var(--plum-50);
}
.btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
}
.btn--full { width: 100%; }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
    padding: 7rem 0;
}
.section--dark {
    background: var(--plum-700);
    color: var(--plum-100);
}
.section--light {
    background: var(--plum-50);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-500);
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-sub {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--plum-700);
    padding-top: 72px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(107, 58, 122, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(212, 148, 58, 0.12) 0%, transparent 60%),
        linear-gradient(160deg, #1f0f26 0%, #4A235A 40%, #6b3a7a 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-content { max-width: 560px; }

.hero-greeting {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--amber-300);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.greeting-line {
    flex-shrink: 0;
    width: 48px;
    height: 1px;
    background: var(--amber-500);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--plum-200);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-actions .btn--ghost {
    color: var(--plum-100);
    border-color: var(--plum-400);
}
.hero-actions .btn--ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--plum-300);
    color: var(--white);
}

/* Floating stat cards */
.hero-cards {
    position: relative;
    height: 480px;
}
.stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}
.stat-card--1 {
    top: 0;
    right: 0;
    width: 200px;
}
.stat-card--1 .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--amber-300);
    line-height: 1;
}
.stat-card--1 .stat-label {
    font-size: 0.8125rem;
    color: var(--plum-200);
    line-height: 1.4;
}
.stat-card--2 {
    top: 120px;
    right: 220px;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--amber-400);
}
.stat-card--3 {
    bottom: 100px;
    right: 40px;
    width: 200px;
}
.stat-card--3 .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--amber-300);
    font-style: italic;
}
.stat-card--3 .stat-label {
    font-size: 0.8125rem;
    color: var(--plum-200);
    line-height: 1.4;
}
.stat-card--4 {
    bottom: 0;
    right: 240px;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--plum-300);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    color: var(--off-white);
    z-index: 2;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.about-text p:first-of-type { font-size: 1.0625rem; color: var(--gray-500); }

.about-image {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}
.about-image::after {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid var(--amber-400);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.4;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.product-card-img {
    overflow: hidden;
    height: 240px;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-card-img img {
    transform: scale(1.04);
}
.product-card-body {
    padding: 1.75rem;
}
.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.product-card-desc {
    font-size: 0.9375rem;
    color: var(--plum-200);
    line-height: 1.7;
}

/* ============================================================
   VISIT
   ============================================================ */
.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.visit-desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
}
.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.visit-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.detail-icon {
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}
.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}
.detail-value a {
    color: var(--plum-600);
}
.detail-value a:hover { color: var(--plum-700); }

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    height: 480px;
    border: 1px solid var(--gray-200);
}
.map-placeholder {
    width: 100%;
    height: 100%;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}
.contact-direct { margin-top: 1rem; }
.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--plum-700);
    letter-spacing: -0.01em;
}
.contact-phone:hover { color: var(--plum-600); }

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 4px;
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--gray-300); }
.form-input:focus {
    border-color: var(--plum-400);
    box-shadow: 0 0 0 3px rgba(74, 35, 90, 0.08);
    background: var(--white);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.form-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--plum-700);
}
.form-success svg { color: var(--amber-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--plum-900);
    color: var(--plum-300);
    padding: 4rem 0 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tagline {
    font-size: 0.9375rem;
    color: var(--plum-400);
    margin-top: 0.75rem;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.footer-links a {
    color: var(--plum-300);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber-300); }
.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}
.footer-contact a { color: var(--amber-400); }
.footer-contact a:hover { color: var(--amber-300); }

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--plum-500);
}

/* ============================================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-cards { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image { max-width: 500px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .visit-layout { grid-template-columns: 1fr; }
    .visit-map { height: 360px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-links { flex-direction: row; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
    }
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .section { padding: 5rem 0; }
    .products-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.75rem, 10vw, 4rem); }
    .contact-form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .about-image::after { display: none; }
}
