/* Rooted Search Co. shared stylesheet. Used by every page. Mobile-first. */

/* ---------- Tokens ---------- */
:root {
  --forest: #2F4A3A;
  --forest-deep: #24392D;
  --clay: #B5653F;        /* large text, borders, accents only */
  --clay-dark: #9A5232;   /* small text and button backgrounds on cream */
  --cream: #F5EFE4;
  --cream-deep: #EBE2D3;
  --white: #FFFCF7;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --space: clamp(3.5rem, 8vw, 6rem);
  --max: 70rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75em;
  color: var(--forest);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--clay-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow > * { max-width: 46rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--forest);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--cream); }

.button-outline { background: transparent; color: var(--forest); }
.button-outline:hover { background: var(--forest); color: var(--cream); }

.button-clay { background: var(--clay-dark); border-color: var(--clay-dark); color: var(--white); }
.button-clay:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

.button-small { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo img { width: 200px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a:not(.button) {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.button):hover { border-bottom-color: var(--clay); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(181, 101, 63, 0.14), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(47, 74, 58, 0.10), transparent 55%),
    var(--cream);
}

.hero-inner { max-width: 54rem; }

.eyebrow {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.2rem; max-width: 40rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }

.section-tinted { background: var(--cream-deep); }

.section-intro { max-width: 40rem; margin-bottom: 2.25rem; }

.section h2 { position: relative; padding-bottom: 0.5rem; }
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 3px;
  background: var(--clay);
}
.section h2 + p,
.section h2 + .steps { margin-top: 1.25rem; }

/* ---------- Package cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid #DDD2BF;
  border-top: 5px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.card-featured { border-top-color: var(--clay); }

.card h3 { margin-bottom: 0.5rem; }

.card-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 0.4rem;
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50% 0;           /* simple leaf shape */
  background: var(--clay);
}

.fine-print {
  margin-top: 2rem;
  max-width: 46rem;
  font-size: 1rem;
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem 4.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #DDD2BF;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; }

/* ---------- About ---------- */
.about {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--white);
  box-shadow: 0 10px 30px rgba(47, 74, 58, 0.18);
}

.placeholder {
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 2px dashed var(--clay);
  color: var(--clay-dark);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.placeholder-text {
  color: var(--clay-dark);
  font-weight: 600;
}

.testimonial {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p { margin-bottom: 0.4rem; font-family: var(--font-heading); font-size: 1.2rem; }
.testimonial footer { font-size: 0.95rem; }

/* ---------- Service area ---------- */
.area-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.area-list li {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--forest);
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Contact (dark) ---------- */
.section-dark {
  background: var(--forest);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.section-dark a { color: var(--cream); }
.section-dark a:hover { color: #FFFFFF; }
.section-dark :focus-visible { outline-color: var(--cream); }

.contact {
  display: grid;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-list li { margin-bottom: 0.85rem; }

.contact-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.contact-form {
  background: var(--cream);
  color: var(--forest);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field { margin-bottom: 1.1rem; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.optional { font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--forest);
  background: var(--white);
  border: 2px solid #8A9A8F;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--clay);
  outline-offset: 1px;
  border-color: var(--forest);
}

.contact-form .button-clay:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.contact-form :focus-visible { outline-color: var(--clay); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
  font-size: 1rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer :focus-visible { outline-color: var(--cream); }

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 239, 228, 0.25);
  font-size: 0.95rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 48rem) {
  .logo img { width: 240px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 2fr 3fr; gap: 3rem; }
  .about-photo { position: sticky; top: 2rem; }
  .contact { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
  .contact-form { padding: 2rem; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 4.5rem 1.5rem 1.5rem; }
  .step::before { top: 1.5rem; left: 1.5rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
