/* V24 Hand-Crafted / Anti-AI - Highway 1 Digital */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=DM+Sans:wght@400;500;700&display=optional');

:root {
  --cream: #fef9ef;
  --ink: #2d2d2d;
  --marker: #fff3a3;
  --red: #e74c3c;
  --blue: #5dade2;
  --rule: #e8e0d0;
  --tape: #d4c9a8;
  --shadow: 0 4px 14px rgba(0,0,0,0.12);
  --font-heading: 'Caveat', cursive;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image: repeating-linear-gradient(transparent, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--ink); color: #fff;
  border-radius: 0 0 6px 6px; font-weight: 700;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.marker { background: linear-gradient(transparent 60%, var(--marker) 60%); padding: 0 4px; }
.squiggle { display: block; width: 200px; height: 12px; margin: 4px auto 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 2px dashed var(--rule);
  padding: 0.75rem 0; contain: layout style;
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.nav__links { display: flex; gap: 1.5rem; align-items: center; }
.nav__links a {
  font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink);
  text-decoration: none; position: relative;
}
.nav__links a:hover::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--red);
}
.nav__links a:hover { text-decoration: none; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink); border-radius: 20px;
  font-family: var(--font-heading); font-size: 1.1rem;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  background: transparent; color: var(--ink);
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: #444; text-decoration: none; }
.btn--outline:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sticky Note */
.sticky-note {
  background: var(--marker); padding: 1.5rem; box-shadow: var(--shadow);
  position: relative;
}
.sticky-note::before {
  content: ''; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%); width: 60px; height: 20px;
  background: var(--tape); opacity: 0.7; border-radius: 2px;
}

/* Stamp */
.stamp {
  display: inline-block; border: 4px double var(--red);
  color: var(--red); padding: 0.75rem 2rem; text-transform: uppercase;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  transform: rotate(-5deg); opacity: 0.85; letter-spacing: 2px;
  background: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
}
.stamp:hover { opacity: 1; transform: rotate(-2deg) scale(1.05); text-decoration: none; }

/* Torn edge */
.torn-edge {
  clip-path: polygon(0 0,100% 0,100% calc(100% - 12px),92% 100%,84% calc(100% - 8px),76% 100%,68% calc(100% - 6px),60% 100%,52% calc(100% - 10px),44% 100%,36% calc(100% - 7px),28% 100%,20% calc(100% - 9px),12% 100%,4% calc(100% - 5px),0 100%);
}

/* Hero */
.hero {
  text-align: center; padding: 5rem 0 4rem; contain: layout style;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 0.5rem; }
.hero p { font-size: 1.15rem; max-width: 560px; margin: 1rem auto 2rem; opacity: 0.85; }

/* Sections */
section { padding: 4rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center; margin-bottom: 2.5rem;
}

/* Stats */
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-note { text-align: center; }
.stat-note .number {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700;
  color: var(--red); display: block;
}
.stat-note .label { font-size: 0.9rem; margin-top: 0.25rem; }

/* Services Grid */
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.service-card {
  background: #fff; padding: 2rem 1.5rem 2.5rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--red); transition: transform 0.3s;
  contain: content;
}
.service-card:hover { transform: rotate(0) scale(1.01); }
.service-card:nth-child(odd) { transform: rotate(-1deg); }
.service-card:nth-child(even) { transform: rotate(0.5deg); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: #555; margin-bottom: 1rem; }
.service-card .check { color: var(--red); font-weight: 700; margin-right: 6px; }
.service-card ul { list-style: none; }
.service-card li { padding: 0.2rem 0; font-size: 0.9rem; }

/* Testimonials */
.testimonials__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.testimonial-note { font-style: italic; }
.testimonial-note .quote { font-size: 2rem; color: var(--red); line-height: 1; }
.testimonial-note cite {
  display: block; margin-top: 1rem; font-style: normal; font-weight: 700;
  font-family: var(--font-heading); font-size: 1.1rem;
}
.testimonial-note .role { font-size: 0.8rem; color: #666; font-style: normal; }

/* CTA */
.cta-section { text-align: center; padding: 5rem 0; contain: layout style; }
.cta-section p { font-size: 1.1rem; max-width: 480px; margin: 0 auto 2rem; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start; }
.letter-form {
  background: #fff; padding: 2.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--rule); position: relative;
}
.letter-form::before {
  content: ''; position: absolute; top: 0; left: 60px; right: 60px;
  height: 3px; background: var(--red);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-family: var(--font-heading); font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: none; border-bottom: 2px solid var(--rule);
  padding: 0.5rem 0.25rem; font-family: var(--font-body); font-size: 1rem;
  background: transparent; color: var(--ink); transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-bottom-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.contact-sticky { margin-top: 1rem; }
.contact-sticky p { margin: 0.5rem 0; }

/* Arrow SVG */
.hand-arrow { display: block; width: 60px; margin: 1.5rem auto; }

/* Page Hero */
.page-hero { padding: 4rem 0 2rem; text-align: center; contain: layout style; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

/* Footer */
.footer {
  border-top: 2px dashed var(--rule); padding: 2rem 0 5rem;
  text-align: center; font-size: 0.9rem; color: #888;
  contain: layout style;
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--cream);
  border-top: 2px solid var(--rule);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; text-decoration: none; font-size: 0.7rem;
  font-family: var(--font-heading); color: #888;
}
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.mobile-nav__item--active { color: var(--red); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal--visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links--open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 2px dashed var(--rule);
    padding: 1.5rem; gap: 1rem;
  }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card { transform: none !important; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
