/* ===========================================================
   Root to Roof Relief — shared stylesheet
   Palette + type derived from the brand flyer:
   forest greens, warm cream, soil brown, near-black roofline ink.
   =========================================================== */

:root {
  --forest-900: #12291b;
  --forest-800: #173820;
  --forest-700: #1c4b2c;
  --forest-600: #276238;
  --forest-500: #357a48;
  --cream-100: #fbf8ee;
  --cream-200: #f5efdc;
  --cream-300: #ecdfba;
  --soil-600: #6b4423;
  --soil-400: #97653a;
  --ink-900: #17190f;
  --sky-100: #e4f0ec;
  --white: #ffffff;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.5rem;

  --shadow-soft: 0 18px 40px -20px rgba(18, 41, 27, 0.35);
  --shadow-card: 0 10px 24px -14px rgba(18, 41, 27, 0.28);

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--forest-800);
  line-height: 1.08;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soil-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--soil-400);
  border-radius: 2px;
}

.hero-copy .eyebrow {
  margin: 0.85rem 0 1.4rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--soil-400);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--forest-600);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--forest-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--forest-700);
  color: var(--forest-800);
}

.btn-outline:hover {
  background: var(--forest-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: var(--cream-200);
  color: var(--forest-800);
}

.btn-on-dark:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 56, 32, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-logo-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(23, 56, 32, 0.08);
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.footer-logo-chip {
  background: var(--cream-100);
  padding: 8px;
  border-radius: 12px;
  display: inline-flex;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.footer-logo-chip img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.05;
  color: var(--forest-800);
  letter-spacing: 0.01em;
}

.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--soil-600);
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest-800);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--soil-400);
  transition: right 0.2s ease;
}

.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest-800);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--cream-200);
}

.phone-pill:hover {
  background: var(--cream-300);
}

.phone-pill svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
}

/* ---------- roofline divider (signature motif) ---------- */

.roofline {
  width: 100%;
  height: 46px;
  display: block;
}

.roofline--flip {
  transform: scaleY(-1);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-200) 100%);
  padding: 4.5rem 0 0;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin: 1rem 0 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--forest-600);
}

.hero-sub {
  font-size: 1.1rem;
  color: #3b4437;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest-700);
}

.hero-trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--soil-500, var(--soil-400));
}

.hero-trust {
  padding: 0;
  margin: 0;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ---------- section shells ---------- */

section {
  position: relative;
}

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

.section-white {
  background: var(--cream-100);
}

.section-pad {
  padding: 5rem 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.75rem;
}

.section-head p {
  margin-top: 0.9rem;
  color: #45503f;
  font-size: 1.05rem;
}

/* ---------- services grid ---------- */

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

.service-card {
  background: var(--cream-100);
  border: 1px solid rgba(23, 56, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--sky-100);
  color: var(--forest-700);
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #4a5442;
  font-size: 0.95rem;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.75rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: #4a5442;
  font-size: 0.95rem;
}

/* ---------- trust band ---------- */

.trust-band {
  background: var(--forest-800);
  color: var(--cream-100);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-grid h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.trust-grid p {
  color: rgba(251, 248, 238, 0.75);
  font-size: 0.95rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--cream-300);
}

/* ---------- final CTA band ---------- */

.cta-band {
  background: var(--forest-900);
  color: var(--cream-100);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: rgba(251, 248, 238, 0.78);
  font-size: 1.08rem;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-900);
  color: rgba(251, 248, 238, 0.72);
  padding: 3rem 0 1.75rem;
  border-top: 1px solid rgba(251, 248, 238, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-word,
.footer-brand .brand-word span {
  color: var(--cream-100);
}

.footer-tagline {
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: var(--cream-100);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.footer-col a {
  text-decoration: none;
  color: inherit;
}

.footer-col a:hover {
  color: var(--cream-100);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 248, 238, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}

/* ---------- contact page ---------- */

.contact-hero {
  background: var(--cream-200);
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.contact-hero .eyebrow {
  justify-content: center;
  display: flex;
}

.contact-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 1rem auto 0.75rem;
  max-width: 22ch;
}

.contact-hero p {
  max-width: 50ch;
  margin: 0 auto;
  color: #45503f;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--forest-800);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.contact-card > p {
  color: rgba(251, 248, 238, 0.78);
  margin-bottom: 1.75rem;
}

.call-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(251, 248, 238, 0.08);
  border: 1px solid rgba(251, 248, 238, 0.18);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: background 0.16s ease, transform 0.16s ease;
}

.call-block:hover {
  background: rgba(251, 248, 238, 0.14);
  transform: translateY(-2px);
}

.call-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.call-block .call-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(251, 248, 238, 0.65);
  margin-bottom: 0.15rem;
}

.call-block .call-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-meta li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: rgba(251, 248, 238, 0.85);
}

.contact-meta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--cream-300);
}

.contact-meta a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(251, 248, 238, 0.35);
}

.contact-meta a:hover {
  border-color: var(--cream-100);
}

.quote-form-card {
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23, 56, 32, 0.08);
}

.quote-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.quote-form-card > p {
  color: #4a5442;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest-800);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(23, 56, 32, 0.18);
  background: var(--white);
  color: var(--ink-900);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(39, 98, 56, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.85rem;
  color: #5c6555;
  margin-top: 0.9rem;
  text-align: center;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest-700);
  text-align: center;
  min-height: 1.2em;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 3rem;
  }

  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 280px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

@media (max-width: 720px) {
  .main-nav ul {
    display: none;
  }

  .phone-pill span {
    display: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .contact-card,
  .quote-form-card {
    padding: 1.75rem;
  }
}
