/* ============================================================
   ABSOLUTE MINI NW — styles.css
   Organised into sections. Edit variables at the top to
   change colours/fonts across the whole site at once.
   ============================================================ */

/* ── 1. CSS VARIABLES (Design Tokens) ── */
:root {
  --red:        #E4002B;
  --red-dark:   #b8001f;
  --black:      #0d0d0d;
  --dark:       #141414;
  --dark-card:  #1a1a1a;
  --dark-border:#2a2a2a;
  --mid:        #3a3a3a;
  --grey:       #6b6b6b;
  --light-grey: #a0a0a0;
  --off-white:  #e8e8e8;
  --white:      #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-sub:     'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;

  --transition: 0.3s ease;

  --nav-height: 72px;
  --section-pad: 100px;
  --container:  1200px;
}


/* ── 2. RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}


/* ── 3. UTILITY CLASSES ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--light-grey);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}


/* ── 4. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(228, 0, 43, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--dark-border);
}
.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}


/* ── 5. REVEAL ANIMATION ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ── 6. NAVIGATION ── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.nav-header.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--dark-border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--off-white);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-link.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
}
.nav-link.nav-cta:hover {
  background: var(--red-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 7. HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 24px 120px;
  overflow: hidden;
  background-image: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.62) 100%), url('https://i.ibb.co/MDVBjxMd/IMG-2172.png');
  background-size: cover;
  background-position: 60% 50%;
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}

/* Red accent top-left bar */
.hero-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title-accent {
  color: var(--red);
  display: inline-block;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--light-grey);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* Stats bar */
.hero-stats {
  max-width: var(--container);
  margin: 64px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  padding: 28px 0;
  border-top: 1px solid var(--dark-border);
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  align-items: center;
  text-align: center;
}
.hero-stat:first-child { align-items: flex-start; }
.hero-stat:last-child  { align-items: flex-end; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--dark-border);
  margin: 0 40px;
  flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.hero-scroll-hint span {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 2s ease infinite;
}


/* ── 8. SERVICES ── */
.services {
  padding: var(--section-pad) 0;
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--dark-card);
  padding: 36px 32px;
  transition: background var(--transition);
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}
.service-card:hover {
  background: #1f1f1f;
}
.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--red);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-sub);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--light-grey);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-link {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--red);
  text-transform: uppercase;
  transition: letter-spacing var(--transition);
}
.service-card:hover .service-link {
  letter-spacing: 0.14em;
}


/* ── 9. ABOUT ── */
.about {
  padding: var(--section-pad) 0;
  background: var(--black);
}

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

.about-visual {
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative grid overlay on placeholder */
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(228, 0, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 0, 43, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.about-img-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.about-img-label span {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.about-img-label strong {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--white);
  line-height: 1;
}

/* When you add a real image: */
.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #000;
}

.about-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--red);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.about-badge svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.about-text {
  color: var(--light-grey);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--off-white);
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}


/* ── 10. WHY US ── */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-card {
  background: var(--dark-card);
  padding: 40px 36px;
  position: relative;
  transition: background var(--transition);
}
.why-card:hover {
  background: #1f1f1f;
}

.why-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--dark-border);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  transition: color var(--transition);
}
.why-card:hover .why-number {
  color: var(--red);
}

.why-card h3 {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--light-grey);
  line-height: 1.7;
}


/* ── 11. TESTIMONIALS ── */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.testimonials-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  padding: 40px 44px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
}

.testimonial-stars {
  color: var(--red);
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--off-white);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--grey);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--off-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.testimonial-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: var(--red);
  transform: scale(1.2);
}


/* ── 12. CONTACT ── */
.contact {
  padding: var(--section-pad) 0;
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--light-grey);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(228, 0, 43, 0.1);
  border: 1px solid rgba(228, 0, 43, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sub);
  margin-bottom: 2px;
}
.contact-detail-item a,
.contact-detail-item span {
  color: var(--off-white);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-detail-item a:hover {
  color: var(--red);
}

/* Contact Form */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--black);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  color: var(--off-white);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--dark-card);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey);
  text-align: center;
  margin-top: -8px;
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 60px 40px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  min-height: 300px;
}
.form-success.visible {
  display: flex;
}
.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--red);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.form-success p {
  color: var(--light-grey);
}


