/* ===== Taylor Detailing — styles ===== */
:root {
  --blue: #1b1486;
  --blue-bright: #2b15b1;
  --maroon: #8a1f3a;
  --maroon-deep: #6f1530;
  --cream: #fdfce5;
  --ink: #14132b;
  --ink-soft: #41405a;
  --muted: #6b6a82;
  --line: #e7e6d4;
  --white: #ffffff;
  --shadow: 0 18px 40px -18px rgba(20, 19, 43, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(20, 19, 43, 0.35);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .brand-text {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em; padding: 14px 28px;
  border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--cream); /* solid banner, exact logo background color */
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, padding .3s ease;
  padding: 10px 0;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 78px; width: auto; object-fit: contain; display: block;
  transition: height .3s ease;
}
.site-header.scrolled .brand-logo { height: 62px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .98rem;
  color: var(--ink); transition: color .2s ease; position: relative;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--maroon); transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--maroon); color: #fff !important; padding: 10px 22px;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--maroon-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,19,43,.86) 0%, rgba(27,20,134,.62) 45%, rgba(20,19,43,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 140px; padding-bottom: 60px; }
.eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; font-size: .8rem; color: #cdc8ff; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; color: #ece9ff; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; font-size: .9rem; color: #d9d5ff; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; font-size: .78rem; color: var(--maroon); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Service cards ===== */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 26px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-bright); }
.svc-card h3 { font-size: 1.4rem; color: var(--blue); margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); margin-bottom: 20px; }
.card-list { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; }
.card-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .95rem; }
.card-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--maroon); font-weight: 800;
}
.svc-card .btn { margin-top: auto; }

/* ===== Gallery ===== */
.grid-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px;
}
.gitem {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow-sm); grid-column: span 1;
}
.gitem[data-span="2"] { grid-column: span 2; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.07); }
.gitem figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(20,19,43,.82));
  color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .92rem;
  opacity: 0; transform: translateY(8px); transition: .3s ease;
}
.gitem:hover figcaption { opacity: 1; transform: translateY(0); }

/* ===== About ===== */
.about { background: #fff; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 30px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--maroon); color: #fff; border-radius: 50%; font-size: .75rem;
  display: grid; place-items: center; font-weight: 800;
}

/* ===== Contact ===== */
.contact { background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.ci-icon {
  width: 44px; height: 44px; display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; flex: none; color: var(--blue-bright);
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--maroon); }
.map-card {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.map-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-bright); }
.map-pin {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--cream); border-radius: 12px; color: var(--maroon);
}
.map-pin svg { width: 22px; height: 22px; }
.map-card-text { display: flex; flex-direction: column; line-height: 1.4; }
.map-card-text strong { font-family: 'Montserrat', sans-serif; color: var(--blue); font-size: 1.02rem; }
.map-card-text span { color: var(--ink-soft); font-size: .9rem; }
.map-go { margin-left: auto; color: var(--maroon); font-size: 1.4rem; font-weight: 800; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .85rem; margin-bottom: 7px; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--cream);
  transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(43,21,177,.12); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfceda; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 56px 24px 36px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-logo { width: 60px; height: 60px; border-radius: 12px; background: var(--cream); padding: 4px; margin-bottom: 14px; }
.footer-brand p { font-size: .95rem; line-height: 1.6; }
.footer-nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.footer-nav a { font-family: 'Montserrat', sans-serif; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; color: #8d8ca0; }
.footer-bottom .container { display: flex; justify-content: center; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12,11,26,.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 22px; right: 30px; background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gitem[data-span="2"] { grid-column: span 2; }

  .brand-logo { height: 60px; }
  .site-header.scrolled .brand-logo { height: 52px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding: 16px 24px 24px; gap: 4px;
    box-shadow: var(--shadow); align-items: stretch;
    clip-path: inset(0 0 100% 0); transition: clip-path .3s ease; pointer-events: none;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav-links a { color: var(--ink) !important; padding: 12px 4px; }
  .nav-cta { text-align: center; margin-top: 8px; color: #fff !important; }
}
@media (max-width: 540px) {
  .section { padding: 70px 0; }
  .grid-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gitem[data-span="2"] { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badges { gap: 14px; font-size: .82rem; }
}
