/* =========================================
   Sammamish Mobile Detailing — Earthy & Simple
   ========================================= */

:root {
  --earth-dark: #2c2416;
  --earth: #3d3224;
  --earth-mid: #4a3f30;
  --earth-light: #5c5040;
  --sage: #6b7c5e;
  --sage-light: #8a9e7a;
  --cream: #f2ebe0;
  --cream-dark: #ddd4c6;
  --warm-white: #faf8f4;
  --tan: #c4a876;
  --tan-light: #d4be92;
  --brown-text: #5a4a3a;
  --muted: #8c7e6e;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--earth-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* =========================================
   Navigation
   ========================================= */

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

.nav.scrolled {
  background: rgba(242, 235, 224, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.nav.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--earth-light);
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--sage);
  color: var(--warm-white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--sage-light) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--earth-dark);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Hero
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(107, 124, 94, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 168, 118, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--earth-dark);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--sage);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--tan), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--sage);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--sage-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--earth-dark);
  border: 1.5px solid var(--cream-dark);
}

.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s;
}

.btn-text:hover {
  color: var(--earth-dark);
}

/* =========================================
   Section Shared
   ========================================= */

.section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--earth-dark);
  margin-bottom: 16px;
}

.section-title em {
  color: var(--sage);
  font-style: italic;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 48px;
}

/* =========================================
   About
   ========================================= */

.about {
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--earth-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-team {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px 28px;
  transition: all 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--earth-dark);
  margin-bottom: 2px;
}

.team-info span {
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-card {
  background: var(--sage);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 6px;
}

.contact-phone {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-white);
  transition: opacity 0.3s;
}

.contact-phone:hover {
  opacity: 0.85;
}

/* =========================================
   Gallery / Before & After
   ========================================= */

.gallery {
  background: var(--cream);
}

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

.comparison {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
}

.comparison.visible {
  opacity: 1;
  transform: translateY(0);
}

.comparison-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.comparison-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.comparison-wrapper::before,
.comparison-wrapper::after {
  position: absolute;
  top: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.comparison-wrapper:hover::before,
.comparison-wrapper:hover::after {
  opacity: 1;
}

.comparison-wrapper::before {
  content: 'Before';
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #f0a0a0;
  backdrop-filter: blur(6px);
}

.comparison-wrapper::after {
  content: 'After';
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #90d090;
  backdrop-filter: blur(6px);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  cursor: ew-resize;
}

.comparison-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.comparison-handle-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.comparison-handle-circle:hover {
  transform: scale(1.08);
}

.comparison-handle-circle svg {
  width: 13px;
  height: 13px;
  color: var(--earth-dark);
}

.comparison-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================
   Services
   ========================================= */

.services {
  background: var(--warm-white);
}

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

.service-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 32px 24px;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

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

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(107, 124, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--sage);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--earth-dark);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================
   Instagram
   ========================================= */

.instagram {
  background: var(--cream);
  text-align: center;
}

.instagram .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.instagram-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.instagram-embed-wrapper {
  max-width: 500px;
  width: 100%;
  background: var(--warm-white);
  border-radius: 12px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-embed-wrapper blockquote {
  width: 100%;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}

.instagram-follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(131, 58, 180, 0.25);
}

.ig-icon {
  width: 18px;
  height: 18px;
}

/* =========================================
   Booking
   ========================================= */

.booking {
  background: var(--warm-white);
}

.booking-flow {
  margin-top: 48px;
}

.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.35;
  transition: all 0.4s var(--ease);
}

.booking-step.active {
  opacity: 1;
}

.booking-step.completed {
  opacity: 0.6;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}

.booking-step.active .step-number {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--warm-white);
}

.booking-step.completed .step-number {
  border-color: var(--tan);
  background: var(--tan);
  color: var(--warm-white);
}

.step-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--earth-dark);
  margin-bottom: 1px;
}

.step-info p {
  font-size: 0.75rem;
  color: var(--muted);
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--cream-dark);
  margin: 0 16px;
  flex-shrink: 0;
}

.booking-panels {
  max-width: 520px;
  margin: 0 auto;
}

.booking-panel {
  display: none;
  animation: fadeUp 0.5s var(--ease);
}

.booking-panel.active {
  display: block;
}

.call-card,
.code-card,
.confirm-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
}

.call-card-inner h3,
.code-card h3,
.confirm-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--earth-dark);
  margin-bottom: 10px;
}

.call-card-inner p,
.code-card p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.phone-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 28px;
  transition: all 0.3s;
}

.phone-display svg {
  width: 24px;
  height: 24px;
}

.phone-display:hover {
  color: var(--sage-light);
}

.code-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.code-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid var(--cream-dark);
  background: var(--warm-white);
  color: var(--earth-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
}

.code-input:focus {
  border-color: var(--sage);
}

.code-input::placeholder {
  color: var(--cream-dark);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.code-error {
  color: #c85050;
  font-size: 0.85rem;
  min-height: 22px;
  margin-bottom: 8px;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(107, 124, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirm-icon svg {
  width: 32px;
  height: 32px;
  color: var(--sage);
}

.confirm-card h3 {
  color: var(--sage) !important;
}

.confirm-details {
  background: var(--warm-white);
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--earth-dark);
}

.confirm-details strong {
  color: var(--sage);
}

/* =========================================
   Footer
   ========================================= */

.footer {
  background: var(--earth-dark);
  color: var(--cream);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 55px;
  margin-bottom: 14px;
  filter: brightness(2.5);
}

.footer-brand p {
  color: var(--muted);
  max-width: 260px;
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--cream);
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--earth-light);
  font-size: 0.75rem;
}

/* =========================================
   Scroll Reveal
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right 0.4s var(--ease);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  }

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

  .hero-logo {
    width: 120px;
  }

  .section {
    padding: 64px 0;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .booking-steps {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0;
  }

  .call-card,
  .code-card,
  .confirm-card {
    padding: 28px 20px;
  }

  .phone-display {
    font-size: 1.35rem;
  }

  .code-input-group {
    flex-direction: column;
  }

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