/* ── 13. FOOTER ── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--dark-border);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--grey);
  max-width: 280px;
  line-height: 1.7;
}

.footer-links-col h4 {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a,
.footer-links-col span {
  font-size: 0.88rem;
  color: var(--light-grey);
  transition: color var(--transition);
}
.footer-links-col a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--grey);
}




/* ── GALLERY ── */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  margin-bottom: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 1/1;
  background: var(--dark-card);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(228,0,43,0.15) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery-cta p {
  font-size: 1.05rem;
  color: var(--off-white);
  font-style: italic;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  cursor: default;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.lightbox p {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Gallery responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
  .gallery-overlay {
    opacity: 1;
  }
}

/* ── 14. ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%   { transform: scaleY(1); opacity: 1; }
  50%  { transform: scaleY(0.6); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}


/* ── 15. RESPONSIVE — TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px;
    --nav-height: 64px;
  }

  /* ── NAV: always solid background on mobile ── */
  .nav-header {
    background: rgba(13, 13, 13, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--dark-border) !important;
  }

  /* ── NAV CONTAINER: logo left, hamburger right ── */
  .nav-container {
    padding: 0 20px;
  }

  /* ── HAMBURGER: clearly visible ── */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 11px;
    background: rgba(228, 0, 43, 0.12);
    border-radius: var(--radius);
    border: 1px solid rgba(228, 0, 43, 0.4);
    flex-shrink: 0;
  }
  .hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }

  /* ── NAV LINKS: max-height toggle (reliable on iOS Safari) ── */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 10, 10, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--red);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      padding 0.3s ease,
      visibility 0s linear 0.4s;
  }
  .nav-links.open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: 16px;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      padding 0.3s ease,
      visibility 0s linear 0s;
  }

  /* ── NAV LINK ITEMS ── */
  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--off-white);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,255,255,0.06);
    color: var(--white);
  }
  .nav-link.nav-cta {
    margin-top: 10px;
    text-align: center;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 14px 16px;
  }
  .nav-link.nav-cta:hover {
    background: var(--red-dark);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .about-badge {
    bottom: 16px;
    left: 16px;
    right: auto;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}


/* ── 16. RESPONSIVE — MOBILE (≤ 600px) ── */
@media (max-width: 600px) {
  :root {
    --section-pad: 56px;
  }

  .hero {
    padding-bottom: 80px;
    background-position: center 15%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 0;
    margin-top: 32px;
    padding: 20px 0;
  }
  .hero-stat {
    align-items: center !important;
    text-align: center;
    padding: 0 8px;
  }
  .hero-stat:first-child { align-items: center !important; }
  .hero-stat:last-child  { align-items: center !important; }
  .stat-number { font-size: 1.4rem; }
  .stat-label  { font-size: 0.65rem; }
  .hero-stat-divider {
    width: 1px;
    height: 36px;
    margin: 0;
    background: var(--dark-border);
  }

  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }

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

  .hero-scroll-hint {
    display: none;
  }

  .about-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    margin-top: 0;
  }
}


/* ── MOBILE QUICK LINKS: Cars & Parts always visible in header ── */
.nav-quick { display: none; }
@media (max-width: 900px) {
  .nav-quick {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 10px;
  }
  .nav-quick a {
    font-family: var(--font-sub);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    padding: 8px 12px;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
  }
  .nav-quick a.qactive {
    border-color: var(--red);
    color: var(--red);
  }
}


/* ── STOCK LINKS: make Cars & Parts stand out in the nav ── */
.nav-link.nav-stock {
  color: var(--white);
  position: relative;
}
.nav-link.nav-stock::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
@media (max-width: 900px) {
  .nav-link.nav-stock::after { display: none; }
}
