/* ==========================================================================
   Mister Garage Door Services Inc — Clean Industrial
   Dark steel gray + Safety green (#22c55e)
   Typography: Barlow Condensed + DM Sans
   ========================================================================== */

:root {
    --bg-dark: #1e2124;
    --bg-darker: #161819;
    --bg-card: #252830;
    --bg-card-hover: #2d3038;
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.15);
    --green-dark: #16a34a;
    --white: #ffffff;
    --gray-100: #f0f1f3;
    --gray-300: #b4b9be;
    --gray-500: #6b7280;
    --gray-700: #3a3f47;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-100);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--green);
}

/* Section labels & titles */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 48px;
    text-transform: uppercase;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 33, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(22, 24, 25, 0.95);
    border-bottom-color: var(--gray-700);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--gray-700);
}

.header-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--green);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--bg-dark) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--green-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    background: var(--bg-darker);
}

.hero-bg-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.015) 40px,
            rgba(255,255,255,0.015) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.015) 40px,
            rgba(255,255,255,0.015) 41px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 40px;
    padding: 8px 20px;
    margin-bottom: 32px;
    animation: fadeSlideDown 0.8s ease-out;
}

.badge-stars {
    display: flex;
    gap: 2px;
}

.badge-text {
    font-size: 0.85rem;
    color: var(--gray-300);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.title-line-1 {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--green);
}

.title-line-2 {
    display: block;
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: var(--white);
    letter-spacing: -1px;
}

.title-line-3 {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--gray-500);
    letter-spacing: 6px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-300);
    max-width: 560px;
    margin: 0 auto 36px;
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.hero-trust {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-300);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

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

.btn-secondary:hover {
    background: var(--green);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   URGENCY SECTION
   ========================================================================== */

.urgency-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.urgency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--green) 50%, transparent 100%);
}

.urgency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.urgency-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.urgency-text p {
    color: var(--gray-300);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.urgency-text .btn {
    margin-top: 12px;
}

.urgency-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.stat-card:first-child {
    grid-column: span 2;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--green-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--gray-700);
    transition: transform 0.3s, border-color 0.3s;
}

.photo-grid img:hover {
    transform: scale(1.03);
    border-color: var(--green);
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.reviews-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.featured-review {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--green);
    opacity: 0.3;
    line-height: 0.5;
    position: absolute;
    top: 32px;
    left: 40px;
}

.featured-review blockquote {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--white);
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-stars {
    display: flex;
    gap: 2px;
}

.review-author strong {
    color: var(--white);
    font-size: 1rem;
}

.review-source {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}

.review-card:hover {
    border-color: var(--green);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-card p {
    color: var(--gray-300);
    font-size: 1rem;
    margin-bottom: 16px;
    font-style: italic;
}

.review-card strong {
    color: var(--white);
    font-size: 0.9rem;
}

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

/* ==========================================================================
   WHY US
   ========================================================================== */

.why-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--gray-700);
    transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    opacity: 0.4;
    margin-bottom: 12px;
}

.why-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--green);
}

.contact-cta-card {
    display: flex;
    justify-content: center;
}

.cta-card-inner {
    background: var(--bg-card);
    border: 2px solid var(--green);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.cta-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto 20px;
    border: 2px solid var(--gray-700);
}

.cta-card-inner h4 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-card-inner p {
    color: var(--gray-300);
    margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    padding: 40px 0 24px;
    background: var(--bg-darker);
    border-top: 1px solid var(--gray-700);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
}

.footer-brand span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-contact {
    display: flex;
    gap: 24px;
}

.footer-contact a {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ==========================================================================
   FLOATING CTA
   ========================================================================== */

.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    transition: opacity 0.3s, transform 0.3s;
}

.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.btn-floating {
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    font-size: 0.95rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}

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

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .header-name .accent {
        display: none;
    }

    .header-cta span {
        display: none;
    }

    .header-cta {
        padding: 10px;
        border-radius: 50%;
    }

    .hero {
        min-height: 100svh;
        padding: 80px 20px 40px;
    }

    .title-line-3 {
        letter-spacing: 3px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .urgency-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .featured-review {
        padding: 32px 24px;
    }

    .featured-review blockquote {
        font-size: 1.15rem;
    }

    .quote-mark {
        font-size: 4rem;
        top: 16px;
        left: 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .floating-cta {
        left: 24px;
        right: 24px;
        bottom: 16px;
    }

    .btn-floating {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .urgency-section,
    .services-section,
    .gallery-section,
    .reviews-section,
    .why-section,
    .contact-section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card:first-child {
        grid-column: span 1;
    }

    .urgency-stats {
        grid-template-columns: 1fr;
    }
}

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