/* ==========================================================================
   Sir Mixology — Custom Styles
   Color palette derived from logo: charcoal, silver, teal accent
   ========================================================================== */

:root {
    --color-charcoal: #3a3a3a;
    --color-charcoal-light: #4d4d4d;
    --color-dark: #2a2a2a;
    --color-silver: #b8b8b8;
    --color-teal: #357d76;
    --color-teal-dark: #2b6d66;
    --color-teal-light: #7fb5b0;
    --color-cream: #faf9f7;
    --color-white: #ffffff;
    --color-gold: #c9a96e;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;

    /* Semantic text colors (DRY: use these instead of bare hex) */
    --color-muted: #6e6e6e;
    --color-gray-medium: #9a9a9a; /* Footer tagline color */
    --color-body-text: #555;
    --color-body-text-light: #666;
    --color-label: #767676;

    /* Error colors */
    --color-error: #c0392b;
    --color-error-light: rgba(192, 57, 43, 0.1);

    /* Semantic border colors */
    --color-border: #ddd;
    --color-border-light: #eee;
    --color-border-muted: #555;
    --color-border-dark: #444;

    /* Gold palette */
    --color-gold-light: #d4b87a;

    /* Shared dark-section background */
    --gradient-dark: linear-gradient(135deg, var(--color-dark) 0%, var(--color-charcoal) 100%);
}

/* ==========================================================================
   Base
   ========================================================================== */

/* Skip navigation — visually hidden until focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-teal);
    color: var(--color-white);
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
}

a {
    color: var(--color-teal);
}

a:hover {
    color: var(--color-teal-dark);
}

/* ==========================================================================
   Shared Button Base (DRY: one teal button, size variants only)
   ========================================================================== */

.btn-teal {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-teal:hover,
.btn-teal:focus {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 181, 176, 0.35);
}

/* Size variants */
.btn-teal-sm {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.btn-teal-md {
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
}

.btn-teal-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#mainNav {
    background-color: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: height 0.3s ease, width 0.3s ease;
}

#mainNav.scrolled .nav-logo {
    height: 35px;
    width: 35px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.navbar-nav .nav-link {
    color: var(--color-silver) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-teal-light) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-charcoal) 50%, var(--color-charcoal-light) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 181, 176, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo-wrapper {
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatIn 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-white);
    line-height: 1.2;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-title .accent {
    color: var(--color-teal-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-silver);
    font-weight: 300;
    line-height: 1.8;
    max-width: 500px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-silver);
    border-radius: 30px;
    padding: 0.75rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    border-color: var(--color-teal-light);
    color: var(--color-teal-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */

.section-padding {
    padding: 6rem 0;
}

/* DRY: shared overrides for any section with a dark background */
.dark-section {
    background: var(--gradient-dark);
    color: var(--color-white);
}

.dark-section .section-heading {
    color: var(--color-white);
}

.dark-section .section-subheading {
    color: var(--color-silver);
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subheading {
    font-size: 1.15rem;
    color: var(--color-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-teal);
    border: none;
    margin: 1rem auto 1.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background-color: var(--color-white);
}

.about-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(127, 181, 176, 0.3);
}

.about-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-teal-dark);
}

.about-stat-label {
    font-size: 0.9rem;
    color: var(--color-label);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

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

.service-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-body-text-light);
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-card ul li {
    padding: 0.3rem 0;
    color: var(--color-body-text);
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-teal);
    position: absolute;
    left: 0;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

/* .how-it-works-section inherits background from .dark-section */


.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal-light);
    margin: 0 auto 1.5rem;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.step-text {
    color: var(--color-silver);
    font-weight: 300;
    line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background-color: var(--color-white);
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-light) 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(127, 181, 176, 0.1);
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    color: var(--color-white);
}

.cta-text {
    color: var(--color-silver);
    font-size: 1.1rem;
    font-weight: 300;
}

/* ==========================================================================
   Page Hero (DRY: shared by Contact & Privacy pages)
   ========================================================================== */

.page-hero {
    background: var(--gradient-dark);
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
}

.page-hero p {
    color: var(--color-silver);
    font-size: 1.15rem;
    font-weight: 300;
}


/* ==========================================================================
   Privacy Page
   ========================================================================== */

.privacy-content {
    padding: 4rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-silver);
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.site-footer .brand-text {
    font-size: 1.15rem;
}

.footer-tagline {
    color: var(--color-gray-dark);
    font-weight: 300;
    font-style: italic;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border-muted);
    color: var(--color-silver);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--color-teal-light);
    color: var(--color-teal-light);
    transform: translateY(-2px);
}

.footer-contact {
    color: var(--color-silver);
    font-size: 0.95rem;
}

.footer-divider {
    border-color: var(--color-border-dark);
    margin: 2.5rem 0 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-silver);
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes floatIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* ==========================================================================
   Mobile CTA Ribbon
   ========================================================================== */

.mobile-cta-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-cta-ribbon.visible {
    transform: translateY(0);
}

.mobile-cta-text {
    color: var(--color-silver);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .mobile-cta-ribbon {
        display: block;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-logo-wrapper {
        max-width: 300px;
        margin-bottom: 2rem;
    }

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

    .hero-subtitle {
        margin: 0 auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .section-heading {
        font-size: 2rem;
    }

    .cta-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
