@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

/* ============================================================
   NIAGARA'S TIRE CENTER — MAIN STYLESHEET
   ============================================================ */

/* ── TOKENS ── */
:root {
  --brand-green: #0f9b62;
  --brand-green-deep: #0b7a4d;
  --brand-red: #db2f2f;
  --ink-strong: #0f172a;
  --ink-body: #334155;
  --ink-soft: #64748b;
  --bg-page: #f7fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --line-soft: rgba(148, 163, 184, 0.25);
  --line-strong: rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-raise: 0 20px 50px rgba(15, 23, 42, 0.14);
}

/* ── BASE & RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Avenir Next", sans-serif;
  color: var(--ink-body);
  background:
    radial-gradient(1200px 800px at 90% -10%, rgba(15, 155, 98, 0.22), transparent 65%),
    radial-gradient(1000px 600px at 10% 90%, rgba(219, 47, 47, 0.12), transparent 70%),
    linear-gradient(180deg, #f8fcfa 0%, #eef4f0 100%);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── TYPOGRAPHY & LINKS ── */
a {
  color: var(--brand-green-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--brand-red);
}

h1,
h2,
h3 {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.95rem;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 3.8vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--brand-green);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── UTILITIES ── */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  min-height: 47px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-call {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-green) 0%, var(--brand-green-deep) 100%);
  box-shadow: 0 10px 24px rgba(15, 155, 98, 0.33);
}

.btn-call:hover,
.btn-call:focus-visible {
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 155, 98, 0.5);
}

.btn-whatsapp,
.btn-outline {
  color: var(--ink-strong);
  background: #fff;
  border-color: var(--line-strong);
}

.btn-whatsapp:hover,
.btn-outline:hover {
  color: var(--brand-red);
  border-color: rgba(219, 47, 47, 0.45);
  box-shadow: 0 8px 20px rgba(219, 47, 47, 0.12);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1.02rem;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 252, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink-strong);
  min-width: 0;
  flex-shrink: 0;
}

.logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(15, 155, 98, 0.14);
  flex-shrink: 0;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-deep);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.logo-name {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.nav-toggle:hover {
  border-color: var(--brand-green);
  background: rgba(15, 155, 98, 0.05);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-strong);
  transition: all 0.3s ease;
}

.site-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  display: none;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.site-nav.open,
.site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-green-deep);
  background: rgba(15, 155, 98, 0.08);
}

.desktop-only {
  display: none;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.65rem 0.95rem;
  }

  .desktop-only {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .logo-copy {
    display: none;
  }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(8, 14, 28, 0.62) 0%, rgba(9, 18, 38, 0.48) 45%, rgba(11, 122, 77, 0.30) 100%),
    radial-gradient(900px 450px at 78% 18%, rgba(219, 47, 47, 0.10), transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-center {
  text-align: center;
  max-width: 820px;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.hero-logo {
  width: clamp(150px, 32vw, 280px);
  height: auto;
  display: block;
  margin: 0 auto 2.2rem;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(40px);
  animation: hero-logo-fade 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes hero-logo-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-center h1 {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  margin-bottom: 1.2rem;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.18rem, 3.2vw, 1.48rem);
  color: rgba(240, 248, 255, 0.92);
  max-width: 680px;
  margin: 0 auto 2.2rem;
  line-height: 1.55;
}

.hero-trust {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: rgba(175, 225, 200, 0.94);
  font-weight: 600;
  margin-top: 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
}

/* ── SERVICES ── */
.services {
  background: linear-gradient(180deg, #f0fdfa 0%, #e6f5ef 100%);
}

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  background: linear-gradient(145deg, rgba(15, 155, 98, 0.08), rgba(15, 155, 98, 0.03));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 155, 98, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 12px 32px rgba(15, 155, 98, 0.12);
  transition: all 0.28s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 155, 98, 0.24);
  border-color: var(--brand-green);
}

.service-card h3 {
  color: var(--brand-green-deep);
  font-size: 1.28rem;
}

/* ── WHY US ── */
.why-us {
  background: linear-gradient(180deg, #0a3d2a 0%, #062b1d 100%);
  color: #e0f7e9;
}

.why-us h2,
.why-us p {
  color: #ffffff;
}

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

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #e0f7e9;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
}

.why-icon {
  color: #a8e6c8;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── LOCATION / MAP / CTA ── */
.location-grid,
.why-grid,
.local-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.location-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.map-card,
.map-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 155, 98, 0.3);
  background: rgba(15, 155, 98, 0.06);
  box-shadow: var(--shadow-soft);
}

.map-card iframe,
.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.final-cta {
  background: linear-gradient(180deg, #eff8f3 0%, #e6f5ef 100%);
}

.cta-panel {
  max-width: 920px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}

.final-cta .btn-call {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(15, 155, 98, 0.33);
  }
  50% {
    box-shadow: 0 14px 32px rgba(15, 155, 98, 0.5);
  }
}

/* ── CONTACT PAGE ── */
.page-hero {
  padding-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(15, 155, 98, 0.14), transparent 70%),
    linear-gradient(180deg, #f8fcfa 0%, #eef6f1 100%);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .container {
  max-width: 860px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--ink-body);
  max-width: 720px;
  margin: 0 auto;
}

.contact-cta-block {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.contact-cta-block .container {
  max-width: 780px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.contact-cta-block h2 {
  margin-bottom: 0.6rem;
}

.contact-cta-block p:last-child {
  margin-bottom: 0;
}

.contact-cta-block.alt .container {
  background: linear-gradient(145deg, rgba(15, 155, 98, 0.08), rgba(15, 155, 98, 0.03));
  border-color: rgba(15, 155, 98, 0.22);
}

.local-info {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.local-grid > div {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours-list span:first-child {
  font-weight: 700;
  color: var(--ink-strong);
}

.hours-list span:last-child {
  color: var(--ink-body);
  text-align: right;
}

.location .container {
  max-width: 960px;
}

.location h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.directions {
  margin-top: 1.25rem;
  text-align: center;
}

.services-reminder {
  background: linear-gradient(180deg, #eff8f3 0%, #e6f5ef 100%);
  border-top: 1px solid rgba(15, 155, 98, 0.12);
}

.services-reminder .container {
  max-width: 860px;
  text-align: center;
}

.services-reminder p:last-child {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 0;
  background: linear-gradient(180deg, #0b1720 0%, #0f1f2b 100%);
  color: rgba(241, 245, 249, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer-brand-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-brand-top img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.footer-brand h2 {
  margin-bottom: 0.3rem;
}

.footer-tagline,
.footer-address,
.local-note,
.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(241, 245, 249, 0.82);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
}

.footer-address {
  margin-bottom: 0.55rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0 1.2rem;
}

.footer-bottom-wrap p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.72);
}

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .why-grid,
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .local-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.9fr;
    align-items: start;
  }

  .footer-bottom-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 84vh;
  }

  .hero-center h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .contact-cta-block .container,
  .local-grid > div,
  .cta-panel {
    padding: 1.35rem;
  }

  .hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .hours-list span:last-child {
    text-align: left;
  }

  .map-card iframe,
  .map-wrap iframe {
    min-height: 320px;
  }
}