/* ==========================================
   GHOST YACHTS - GLOBAL DESIGN SYSTEM
   Ported from GhostSite1 Astro source
   ========================================== */

/* CSS Custom Properties */
:root {
    --gy-midnight: #000000;
    --gy-charcoal: #121212;
    --gy-slate: #333333;
    --gy-ocean: #1a1a1a;
    --gy-turquoise: #1ABC9C;
    --gy-turquoise-hover: #16A085;
    --gy-turquoise-glow: rgba(26, 188, 156, 0.15);
    --gy-cream: #FAF9F6;
    --gy-grey: #6B7280;
    --gy-white: #FFFFFF;
    --gy-glass: rgba(255, 255, 255, 0.08);
    --gy-glass-border: rgba(255, 255, 255, 0.12);

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

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(26, 188, 156, 0.2);

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Override IYBA plugin's Bootstrap setting html{font-size:62.5%} which
   breaks all rem-based sizing across the entire page. */
html {
    font-size: 16px !important;
}

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

body {
    font-family: var(--font-body);
    color: var(--gy-midnight);
    background: #fff;
    overflow-x: hidden;
    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;
}

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

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

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3.25rem;
}

h3 {
    font-size: 2.25rem;
    font-weight: 500;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: var(--gy-grey);
}

/* Section Labels (turquoise uppercase) */
.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gy-turquoise);
    margin-bottom: 1.75rem;
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gy-turquoise);
    opacity: 0.5;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--gy-midnight);
    margin-bottom: 1.75rem;
    letter-spacing: -1px;
}

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

/* Section Description */
.section-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gy-grey);
    max-width: 700px;
}

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

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

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

.gy-container--narrow {
    max-width: 1400px;
}

.gy-section {
    padding: 8rem 4rem;
}

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

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

.gy-section--charcoal {
    background: var(--gy-charcoal);
}

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

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 3rem;
    background: var(--gy-midnight);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid var(--gy-midnight);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-primary:hover {
    background: var(--gy-turquoise);
    border-color: var(--gy-turquoise);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-outline:hover {
    background: #fff;
    color: var(--gy-midnight);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-turquoise {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 3rem;
    background: var(--gy-turquoise);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid var(--gy-turquoise);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-turquoise:hover {
    background: var(--gy-turquoise-hover);
    border-color: var(--gy-turquoise-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.35);
}

/* ==========================================
   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); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(26, 188, 156, 0.3); }
    50% { box-shadow: 0 0 40px rgba(26, 188, 156, 0.5); }
}

/* 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,
.partnership-feature.animate-in,
.yacht-card.animate-in,
.service-card.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-turquoise);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.gy-article-content img {
    border-radius: 2px;
    margin: 2rem 0;
}

.gy-article-content ul,
.gy-article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.gy-article-content li {
    margin-bottom: 0.5rem;
    color: var(--gy-grey);
}

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

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2,
    .section-title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .gy-container {
        padding: 0 1.25rem;
    }

    .gy-section {
        padding: 4rem 1.5rem;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2,
    .section-title {
        font-size: 1.75rem;
    }

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

/* ==========================================
   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);
    }
}
