/* ==========================================================================
   重庆盛源大展汽车维修有限公司 - Landing Page Styles
   ========================================================================== */

:root {
  --color-primary: #14305c;
  --color-primary-light: #1f4b8c;
  --color-primary-dark: #0b1d3a;
  --color-accent: #cf1f2e;
  --color-accent-dark: #a31622;
  --color-dark: #11161f;
  --color-text: #38424f;
  --color-text-light: #707c8c;
  --color-bg-light: #f4f6f9;
  --color-bg-alt: #eef1f6;
  --color-border: #e3e8ef;
  --color-white: #ffffff;

  --font-base: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Rajdhani", var(--font-base);

  --container-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 16px rgba(17, 22, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(17, 22, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 22, 31, 0.16);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

html, body {
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  background: var(--color-white);
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- Section heading helpers ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-tag::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .section-tag { justify-content: center; }
.section-head .section-tag::before { display: none; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--color-text-light);
  font-size: 1.02rem;
}

.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 60px 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(207, 31, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 24px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-item .icon { font-size: 1rem; }

.topbar-item .placeholder {
  color: #ffd166;
  font-weight: 600;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.0);
  backdrop-filter: blur(0px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.header:not(.scrolled) .logo-main {
  color: var(--color-white);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
}

.header:not(.scrolled) .logo-sub {
  color: rgba(255, 255, 255, 0.75);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-white);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.header.scrolled .nav a { color: var(--color-text); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav a:hover { color: var(--color-accent); }
.nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
}

.header.scrolled .nav-toggle { background: var(--color-bg-alt); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-white);
  transition: var(--transition);
}

.header.scrolled .nav-toggle span { background: var(--color-primary); }

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height, 78px));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 29, 58, 0.92) 0%, rgba(20, 48, 92, 0.78) 45%, rgba(11, 29, 58, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding-top: 120px;
  padding-bottom: 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(207, 31, 46, 0.18);
  border: 1px solid rgba(207, 31, 46, 0.6);
  color: #ffe3e6;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-content > p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
  max-width: 760px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-num::after {
  content: attr(data-suffix);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
  animation: bounce 2.2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #1c4ab4;
  font-weight: 700;
}

.about-badge span {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.about-content h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 22px; }

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.about-list {
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.98rem;
}

.about-list li .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(207, 31, 46, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

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

.service-card .service-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.service-card .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.08);
}

.service-num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(11, 29, 58, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.service-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.service-body p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  flex: 1;
}

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.advantage-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
}

.advantage-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(20, 48, 92, 0.06);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.advantage-icon svg { width: 28px; height: 28px; }

.advantage-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.advantage-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 10px, transparent 10px 20px);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-step .step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.process-step:hover .step-num {
  background: var(--color-accent);
  transform: scale(1.08);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.row-span-2 { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,58,0) 40%, rgba(11,29,58,0.65) 100%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after,
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 31, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Team
   ========================================================================== */
.team {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
}

.team-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.team-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,29,58,0.92) 0%, rgba(11,29,58,0.55) 55%, rgba(11,29,58,0.25) 100%);
}

.team-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 580px;
  padding: 80px 0;
}

.team-content .section-tag { color: #ffb3ba; }
.team-content .section-tag::before { background: #ffb3ba; }

.team-content h2 {
  color: var(--color-white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.team-content p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.team-tags span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 64px 0;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.cta-banner .btn-accent {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

.cta-banner .btn-accent:hover {
  background: var(--color-bg-light);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 48, 92, 0.07);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.contact-info-item p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.contact-info-item .placeholder {
  color: var(--color-accent);
  font-weight: 700;
}

/* Store cards */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.store-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.store-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.store-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(20, 48, 92, 0.07);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}

.store-tag-main {
  background: rgba(207, 31, 46, 0.1);
  color: var(--color-accent);
}

.store-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 48, 92, 0.07);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.store-icon svg { width: 26px; height: 26px; }

.store-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.store-card .store-address {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 8px;
  flex: 1;
}

.store-card .store-contact {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.store-card .store-contact a,
.contact-info-item a,
.topbar-item a {
  color: inherit;
  text-decoration: none;
}

.store-card .store-contact a:hover,
.contact-info-item a:hover,
.topbar-item a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-brand .logo-main {
  color: var(--color-white);
  font-size: 1.15rem;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-col p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.02rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-col ul { display: grid; gap: 12px; }

.footer-col ul a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--color-white); padding-left: 4px; }

.footer-col ul li {
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  align-items: flex-start;
}

.store-list li { padding-bottom: 4px; }

.store-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-line strong {
  color: var(--color-white);
  font-weight: 700;
}

.store-line a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--color-accent); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .process-track::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media img { height: 360px; }
  .contact-info-list { grid-template-columns: 1fr; }
  .stores-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; gap: 16px; }
  .topbar-item:nth-child(2) { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .section-pad { padding: 64px 0; }
  .topbar-item:nth-child(1) { display: none; }
  .topbar-inner { justify-content: center; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav.open { transform: translateX(0); }

  .nav a { color: var(--color-white); font-size: 1.1rem; }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { min-height: 100vh; }
  .hero-content { padding-top: 100px; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 1.9rem; }

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

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.span-2 { grid-column: span 2; }
  .gallery-item.row-span-2 { grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-bottom { justify-content: center; text-align: center; }

  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .process-track { grid-template-columns: 1fr; }
}
