/* ==========================================================================
   Base Styles & Design Variables
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-charcoal-base: #121212;
    --color-charcoal-light: #1e1e1e;
    --color-charcoal-lighter: #2c2c2c;
    --color-crimson: #c8102e;
    --color-crimson-hover: #e01235;
    --color-gold: #d4af37;
    --color-gold-light: #f3e5ab;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #737373;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders & Roles */
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset */
*, *::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-charcoal-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    font-weight: 800; /* Bold, confrontational */
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.highlight { color: var(--color-crimson); }
.accent { color: var(--color-gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-crimson);
    color: #fff;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-crimson-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm); /* Increased responsive padding */
}

/* Base padding for mobile edge breathing room */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95); /* Slightly lighter charcoal to separate from background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-charcoal-lighter);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-icon {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    margin: -10px 0; /* Grow vertically without expanding navbar height */
}

@media (min-width: 769px) {
    .logo-icon {
        height: 68px;
        margin: -16px 0;
    }
}

.logo-text {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .nav-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Make the mobile "Book Now" button fit nicely next to the logo */
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .hide-mobile { display: none !important; }
    .show-mobile { display: inline !important; }

    .logo { 
        font-size: 1rem; 
        max-width: 180px;
        line-height: 1.1;
    }
    .section { padding: var(--spacing-lg) 0; }
    .hero { padding-top: 5rem; }
    .hero-headline { margin-top: var(--spacing-sm); } /* Keep smaller margin on mobile */
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 4.5rem);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: var(--spacing-xs); /* Desktop breathing room - half of sm */
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.hero-headline .highlight {
    display: block;
    color: var(--color-crimson);
}

.hero-subhead {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-xl) / 2);
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    position: relative;
}

/* ==========================================================================
   SVG Breakthrough Animation
   ========================================================================== */

.breakthrough-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.stone-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: var(--color-charcoal-lighter);
}

.wall-block {
    fill: var(--color-charcoal-light);
    stroke: var(--color-charcoal-base);
    stroke-width: 2;
}

.golden-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: visible;
}

.golden-line {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
    /* Animation setup */
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: breakthrough 2.5s cubic-bezier(0.85, 0, 0.15, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes breakthrough {
    0% {
        stroke-dashoffset: 300;
    }
    50% {
        stroke-dashoffset: 150;
        stroke-width: 8;
    }
    100% {
        stroke-dashoffset: 0;
        stroke-width: 12;
    }
}

/* Debris effect classes for JS (Optional enhancement later) */
.debris {
    position: absolute;
    background: var(--color-charcoal-lighter);
    border: 1px solid var(--color-charcoal-base);
    animation: scatter 1s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes scatter {
    0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(var(--rot)); opacity: 0; }
}

/* ==========================================================================
   The Problem Section (Cards)
   ========================================================================== */

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--color-charcoal-light);
    border: 1px solid var(--color-charcoal-lighter);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-crimson);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-charcoal-lighter);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.card p {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   The Solution Section
   ========================================================================== */

.solution-section {
    background: linear-gradient(to bottom, var(--color-charcoal-base), var(--color-charcoal-light), var(--color-charcoal-base));
    border-top: 1px solid var(--color-charcoal-lighter);
    border-bottom: 1px solid var(--color-charcoal-lighter);
}

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

.lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.solution-content p:not(.lead-text) {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.service-module {
    background: var(--color-charcoal-light);
    border-left: 4px solid var(--color-charcoal-lighter);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
}

.service-module:hover {
    border-left-color: var(--color-gold);
    background: var(--color-charcoal-lighter);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.module-header h3 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.module-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    background: var(--color-charcoal-base);
    border-radius: 50px;
    color: var(--color-text-secondary);
    font-weight: 700;
}

.module-tag.accent {
    color: var(--color-charcoal-base);
    background: var(--color-gold);
}

.service-module p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 800px;
}

/* ==========================================================================
   Booking Section (Calendly Inline Embed)
   ========================================================================== */

.booking-section {
    background: linear-gradient(to bottom, var(--color-charcoal-base), var(--color-charcoal-light), var(--color-charcoal-base));
    border-top: 1px solid var(--color-charcoal-lighter);
}

.booking-header {
    margin-bottom: var(--spacing-md);
}

.calendly-embed-container {
    background: var(--color-charcoal-light);
    border: 1px solid var(--color-charcoal-lighter);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
