/* Gateway Power Equipment — shared stylesheet */

:root {
  --color-dark: #1c1b19;
  --color-dark-2: #262420;
  --color-accent: #d0521f;
  --color-accent-dark: #a83f17;
  --color-olive: #5c5f3f;
  --color-tan: #efd1a8;
  --color-cream: #f7f4ee;
  --color-white: #ffffff;
  --color-text: #262420;
  --color-text-muted: #6b6558;
  --color-border: #e3ddce;

  --font-heading: "Oswald", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container-width: 1180px;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(28, 27, 25, 0.08);
  --shadow-lg: 0 10px 30px rgba(28, 27, 25, 0.18);
}

@font-face {
  font-family: "Oswald";
  src: local("Oswald");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Scroll-reveal (fade + slide elements in as they enter the viewport,
   see the [data-reveal] observer in main.js). Staggering between
   siblings is applied via inline transition-delay from JS. Defined early
   so element-specific hover states (e.g. .card:hover) declared later in
   this file win the cascade once an element has finished revealing. */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }

[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
}

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

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--olive {
  background: var(--color-olive);
  color: var(--color-cream);
}

.section--olive h1,
.section--olive h2,
.section--olive h3 {
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.section--dark .eyebrow,
.section--olive .eyebrow {
  color: var(--color-tan);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.max-w-prose { max-width: 65ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--light:hover {
  background: var(--color-cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.top-bar {
  background: var(--color-dark);
  color: var(--color-cream);
  font-size: 0.85rem;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.site-header.is-scrolled .top-bar {
  max-height: 0;
  opacity: 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  gap: 1rem;
  flex-wrap: wrap;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .top-bar .container {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar {
  transition: padding 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .top-bar,
  .top-bar .container,
  .navbar {
    transition: none;
  }
}

.top-bar a:hover {
  color: var(--color-tan);
}

.top-bar__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar__links span,
.top-bar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header.is-scrolled .navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand__name {
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--color-dark);
}

.brand__name small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--color-dark);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent-dark);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links .btn {
  padding: 0.55rem 1.4rem;
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after {
    transition: none;
  }
}

/* Hero */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 55%, var(--color-olive) 130%);
  color: var(--color-white);
  overflow: hidden;
}

.hero h1,
.hero h2,
.hero h3 {
  color: var(--color-white);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__lede {
  font-size: 1.15rem;
  color: rgba(247, 244, 238, 0.85);
  max-width: 46ch;
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art img {
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));
  animation: mascot-float 4s ease-in-out 1s infinite;
}

/* The H1 and the mascot image are the likely LCP (Largest Contentful Paint)
   candidates on these pages, so they render immediately at full opacity --
   fading in an LCP element delays its measured paint time. Only the
   supporting copy around them gets the entrance animation. */
.hero__copy > * {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { opacity: 1; animation: none; }
.hero__copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.45s; }

.page-header .container > * {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.page-header .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-header .container > *:nth-child(2) { opacity: 1; animation: none; }
.page-header .container > *:nth-child(3) { animation-delay: 0.25s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art img,
  .hero__copy > *,
  .page-header .container > * {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Page header (for interior pages) */

.page-header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3.5rem 0 2.5rem;
}

.page-header h1,
.page-header h2,
.page-header h3 {
  color: var(--color-white);
}

.page-header p {
  color: rgba(247, 244, 238, 0.8);
  max-width: 60ch;
}

.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-tan);
  margin-bottom: 0.75rem;
}

/* Cards / grids */

.grid {
  display: grid;
  gap: 1.75rem;
}

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

.merch-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}

.merch-grid img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.merch-grid img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--color-dark);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Team */

.team-member {
  display: flex;
  gap: 2.75rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
}

.team-member:last-child { margin-bottom: 0; }

.team-member--reverse { flex-direction: row-reverse; }

.team-member__photo {
  flex: 0 0 280px;
}

.team-member__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-member__bio { flex: 1; min-width: 0; }

.team-member__role {
  display: block;
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin: 0.35rem 0 1.1rem;
}

.team-member__bio p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.team-member__bio p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .team-member,
  .team-member--reverse {
    flex-direction: column;
  }

  .team-member__photo { flex-basis: auto; max-width: 320px; margin: 0 auto; }
}

/* Testimonials / Google Reviews */

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.rating-stars {
  color: var(--color-accent-dark);
  letter-spacing: 0.1em;
}

.testimonial p {
  font-size: 0.98rem;
  margin: 0.9rem 0 1.1rem;
  color: var(--color-text);
}

.testimonial__author {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-dark);
}

.testimonial__author small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Brands carousel -- an infinite auto-scrolling strip. The track holds the
   6 logos twice back to back; animating it exactly -50% loops seamlessly
   since the second half is an identical copy of the first. */
.brand-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.brand-carousel__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: brand-scroll 30s linear infinite;
}

