/* ============================================
   LOGAN & SON USED TIRE SERVICE
   Clean Minimalist · Forest Green + Off-White
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-900: #0d3318;
  --green-800: #1a5c2a;
  --green-700: #227a36;
  --green-600: #2d9944;
  --green-500: #3db854;
  --green-400: #6dd17e;
  --green-100: #d4f5dd;
  --green-50:  #eefbf2;

  --cream: #f7f5f0;
  --cream-light: #faf9f6;
  --cream-dark: #ede9e0;

  --text-dark: #111813;
  --text-mid: #3a4a3f;
  --text-light: #6b7f70;
  --text-muted: #9aaa9e;

  --white: #ffffff;
  --black: #0a0f0c;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 92, 42, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  transition: padding 0.4s var(--ease-out);
}

.nav.scrolled .nav-inner {
  padding: 14px 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  transition: color 0.3s;
}

.nav.scrolled .nav-logo {
  color: var(--green-800);
}

.nav-logo-icon {
  color: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}

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

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

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

.nav.scrolled .nav-links a:hover {
  color: var(--green-800);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav.scrolled .nav-cta {
  border-color: var(--green-800);
  color: var(--green-800);
}

.nav.scrolled .nav-cta:hover {
  background: var(--green-800);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
  transition: color 0.3s;
}

.nav.scrolled .nav-toggle {
  color: var(--green-800);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a2e14 0%, #1a5c2a 25%, #2d9944 50%, #1a5c2a 75%, #0d3318 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 153, 68, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(109, 209, 126, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
}

/* Subtle tire tread pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.5) 40px,
    rgba(255, 255, 255, 0.5) 41px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 28px;
  font-style: italic;
  line-height: 1.05;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Services --- */
.services {
  background: var(--cream-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--white);
  padding: 44px 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--green-50);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
  margin-bottom: 24px;
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--green-800);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- About --- */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green-800);
  font-style: italic;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Why Us --- */
.why {
  background: var(--cream-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--cream-dark);
  border-radius: 20px;
  overflow: hidden;
}

.why-item {
  background: var(--white);
  padding: 52px 44px;
  transition: background 0.3s;
}

.why-item:hover {
  background: var(--green-50);
}

.why-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.why-item:hover .why-num {
  color: var(--green-200, #b8e8c4);
}

.why-item h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0d3318 0%, #1a5c2a 50%, #227a36 100%);
  padding: 100px 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-content .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.cta-content .section-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.contact-item a {
  color: var(--green-700);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream-light);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 153, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--green-800);
  text-align: center;
}

.form-success.show {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Animations --- */
.scroll-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scroll-anim.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream-light);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 1rem;
  }

  .nav-links a:hover {
    color: var(--green-800) !important;
  }

  .nav-cta {
    border-color: var(--green-800) !important;
    color: var(--green-800) !important;
  }

  .nav-cta:hover {
    background: var(--green-800) !important;
    color: var(--white) !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-overlay.show {
    display: block;
  }

  .hero {
    padding: 100px 24px 80px;
    min-height: 90vh;
    min-height: 90dvh;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    aspect-ratio: 16/10;
  }

  .about-stats {
    gap: 24px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    padding: 36px 28px;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
}
