/* ==========================================================================
   IronWood Property Repair — Stylesheet
   Design system: confident, professional, Florida Gulf Coast contractor
   Palette: deep forest green, warm cream, charcoal, sage accents
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --ink: #0e1410;
  --ink-soft: #1a221c;
  --paper: #f7f3ec;
  --paper-warm: #efe8db;
  --sage: #6b8e6b;
  --sage-deep: #4d6b4d;
  --sage-soft: #e1ebd9;
  --rust: #b25b3d;
  --gold: #c89a3b;
  --line: #d8d2c4;
  --muted: #6a6a64;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --gutter: 1.5rem;
  --container: 1200px;
  --section: clamp(4rem, 8vw, 7rem);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,20,16,0.06), 0 2px 4px rgba(14,20,16,0.04);
  --shadow-md: 0 4px 8px rgba(14,20,16,0.06), 0 8px 24px rgba(14,20,16,0.08);
  --shadow-lg: 0 10px 20px rgba(14,20,16,0.08), 0 20px 60px rgba(14,20,16,0.12);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-med: 280ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.2rem;
  display: inline-block;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.65) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }
.section--ink .eyebrow { color: var(--sage); }
.section--paper { background: var(--paper-warm); }
.section--sage { background: var(--sage-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: saturate(150%) blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.nav__brand img { width: 38px; height: 38px; background: var(--paper); border-radius: 8px; padding: 4px; }
.nav__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.78;
  transition: opacity var(--t-fast);
  position: relative;
  padding: 0.4rem 0;
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--sage);
}
.nav__cta {
  background: var(--sage);
  color: var(--ink) !important;
  opacity: 1 !important;
  padding: 0.65rem 1.2rem !important;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav__cta:hover { background: #7ea27e; transform: translateY(-1px); }

.nav__toggle { display: none; padding: 0.5rem; }
.nav__toggle svg { width: 28px; height: 28px; stroke: var(--paper); }

@media (max-width: 820px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med), opacity var(--t-med);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu li { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__menu li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav__cta { display: inline-block; }
  .nav__toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: all var(--t-fast);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--sage);
  color: var(--ink);
}
.btn--primary:hover { background: #7ea27e; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ink-on-ink {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--ink-on-ink:hover { background: var(--sage); color: var(--ink); border-color: var(--sage); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.02rem; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img, .hero__bg svg {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,20,16,0.85) 0%, rgba(14,20,16,0.55) 60%, rgba(14,20,16,0.7) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 760px;
}
.hero h1 {
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(247,243,236,0.85);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(247,243,236,0.7);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__trust svg { width: 16px; height: 16px; stroke: var(--sage); }

/* Page hero (sub-pages) */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(107,142,107,0.15), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(200,154,59,0.08), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); margin-bottom: 0.8rem; }
.page-hero p { font-size: 1.1rem; color: rgba(247,243,236,0.8); max-width: 60ch; margin: 0 auto; }

/* ---------- Service Grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-soft);
  border-radius: var(--r-sm);
  margin-bottom: 1.3rem;
}
.service-card__icon svg { width: 26px; height: 26px; stroke: var(--sage-deep); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col--reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col--reverse > :first-child { order: 0; }
}
.two-col__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col__media svg, .two-col__media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Feature blocks (Why choose) ---------- */
.feature-stack { display: grid; gap: 2rem; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}
.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-soft);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.feature__icon svg { width: 22px; height: 22px; stroke: var(--sage-deep); }
.feature h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.trust-bar__item svg { width: 28px; height: 28px; stroke: var(--sage-deep); flex-shrink: 0; }
.trust-bar__item strong { display: block; font-weight: 600; font-size: 0.97rem; }
.trust-bar__item span { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: var(--section) var(--gutter);
}
.cta-banner h2 { margin-bottom: 0.6rem; }
.cta-banner p { font-size: 1.1rem; max-width: 56ch; margin: 0 auto 2rem; opacity: 0.85; }

/* Contact page specific layout */
.contact-layout {
  grid-template-columns: 1fr 1.4fr;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Forms ---------- */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}
.form__field { margin-bottom: 1.1rem; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.form__label .req { color: var(--rust); }
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,142,107,0.15);
}
.form__textarea { min-height: 130px; resize: vertical; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%236a6a64' d='M6 9L1 4h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form__hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.form__submit { width: 100%; justify-content: center; }
.form__success {
  display: none;
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  color: var(--sage-deep);
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.form__success.is-visible { display: block; }
.form__honey { position: absolute; left: -9999px; visibility: hidden; }

/* ---------- Contact info card ---------- */
.contact-card {
  display: grid;
  gap: 1.4rem;
}
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.contact-item:hover { border-color: var(--sage); transform: translateX(2px); }
.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--sage-soft);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item__icon svg { width: 22px; height: 22px; stroke: var(--sage-deep); }
.contact-item strong { display: block; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.contact-item a, .contact-item span { font-weight: 600; font-size: 1.05rem; color: var(--ink); }

.expect {
  background: var(--sage-soft);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.expect h4 { margin-bottom: 0.5rem; }
.expect p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ---------- Service area ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.area-list li {
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.area-list svg { width: 18px; height: 18px; stroke: var(--sage-deep); }

/* ---------- STR feature checks ---------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}
.check-list svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  stroke: var(--sage-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-grid h4 { color: var(--sage); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-grid a { color: rgba(247,243,236,0.78); transition: color var(--t-fast); display: block; padding: 0.3rem 0; font-size: 0.97rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand img { width: 48px; height: 48px; background: var(--paper); border-radius: 8px; padding: 4px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(247,243,236,0.65); font-size: 0.95rem; max-width: 32ch; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(247,243,236,0.55);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.7s var(--t-med) both; }
.reveal-2 { animation: fadeUp 0.7s 0.12s var(--t-med) both; }
.reveal-3 { animation: fadeUp 0.7s 0.24s var(--t-med) both; }
.reveal-4 { animation: fadeUp 0.7s 0.36s var(--t-med) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section) var(--gutter);
}
.notfound__num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 1rem;
}
