/* 
  The Curated Gentleman - Design System
  Colors: Deep Ocean (`#0B192C` approx), Beige (`#E6D5B8`), Cream (`#F5F5F0`)
  Typography: Playfair Display (Serif), Outfit (Sans-Serif)
*/

:root {
    /* Colors */
    --color-deep-ocean: #0b1521;
    --color-deep-ocean-light: #152538;
    --color-beige: #D9C3A6;
    --color-beige-dark: #b8a07c;
    --color-cream: #F7F5EE;
    --color-cream-dim: #E8E5DC;
    --color-text: var(--color-cream);
    --color-text-muted: rgba(247, 245, 238, 0.7);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Styling */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --border-radius: 4px;
}

/* Reset Component */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-deep-ocean);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Basics */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-cream);
}

h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    font-size: 1.1rem;
}

a {
    color: var(--color-beige);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-cream);
}

/* Utils */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-beige);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-beige);
    color: var(--color-deep-ocean);
}

.btn-primary:hover {
    background-color: var(--color-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-beige);
    color: var(--color-beige);
}

.btn-outline:hover {
    background-color: var(--color-beige);
    color: var(--color-deep-ocean);
}

/* Layout Helpers */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Base Nav (to be refined in component) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 21, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xs) var(--spacing-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo-text {
    color: var(--color-cream);
}

.logo-accent {
    color: var(--color-beige);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.nav-links a:not(.btn):hover {
    color: var(--color-beige);
}

/* Footer Base */
footer {
    background-color: var(--color-deep-ocean-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(217, 195, 166, 0.1);
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content .discreet {
    color: var(--color-beige);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

/* Animation Utilities (to be implemented via JS) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive basics */
@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .nav-links {
        gap: 0;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.1;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .logo-accent {
        font-size: 1.1rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .philosophy-content {
        gap: 2rem;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
        /* Fix for mobile browser display issues with fixed background */
    }
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 21, 33, 0.4);
    z-index: -1;
}

.hero-background::after {
    /* Subtle noise texture */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-5%, -10%)
    }

    20% {
        transform: translate(-15%, 5%)
    }

    30% {
        transform: translate(7%, -25%)
    }

    40% {
        transform: translate(-5%, 25%)
    }

    50% {
        transform: translate(-15%, 10%)
    }

    60% {
        transform: translate(15%, 0%)
    }

    70% {
        transform: translate(0%, 15%)
    }

    80% {
        transform: translate(3%, 35%)
    }

    90% {
        transform: translate(-10%, 10%)
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-beige-dark);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--color-cream);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Glass Container for Hero Text */
.glass-container {
    background: rgba(11, 21, 33, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 195, 166, 0.2);
    border-radius: 12px;
    padding: 4rem 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    max-width: 800px;
}

@media (max-width: 600px) {
    .glass-container {
        padding: 2.5rem 1.5rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-beige);
    border-radius: 14px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-beige);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* =========================================
   SERVICES / PRICING SECTION
   ========================================= */
.services {
    background-color: var(--color-deep-ocean);
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(217, 195, 166, 0.1);
    border-radius: 8px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 195, 166, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 8px;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(217, 195, 166, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background: rgba(21, 37, 56, 0.6);
    border: 1px solid var(--color-beige-dark);
    transform: scale(1.05);
    z-index: 2;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-beige);
    color: var(--color-deep-ocean);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--color-beige);
    margin-bottom: 1rem;
}

.card-header .price {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-cream);
}

.card-header .subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-toggle-icon {
    display: none;
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        cursor: pointer;
    }

    .card-header-content h3 {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .card-header-content .subtext {
        margin-top: 0.2rem;
        font-size: 0.75rem;
        text-align: left;
    }

    .card-toggle-icon {
        display: block;
        color: var(--color-beige);
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .card-body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    }

    .service-card.active .card-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .service-card.active .card-body {
        max-height: 1000px;
        opacity: 1;
    }

    .service-card.active .card-toggle-icon {
        transform: rotate(180deg);
    }
}

.card-body .features {
    list-style: none;
    flex-grow: 1;
}

.features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-beige-dark);
    font-size: 0.8rem;
}

.features li.muted {
    opacity: 0.5;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .service-card.featured {
        transform: scale(1);
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* =========================================
   PHILOSOPHY SECTION
   ========================================= */
.philosophy {
    position: relative;
    background-color: var(--color-deep-ocean-light);
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h2 {
    margin-bottom: 2rem;
}

.display-block {
    display: block;
}

.philosophy-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-beige);
    border-left: 2px solid var(--color-beige-dark);
    padding-left: 1.5rem;
    margin-top: 2.5rem;
}

.philosophy-image {
    flex: 1;
    position: relative;
}

.philosophy-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

@media (max-width: 900px) {
    .philosophy-content {
        flex-direction: column;
    }
}

/* =========================================
   CONTACT / APPLICATION SECTION
   ========================================= */
.contact {
    background-color: var(--color-deep-ocean);
}

.contact-container {
    max-width: 800px;
}

.contact-header {
    margin-bottom: 3rem;
}

.application-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(217, 195, 166, 0.1);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-beige-dark);
    background: rgba(0, 0, 0, 0.4);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9C3A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-actions {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .application-form {
        padding: 2rem 1.5rem;
    }
}