/* ==========================================================================
   SLO Grill Cleaning - "Smokehouse Premium" Aesthetic
   Professional BBQ cleaning with warm, inviting fire energy
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theme
   -------------------------------------------------------------------------- */
:root {
    /* Primary Palette - Fire & Embers */
    --fire-orange: #FF5722;
    --fire-orange-light: #FF7043;
    --ember-amber: #FFB300;
    --ember-glow: #FF8F00;

    /* Dark Palette - Charcoal & Smoke */
    --charcoal-deep: #0D0D0D;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --smoke: #3D3D3D;
    --ash: #5D5D5D;

    /* Light Palette */
    --cream: #F5F0E8;
    --cream-soft: #FAF7F2;
    --white: #FFFFFF;

    /* Functional */
    --success: #4CAF50;
    --text-primary: var(--cream);
    --text-secondary: #B8B0A0;
    --text-dark: var(--charcoal);

    /* Typography */
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-glow: 0 0 30px rgba(255, 87, 34, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(255, 87, 34, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--charcoal-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

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

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

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-3xl) 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 87, 34, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--cream);
    transition: var(--transition-base);
}

.logo:hover {
    color: var(--fire-orange);
}

.logo-icon {
    font-size: 1.5rem;
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.logo-text {
    display: none;
}

@media (min-width: 480px) {
    .logo-text {
        display: inline;
    }
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--fire-orange);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--white);
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.nav-phone:hover {
    background: var(--fire-orange-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.phone-icon {
    font-size: 1rem;
}

.phone-number {
    font-size: 0.9rem;
}

@media (min-width: 480px) {
    .phone-number {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--charcoal-deep) 0%,
        var(--charcoal) 40%,
        #1a1510 70%,
        #261a10 100%
    );
    z-index: -1;
}

/* Radial glow from bottom */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Floating ember particles */
.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ember-amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--fire-orange), 0 0 20px var(--ember-amber);
    animation: float-up 8s ease-in-out infinite;
    opacity: 0.6;
}

.ember-1 { left: 15%; bottom: 20%; animation-delay: 0s; }
.ember-2 { left: 75%; bottom: 10%; animation-delay: 2s; animation-duration: 10s; }
.ember-3 { left: 45%; bottom: 5%; animation-delay: 4s; animation-duration: 12s; }

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Heat wave effect */
.heat-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 87, 34, 0.1), transparent);
    animation: heat-shimmer 4s ease-in-out infinite;
}

@keyframes heat-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ember-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.hero-title {
    margin-bottom: var(--space-md);
    animation: fade-in-up 0.8s ease-out 0.3s backwards;
}

.hero-title .highlight {
    color: var(--fire-orange);
    text-shadow: 0 0 40px rgba(255, 87, 34, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-lg);
    animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    animation: fade-in-up 0.8s ease-out 0.5s backwards;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fade-in-up 0.8s ease-out 0.6s backwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--fire-orange);
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fire-orange), var(--ember-glow));
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 2px solid var(--smoke);
}

.btn-secondary:hover {
    border-color: var(--fire-orange);
    color: var(--fire-orange);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--charcoal);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fire-orange), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

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

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--smoke);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--fire-orange);
    box-shadow: var(--shadow-glow);
}

.service-card.featured {
    border-color: var(--fire-orange);
    background: linear-gradient(135deg, var(--charcoal-light), rgba(255, 87, 34, 0.1));
}

.service-badge {
    position: absolute;
    top: -12px;
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--fire-orange);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    color: var(--fire-orange);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    margin-bottom: var(--space-sm);
    color: var(--cream);
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '→';
    color: var(--fire-orange);
}

/* --------------------------------------------------------------------------
   Service Area Section
   -------------------------------------------------------------------------- */
.area {
    background: var(--charcoal-deep);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 480px) {
    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .area-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .area-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.area-city {
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid var(--smoke);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-city:hover {
    border-color: var(--fire-orange);
    color: var(--fire-orange);
}

/* --------------------------------------------------------------------------
   Why Section
   -------------------------------------------------------------------------- */
.why {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    text-align: center;
    padding: var(--space-lg);
}

.why-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--fire-orange);
    text-shadow: var(--shadow-glow);
    margin-bottom: var(--space-xs);
}

.why-label {
    font-weight: 600;
    color: var(--cream);
    margin-bottom: var(--space-xs);
}

.why-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--charcoal-deep);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fire-orange), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.contact-info {
    padding: var(--space-lg) 0;
}

.contact-title {
    margin-bottom: var(--space-sm);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--fire-orange), var(--ember-glow));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow-strong);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-phone:hover {
    transform: scale(1.02);
}

.phone-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.contact-phone-icon {
    font-size: 2rem;
}

.contact-phone-text {
    display: flex;
    flex-direction: column;
}

.contact-phone-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.contact-phone-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.contact-hours {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-hours strong {
    color: var(--cream);
}

/* Contact Form */
.contact-form {
    background: var(--charcoal);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--smoke);
}

.form-title {
    margin-bottom: var(--space-md);
    color: var(--cream);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cream);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    background: var(--charcoal-light);
    border: 1px solid var(--smoke);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream);
    transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ash);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fire-orange);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--charcoal);
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--smoke);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    display: inline;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

@media (min-width: 768px) {
    .footer-contact {
        text-align: right;
    }
}

.footer-phone {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fire-orange);
    margin-bottom: var(--space-xs);
    transition: var(--transition-base);
}

.footer-phone:hover {
    text-shadow: var(--shadow-glow);
}

.footer-area {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--smoke);
    color: var(--ash);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selection color */
::selection {
    background: var(--fire-orange);
    color: var(--white);
}

/* Smooth scroll for anchor links */
html:focus-within {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html:focus-within {
        scroll-behavior: auto;
    }
}
