/* ==========================================
   GHOST YACHTS - GLOBAL DESIGN SYSTEM
   Denison-inspired: Gold / Black / White
   ========================================== */

/* CSS Custom Properties */
:root {
    --gy-black: #0a0a0a;
    --gy-black-soft: #1a1a1a;
    --gy-black-light: #2a2a2a;
    --gy-gold: #c9a84c;
    --gy-gold-light: #d4b96a;
    --gy-gold-dark: #a8872e;
    --gy-gold-muted: #e8d5a0;
    --gy-white: #ffffff;
    --gy-off-white: #fafaf8;
    --gy-warm-gray: #f5f3ef;
    --gy-gray-text: #6b6b6b;
    --gy-gray-light: #e0ddd8;
    --gy-cream: #fafaf8;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

/* Override IYBA plugin's Bootstrap setting html{font-size:62.5%} */
html {
    font-size: 16px !important;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    color: var(--gy-black-soft);
    background: var(--gy-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 400;
}

.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
}

.label-sm {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gy-gold);
}

/* Section Labels (gold uppercase) */
.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gy-gold);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--gy-black);
    margin-bottom: 1.5rem;
}

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

/* Gold divider bar after headings */
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--gy-gold);
    margin: 1.5rem auto 0;
}

/* Section Description */
.section-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gy-gray-text);
    max-width: 700px;
}

.section-desc--centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.gy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gy-section {
    padding: 6rem 2rem;
}

.gy-section--cream {
    background: var(--gy-warm-gray);
}

.gy-section--dark {
    background: var(--gy-black);
    color: #fff;
}

.gy-section--dark .section-title {
    color: #fff;
}

.gy-section--dark .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gy-black);
    color: var(--gy-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-primary:hover {
    background: var(--gy-black-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gy-gold);
    color: var(--gy-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-gold:hover {
    background: var(--gy-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--gy-black);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gy-black);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-outline:hover {
    background: var(--gy-black);
    color: var(--gy-white);
    transform: translateY(-2px);
}

.btn-outline--white {
    color: var(--gy-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline--white:hover {
    background: var(--gy-white);
    color: var(--gy-black);
    border-color: var(--gy-white);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered animation targets */
.gy-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.gy-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================
   CONTENT AREA (for standard pages/posts)
   ========================================== */

.gy-content-area {
    padding: 8rem 0 6rem;
    min-height: 60vh;
}

.gy-article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.gy-article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.gy-article-content p {
    margin-bottom: 1.5rem;
}

.gy-article-content h2,
.gy-article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.gy-article-content a {
    color: var(--gy-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gy-article-content a:hover {
    color: var(--gy-gold-dark);
}

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */

.page-hero {
    padding: 10rem 2rem 4rem;
    background: var(--gy-black);
    text-align: center;
}

.page-hero--compact {
    padding: 8rem 2rem 3rem;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--gy-white);
    margin-bottom: 1rem;
}

.page-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .gy-section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    .gy-container {
        padding: 0 1.2rem;
    }

    .gy-section {
        padding: 3.5rem 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .gy-content-area {
        padding: 6rem 0 4rem;
    }

    .page-hero {
        padding: 7rem 1.2rem 3rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-gold,
    .btn-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.7rem;
    }
}

/* ==========================================
   SAFE AREA INSETS (Notched Devices)
   ========================================== */

@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-contact-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer {
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
    }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
