/*
Theme Name: Garage Door
Theme URI: https://optima-design.pro
Author: Optima Design
Author URI: https://optima-design.pro
Description: Custom lightweight starter theme for Optima Design projects.
Version: 1.0.0
Text Domain: optima
*/

/* =====================================================================
   DESIGN TOKENS (SYSTEM VARIABLES)
===================================================================== */
:root {

    /* Spacing */
    --space-xxs: 8px;
    --space-xs: 12px;
    --space-s: 16px;
    --space-m: 24px;
    --space-l: 40px;
    --space-xl: 60px;
    --space-xxl: 80px;
    --space-xxxl: 120px;

    /* Backgrounds */
    --color-bg-main: #ffffff;
    --color-bg-muted: #f4f6f9;

    /* Typography */
    --font-body: "Inter", sans-serif;
    --font-title: "Montserrat", sans-serif;

    /* Text */
    --color-text-primary: #0e1a2b; /* Navy */
    --color-text-body: #333333;
    --color-text-secondary: #5a6472;
    --color-text-muted: #7a7a7a;

    /* Accent */
    --color-accent: #d62828;
    --color-accent-hover: #b71f1f;

    /* Borders */
    --color-border-light: #e5e7eb;
    --color-border-input: #e2e8f0;

    /* Footer */
    --color-footer-bg: #0e1a2b;
    --color-footer-text: #cbd5e1;

    /* UI */
    --color-scrollbar-track: #f1f5f9;
    --color-scrollbar-thumb: #d62828;
    --color-scrollbar-thumb-hover: #b71f1f;
}

/* =====================================================================
   GLOBAL RESET
===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-main);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.5;
    color: var(--color-text-body);
    margin: 0;
    min-height: 100%;
    width: 100%;
}

.relative { position: relative; }
.cursor { cursor: pointer; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: none; }

/* =====================================================================
   TYPOGRAPHY
===================================================================== */

h1, h2, h3, h4 {
     font-family: var(--font-title);
    color: var(--color-text-primary);
    margin: 0;
}

h1 {
    font-size: 2.3rem;
    font-weight: 700;
}

h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
}

h4 {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
}

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

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

strong, b { font-weight: 600; }

/* =====================================================================
   FORMS
===================================================================== */

input,
textarea {
    padding: 15px;
    border: 1px solid var(--color-border-input);
    background: var(--color-bg-muted);
    font-family: inherit;
}

button,
input,
select,
textarea {
    font-size: 16px;
    letter-spacing: 1px;
}

label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* =====================================================================
   SCROLLBAR
===================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 2px;
}

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

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

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

.container {
    width: 100%;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
}

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

.site-header {
    background: var(--color-bg-main);
    border-bottom: 1px solid var(--color-border-light);
    padding: 16px 0;
}

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

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-main);
    padding: 20px;
    display: none;
}

.main-nav.active {
    display: block;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    border-bottom: 1px solid var(--color-border-light);
}

.menu a {
    display: block;
    padding: 12px 0;
    color: var(--color-text-primary);
    font-size: 17px;
}

.menu li ul {
    display: none;
    padding-left: 15px;
}

.menu li.open > ul {
    display: block;
}

.mobile-cta {
    margin-top: 20px;
    text-align: center;
}

/* =========================
   HERO - FULL HEIGHT IMAGE
========================= */

.front-page section {
    padding: var(--space-xxl) 0;
}



.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}

/* Image wrapper */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(14,26,43,0.65) 0%,
            rgba(14,26,43,0.65) 70%,
            rgba(255,255,255,1) 100%
        );
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
}

.hero h1 {
    margin-bottom: var(--space-m);
    color: #fff;
}

.hero-subtitle {
    margin-bottom: var(--space-l);
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

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

.btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-l);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-secondary {
    background: var(--color-bg-muted);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-light);
}

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

/* =====================================================================
   SECTIONS
===================================================================== */

.services {
    background: var(--color-bg-main);
}

.services-grid,
.why-grid,
.process-grid
{
    display: grid;
    gap: var(--space-l);
    margin-top: var(--space-xl);
}

.service-card,
.process-step {
    padding: var(--space-l);
    background: var(--color-bg-muted);
    border-radius: 6px;
}

.step-number {
    font-weight: 700;
    margin-bottom: var(--space-s);
    color: var(--color-text-secondary);
}

.final-cta {
    background: var(--color-bg-main);
    text-align: center;
}

.final-cta p {
    margin-bottom: var(--space-l);
}


/* =========================
   PREMIUM REVIEWS SLIDER
========================= */

.reviews-premium {
    padding: var(--space-xxl) 0 calc(var(--space-xxl) + 70px);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

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

/* Slider wrapper */

.premium-slider {
    position: relative;
}

/* Card */

.testimonial-card {
    background: var(--color-bg-muted);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.5s ease,
                opacity 0.5s ease,
                box-shadow 0.5s ease;
}

/* Stars */

.testimonial-stars {
    color: #f4b400;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Text */

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
}

/* Author */

.testimonial-author {
    margin-top: 25px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* =========================
   CENTER PREMIUM EFFECT
========================= */

/* Reset slide transform conflicts */
.premium-slider .swiper-slide {
    transform: none !important;
}

/* Default state */
.premium-slider .swiper-slide .testimonial-card {
    opacity: 0.35;
    transform: scale(0.85);
}

/* Adjacent slides */
.premium-slider .swiper-slide-prev .testimonial-card,
.premium-slider .swiper-slide-next .testimonial-card {
    opacity: 0.55;
    transform: scale(0.92);
}

/* Active slide */
.premium-slider .swiper-slide-active .testimonial-card {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 25px 60px rgba(14,26,43,0.12);
}

/* =========================
   PAGINATION
========================= */

.premium-slider .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -70px;
    text-align: center;
}

/* Bullets */

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* =====================================================================
   SCROLL TO TOP
===================================================================== */

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--color-text-primary);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(14,26,43,0.15);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* =====================================================================
   DESKTOP
===================================================================== */

@media (min-width: 768px) {

    .hero-actions {
        flex-direction: row;
        justify-content: left;
    }

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

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

@media (min-width: 992px) {

    .nav-toggle { display: none; }

    .main-nav {
        position: static;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .header-inner { gap: 40px; }

    .menu {
        display: flex;
        gap: 32px;
        align-items: center;
    }

    .menu li {
        border: none;
        position: relative;
    }

    .menu li ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-bg-main);
        min-width: 220px;
        padding: 16px 0;
        box-shadow: 0 10px 25px rgba(14,26,43,0.08);
        display: none;
    }

    .menu li:hover > ul {
        display: block;
    }

    .mobile-cta {margin: 0 0 0 20px;}

    h1 {font-size: 3em;}
    h2 {font-size: 2.6em;}
    h3 {font-size: 2.2em;}
    h4 {font-size: 1.8em;}
    .hero h1 {max-width: 720px;}

}