/* ============================================================
   Malibu Point Auto Detailing — stylesheet
   Mobile-first. Brand colors live in the variables below —
   edit these if the brand palette ever changes.
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-dark: #071527;
  --white: #FFFFFF;
  --neutral: #F4F1EA;   /* light neutral background */
  --neutral-dark: #DCD7CC;
  --text: #17223A;
  --text-muted: #5C6B80;
  --border: #E3DFD4;

  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-dark); }
.btn--ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--large { padding: 16px 30px; font-size: 1.05rem; }
.btn--small { padding: 10px 16px; font-size: 0.85rem; }
.btn--full { display: block; width: 100%; }
.btn:active { transform: scale(0.98); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  border-radius: 4px;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
}
.brand__sub {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 4px;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-nav .btn { margin-top: 12px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    border: 0;
    background: none;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 28px;
  }
  .site-nav a:not(.btn) {
    padding: 0;
    border-bottom: 0;
    font-size: 0.95rem;
  }
  .site-nav .btn { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero__inner { text-align: center; }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #A9B7CC;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__lede {
  color: #D3DAE6;
  max-width: 48ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}
.hero__cta .btn--primary {
  background: var(--white);
  color: var(--navy);
}
.hero__cta .btn--primary:hover { background: var(--neutral); }
.hero__cta .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}
.hero__cta .btn--ghost:hover { background: var(--white); color: var(--navy); }

.hero__points {
  display: grid;
  gap: 20px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.hero__points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__points strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}
.hero__points span {
  color: #B9C3D6;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .hero__cta { flex-direction: row; justify-content: center; }
  .hero__points { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .hero__points li { align-items: center; }
}

@media (min-width: 860px) {
  .hero { padding: 96px 0 80px; }
  .hero h1 { font-size: 2.75rem; }
}

/* ---------- Sections ---------- */
.section,
.hero { scroll-margin-top: 64px; }
.section { padding: 56px 0; }
.section--alt { background: var(--neutral); }
.section h2 {
  font-size: 1.7rem;
  text-align: center;
}
.section__lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.section__lede em { color: var(--text); font-style: normal; font-weight: 600; }

@media (min-width: 860px) {
  .section { padding: 84px 0; }
  .section h2 { font-size: 2.1rem; }
}

/* ---------- What's Included ---------- */
.included-grid {
  display: grid;
  gap: 20px;
}
.included-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.included-card h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

@media (min-width: 700px) {
  .included-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-card__desc { color: var(--text-muted); font-size: 0.9rem; }
.price-list { margin-bottom: 20px; flex-grow: 1; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-list li:last-child { border-bottom: 0; }
.price-list strong {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 32px;
}
.gallery-pair__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-pair__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-pair figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

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

/* ---------- Book / Contact ---------- */
.book {
  display: grid;
  gap: 40px;
}
.book__intro .btn { margin-bottom: 24px; }
.book__alt-contact {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.95rem;
}
.book__alt-contact p { margin: 0 0 4px; color: var(--text-muted); }
.book__alt-contact a { font-weight: 600; color: var(--navy); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form h3 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 14px 0 6px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--neutral);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.contact-form button { margin-top: 20px; }

@media (min-width: 900px) {
  .book { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #C9D1E0;
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__sub { color: #A9B7CC; }
.site-footer__area { margin: 0; font-size: 0.9rem; }
.site-footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
}
.site-footer__ig:hover { color: #A9B7CC; }
.site-footer__copy {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #8393AC;
}

@media (min-width: 700px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
