@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 {
  --header-height: 74px;
  --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 ── */
* {
  box-sizing: border-box;
}

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

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

/* ── 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.12;
  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;
}

/* ── HEADER & NAVIGATION ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  color: var(--ink-strong);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
}

.nav-wrap {
  min-height: var(--header-height);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo span {
  line-height: 1.1;
  white-space: nowrap;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 155, 98, 0.16);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  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;
}

.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: var(--header-height);
  left: 0;
  right: 0;
  display: none;
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: #ffffff;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-green-deep);
  background: rgba(15, 155, 98, 0.08);
}

.desktop-only {
  display: none;
}

/* ── UTILITIES ── */
.container {
  width: min(1140px, 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.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
}

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

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

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

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

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

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

/* Big centered logo – transparent background, no white ring */
.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 6px 18px rgba(0, 0, 0, 0.45);
}

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

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

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

.section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-sub,
.section-intro {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 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 cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(30px);
}

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

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  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;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

/* ── 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: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  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;
}

/* ── FACEBOOK FEED PLACEHOLDER ── */
.facebook-feed .feed-shell {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.feed-placeholder-note p:last-child {
  margin-bottom: 0;
}

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

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

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

/* ── CONTACT PAGE / LOCAL INFO ── */
.page-hero,
.contact-cta-block,
.local-info,
.services-reminder {
  background: transparent;
}

.contact-cta-block .container,
.services-reminder .container,
.page-hero .container,
.local-info .container,
.location .container,
.final-cta .container {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.contact-cta-block.alt .container {
  background: rgba(15, 155, 98, 0.08);
}

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

.hours-list li,
.footer-links li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hours-list li:last-child,
.footer-links li:last-child {
  border-bottom: 0;
}

.local-note,
.directions {
  margin-top: 1rem;
}

/* ── FINAL CTA ── */
.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); }
}

/* ── FOOTER ── */
.site-footer {
  background: #0b1c17;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 3rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

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

.site-footer .container {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1rem 1rem 1.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* ── ANIMATIONS ── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 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: 3.5rem;
  }

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

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

  .nav-wrap {
    min-height: var(--header-height);
    height: var(--header-height);
  }

  .site-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-left: auto;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.45rem 0.65rem;
  }

  .site-nav .btn {
    min-height: 42px;
    padding: 0.7rem 1rem;
  }

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

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

  .local-grid,
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 0.9fr;
  }
}
