/* css/styles.css */

/* ============================================================
   Step 1: Reset, Custom Properties, Base Styles
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #161616;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --red-accent: #cc0000;
    --red-hover: #e60000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --max-width: 1200px;
    --transition-speed: 0.3s;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }


/* ============================================================
   Step 2: Top Banner, Navigation, Animated Mobile Nav
   ============================================================ */
.top-banner { background-color: var(--red-accent); color: var(--text-primary); text-align: center; padding: 8px 0; font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }

.navbar { background-color: var(--bg-primary); padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 100; }
.navbar__brand { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-primary); }
.navbar__links { display: flex; gap: 30px; }
.navbar__links a { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--text-secondary); transition: color var(--transition-speed); position: relative; }

/* Underline hover effect */
.navbar__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background-color: var(--red-accent); transition: width var(--transition-speed); }
.navbar__links a:hover::after, .navbar__links a.active::after { width: 100%; }
.navbar__links a:hover, .navbar__links a.active { color: var(--text-primary); }

.navbar__phone { font-family: var(--font-body); font-weight: 700; color: var(--red-accent); font-size: 1rem; transition: color var(--transition-speed); }
.navbar__phone:hover { color: var(--red-hover); }

.navbar__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; z-index: 101; }
.navbar__hamburger span { width: 25px; height: 2px; background-color: var(--text-primary); transition: var(--transition-speed); transform-origin: center; }
.navbar__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   Step 3: Hero Section with Parallax-Ready Styles
   ============================================================ */
.hero { position: relative; height: 70vh; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22, 22, 22, 0.4) 0%, rgba(22, 22, 22, 0.7) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 700px; padding: 0 20px; }
.hero__title { font-family: var(--font-heading); font-size: 2.8rem; line-height: 1.2; margin-bottom: 30px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }

.btn { display: inline-block; padding: 16px 40px; background-color: var(--red-accent); color: var(--text-primary); font-family: var(--font-heading); font-size: 1rem; border: none; cursor: pointer; transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed); text-transform: uppercase; letter-spacing: 1px; }
.btn:hover { background-color: var(--red-hover); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(204, 0, 0, 0.4); }
.btn:active { transform: translateY(0); }


/* ============================================================
   Step 4: Sections, Cards, Gallery with Hover Effects
   ============================================================ */
.section { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.section__title { font-family: var(--font-heading); font-size: 2rem; text-align: center; margin-bottom: 50px; color: var(--red-accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background-color: var(--bg-card); padding: 40px 30px; text-align: center; transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed); border-bottom: 3px solid transparent; }
.card:hover { transform: translateY(-5px); background-color: var(--bg-card-hover); border-bottom-color: var(--red-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.card__title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 15px; color: var(--red-accent); }
.card__text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery__item { overflow: hidden; cursor: pointer; position: relative; }
.gallery__item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.08); }

.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.92); justify-content: center; align-items: center; cursor: pointer; opacity: 0; transition: opacity var(--transition-speed); }
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); }
.lightbox__close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: var(--text-primary); cursor: pointer; font-family: var(--font-body); line-height: 1; transition: color var(--transition-speed); }
.lightbox__close:hover { color: var(--red-accent); }


/* ============================================================
   Step 5: About Page, Testimonials, Contact Page
   ============================================================ */
.about-block { margin-bottom: 50px; }
.about-block__title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--red-accent); margin-bottom: 15px; }
.about-block__text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; max-width: 800px; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial { background-color: var(--bg-card); padding: 35px 30px; border-left: 3px solid var(--red-accent); transition: transform var(--transition-speed), box-shadow var(--transition-speed); }
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.testimonial__text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial__text::before { content: '\201C'; font-size: 3rem; color: var(--red-accent); font-family: Georgia, serif; line-height: 0; vertical-align: -0.5em; margin-right: 5px; opacity: 0.5; }
.testimonial__author { font-family: var(--font-heading); font-size: 0.9rem; color: var(--red-accent); }

.contact-info { max-width: 600px; }
.contact-info__item { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #2a2a2a; }
.contact-info__item:last-child { border-bottom: none; }
.contact-info__label { font-family: var(--font-heading); font-size: 0.85rem; color: var(--red-accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.contact-info__value { color: var(--text-secondary); font-size: 1.05rem; }
.contact-info__value a { color: var(--red-accent); transition: color var(--transition-speed); }
.contact-info__value a:hover { color: var(--red-hover); text-decoration: underline; }


/* ============================================================
   Step 6: Scroll-Reveal Animation Classes
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

.lazy-fade { opacity: 0; transition: opacity 0.5s ease-in; }
.lazy-fade.loaded { opacity: 1; }


/* ============================================================
   Step 7: Footer and Responsive Styles
   ============================================================ */
.footer { text-align: center; padding: 30px 20px; border-top: 1px solid #333; color: var(--text-muted); font-size: 0.85rem; }

/* Tablet */
@media (max-width: 992px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; flex-wrap: wrap; }
    .navbar__links { flex-direction: column; width: 100%; gap: 0; padding-top: 15px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
    .navbar__links.open { max-height: 300px; opacity: 1; }
    .navbar__links a { padding: 12px 0; border-top: 1px solid #333; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
    .navbar__phone { display: none; }
    .navbar__hamburger { display: flex; }
    .hero { height: 50vh; min-height: 300px; background-attachment: scroll; }
    .hero__title { font-size: 1.6rem; }
    .btn { padding: 14px 30px; font-size: 0.9rem; min-height: 44px; }
    .section { padding: 50px 20px; }
    .section__title { font-size: 1.6rem; margin-bottom: 30px; }
    .cards { grid-template-columns: 1fr; gap: 20px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery__item img { height: 220px; }
    .testimonials { grid-template-columns: 1fr; gap: 20px; }
}

/* Small phones */
@media (max-width: 380px) {
    .hero__title { font-size: 1.3rem; }
    .navbar__brand { font-size: 1.1rem; }
}