.brand-carousel:hover .brand-carousel__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel__track {
    animation: none;
  }
}

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-tile {
  flex: 0 0 auto;
  width: 250px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.brand-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.brand-tile img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}

/* Service area chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.section--dark .chip,
.section--olive .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* Check list (services / brands serviced) */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.check-list--brands {
  grid-template-columns: repeat(3, 1fr);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.section--dark .check-list li,
.section--olive .check-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.check-list li small {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.section--dark .check-list li small,
.section--olive .check-list li small {
  color: rgba(247, 244, 238, 0.55);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Placeholder notice (for About / Services pending content) */

.placeholder-notice {
  background: #fdf3e7;
  border: 1px dashed var(--color-tan);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.placeholder-notice strong {
  color: var(--color-accent-dark);
}

/* CTA band */

.cta-band {
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
}

.cta-band h2 { color: var(--color-white); }

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.info-list .label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  display: block;
  margin-bottom: 0.15rem;
}

.hours-table {
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.15rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  color: var(--color-text-muted);
  padding-right: 1.25rem;
  white-space: nowrap;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

form.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-status {
  padding: 0 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.form-status.is-visible {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  padding: 0.85rem 1rem;
}

.form-status.is-success { background: #e8f3e6; color: #2f5c2a; border: 1px solid #bfe0ba; }
.form-status.is-error { background: #fbe7e3; color: #8a2b16; border: 1px solid #f2b7a8; }

@media (prefers-reduced-motion: reduce) {
  .form-status { transition: none; }
}

/* Pricing table (services) */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.pricing-table thead th {
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* Instagram feed (locally-hosted photos, linking out to the real post) */

.insta-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.insta-photo-tile {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-dark-2);
  aspect-ratio: 4 / 5;
}

.insta-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.insta-photo-tile:hover img {
  transform: scale(1.06);
}

.insta-photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 25, 0);
  transition: background 0.2s ease;
}

.insta-photo-tile:hover::after {
  background: rgba(28, 27, 25, 0.15);
}

/* Instagram feed (official Instagram post embeds) */

.insta-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.insta-card-grid > * {
  min-width: 0;
}

/* Real Instagram embeds size themselves; this only applies to the
   placeholder cards shown before real posts are added. */
.insta-card-placeholder {
  min-height: 420px;
  border: 1px dashed rgba(247, 244, 238, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-dark-2), var(--color-olive));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  color: rgba(247, 244, 238, 0.6);
}

.insta-card-placeholder .insta-tile__icon {
  font-size: 2.2rem;
  color: rgba(247, 244, 238, 0.35);
}

.insta-card-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 22ch;
}

.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--color-dark);
  color: rgba(247, 244, 238, 0.75);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-grid a:hover {
  color: var(--color-tan);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 48px;
  background: var(--color-white);
  border-radius: 6px;
  padding: 6px 10px;
}

.footer-brand span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-white);
  font-size: 1rem;
}

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

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
}

.footer-credit a:hover {
  color: var(--color-tan);
}

.footer-credit svg {
  border-radius: 2px;
  flex-shrink: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__badges, .btn-row { justify-content: center; }
  .hero__art { order: -1; }

  .grid--3, .grid--4, .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .insta-card-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-photo-grid > *:last-child { display: none; }
  .check-list--brands { grid-template-columns: repeat(2, 1fr); }
}

/* Nav switches to the hamburger menu well before the horizontal links +
   button row would ever get cramped -- six links plus a pill button needs
   more room than a typical "tablet" breakpoint gives it. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; flex-shrink: 0; }

  .brand { min-width: 0; }
  .brand__name { min-width: 0; overflow-wrap: break-word; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 0.5rem 1.25rem 1.25rem;
    visibility: visible;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease,
      visibility 0s linear 0s;
  }

  .nav-links a { width: 100%; padding: 0.65rem 0; }
  .nav-links .btn { margin-top: 0.5rem; }

  .navbar { position: relative; }

  @media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-links.is-open {
      transition: none;
    }
  }
}

@media (max-width: 720px) {
  .top-bar { display: none; }

  .brand__name { font-size: 0.9rem; }
  .brand__name small { display: none; }

  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .insta-card-grid { grid-template-columns: 1fr; }
  .insta-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-photo-grid > *:last-child { display: block; }
  .check-list, .check-list--brands { grid-template-columns: 1fr; }

  .section { padding: 2.75rem 0; }
}

/* Floating mobile call button */

.mobile-call-btn {
  display: none;
}

@media (max-width: 720px) {
  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 200;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.9rem 1rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform 0.15s ease;
  }

  .mobile-call-btn:active {
    transform: scale(0.97);
  }
}

/* Back-to-top button */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease,
    visibility 0s linear 0.25s;
  z-index: 150;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease,
    visibility 0s linear 0s;
}

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

@media (max-width: 720px) {
  .back-to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: background 0.15s ease;
  }
}
