/* ══════════════════════════════════════════════════════════════
   LAYOUT — PAT'S Automotive LLC
   Complete section layouts + responsive grid system
   ══════════════════════════════════════════════════════════════ */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 18, 0.92);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  transition: transform var(--duration-fast);
}

.nav-logo-img:hover {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Hamburger ── */

.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: calc(var(--z-modal) + 1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
}

.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);
}

/* ══════════════════════════════════════════
   MOBILE OVERLAY
   ══════════════════════════════════════════ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(9, 12, 17, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: var(--fw-black);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-overlay.is-open a {
  opacity: 1;
  transform: translateY(0);
}

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

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0A0E17 0%, #111827 40%, #1A1F2F 100%);
  z-index: 0;
}

/* Subtle radial glow behind title */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 3rem 0 6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--size-eyebrow);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(220, 38, 38, 0.06);
}

.hero-eyebrow i {
  font-size: 0.9rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  font-size: var(--size-hero-h1);
  line-height: 1.05;
}

.hero-title-line1,
.hero-title-line2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-xblack);
  font-size: var(--size-hero-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.hero-title-line1 {
  color: var(--color-text-primary);
}

.hero-title-line2 {
  color: var(--color-accent);
  -webkit-text-stroke: 0;
  text-shadow: var(--glow-accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  gap: 0.6rem;
  padding: 1rem 2.25rem;
}

/* ── Scroll hint ── */

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--color-accent);
  animation: scrollLine 2.5s ease-in-out infinite;
}

.hero-scroll-hint span {
  font-size: 0.6rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════
   SECTION — Base Styles
   ══════════════════════════════════════════ */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--size-section-h2);
  font-weight: var(--fw-black);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */

.about-section {
  background: var(--color-bg-mid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--size-label);
  font-weight: var(--fw-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: var(--size-section-h2);
  font-weight: var(--fw-black);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.about-body {
  margin-top: 1rem;
}

.about-body p {
  font-size: 1rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ── Stats ── */

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-dim);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--size-stat-num);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ── About visual ── */

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--color-bg-mid) 100%);
  z-index: 1;
  pointer-events: none;
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-badge-label {
  font-size: 0.68rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-badge-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ══════════════════════════════════════════
   SERVICES / TABS SECTION
   ══════════════════════════════════════════ */

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

.tabs-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-dim);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: border-color var(--duration-normal),
              background var(--duration-fast),
              color var(--duration-fast);
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}

.tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

.tab-letter {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.tab-label {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tabs-content {
  position: relative;
}

.tab-panel {
  display: none;
  padding: 2rem 0;
  animation: fadeIn 0.5s var(--ease-out);
}

.tab-panel.active {
  display: block;
}

.tab-panel-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.tab-panel h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.tab-panel > p {
  font-size: 1rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.tab-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tab-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tab-bullets li i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ══════════════════════════════════════════
   GALLERY / WORK SECTION
   ══════════════════════════════════════════ */

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

.gallery-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.gallery-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
}

.gallery-card {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(9, 12, 17, 0.9) 50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gallery-card-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-card-sub {
  font-size: 0.85rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

/* ── Gallery Controls ── */

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-prev,
.gallery-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--duration-fast),
              border-color var(--duration-fast),
              transform var(--duration-fast);
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: var(--color-accent);
  transform: scale(1.08);
}

.gallery-prev:active,
.gallery-next:active {
  transform: scale(0.95);
}

.gallery-counter {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.gallery-current {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* ══════════════════════════════════════════
   REVIEWS / TESTIMONIALS
   ══════════════════════════════════════════ */

.reviews-section {
  background: var(--color-bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(220, 38, 38, 0.35);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-accent);
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-dim);
}

.testimonial-author strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════ */

.contact-section {
  background: var(--color-bg-mid);
  position: relative;
  overflow: hidden;
}

/* Subtle accent glow behind contact */
.contact-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 80vh;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Contact Left ── */

.contact-left .section-label {
  margin-bottom: 0.75rem;
}

.contact-left .section-heading {
  margin-bottom: 0;
}

.contact-left .section-sub {
  margin: 1rem 0 0;
  text-align: left;
  max-width: 480px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-info-text strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info-text span {
  font-size: 0.92rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-info-text a {
  font-size: 0.92rem;
  font-weight: var(--fw-medium);
  color: var(--color-accent);
  transition: color var(--duration-fast);
}

.contact-info-text a:hover {
  color: var(--color-accent-light);
}

/* ── Social Row ── */

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  transition: background var(--duration-fast),
              color var(--duration-fast),
              border-color var(--duration-fast),
              transform var(--duration-fast);
}

.social-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ── Contact Right / Form ── */

.contact-right {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--duration-fast),
              background var(--duration-fast),
              box-shadow var(--duration-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}

/* Validation states */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

#footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border-dim);
  padding: var(--space-lg) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-dim);
}

/* ── Footer Brand ── */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-brand-tagline {
  font-size: 0.88rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 360px;
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-social-links .social-btn {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* ── Footer Nav ── */

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
  padding: 0.15rem 0;
}

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

/* ── Footer Contact ── */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact p {
  font-size: 0.88rem;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact p i {
  color: var(--color-accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact a {
  color: var(--color-accent);
  transition: color var(--duration-fast);
}

.footer-contact a:hover {
  color: var(--color-accent-light);
}

/* ── Footer Bottom ── */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   KEYFRAMES (local, not in animations.css)
   ══════════════════════════════════════════ */

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

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

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.3); }
}

@keyframes statPulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 20px rgba(220, 38, 38, 0.4); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLETS & BELOW  (≤ 1024px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-visual {
    order: -1;
  }

  .about-img-wrap img {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .container { padding: 0 1.25rem; }

  /* ── Nav ── */
  .nav-links { display: none !important; }
  .btn-nav-cta { display: none !important; }
  .hamburger { display: flex !important; align-items: center; justify-content: center; min-height: 44px; }

  /* ── Hero ── */
  .hero {
    min-height: 90vh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding: 2rem 0 4rem;
  }

  .hero-title-line1,
  .hero-title-line2 {
    white-space: normal;
    word-break: break-word;
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }

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

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

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

  /* ── Section headers ── */
  .section-header {
    text-align: left;
    margin-bottom: var(--space-md);
  }

  .section-sub {
    margin: 0;
    font-size: 0.95rem;
  }

  /* ── About ── */
  .about-img-wrap img {
    height: 280px;
  }

  .about-badge {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* ── Tabs ── */
  .tabs-nav {
    flex-direction: column;
    border-bottom: none;
    gap: 0.25rem;
  }

  .tab-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-dim);
    margin-bottom: 0;
  }

  .tab-btn.active {
    border-color: var(--color-accent);
    background: rgba(220, 38, 38, 0.06);
  }

  .tab-bullets {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    padding: 1.5rem 0;
  }

  /* ── Gallery ── */
  .gallery-card img {
    height: 320px;
  }

  .gallery-card figcaption {
    padding: 1.5rem 1rem 1rem;
  }

  /* ── Testimonials ── */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  /* ── Contact ── */
  .contact-right {
    padding: 1.5rem;
  }

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

  .contact-info-list {
    gap: 1rem;
  }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-bottom: var(--space-md);
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand-tagline {
    max-width: 100%;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .hero-title-line1,
  .hero-title-line2 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-item {
    text-align: center;
  }

  .tab-btn {
    min-width: 100%;
  }

  .gallery-card img {
    height: 240px;
  }

  .contact-right {
    padding: 1.25rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }
}