/* ============ Andrew Timko Solutions ============ */

:root {
  --charcoal: #23282d;
  --charcoal-deep: #1a1e22;
  --wood: #b57c46;
  --wood-light: #d19a5f;
  --wood-pale: #f3e9dd;
  --paper: #faf8f5;
  --white: #ffffff;
  --ink: #2c3236;
  --ink-soft: #5c656c;
  --line: #e6e0d8;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 30, 34, 0.08);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--charcoal); }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 0.75rem;
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--wood);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(181, 124, 70, 0.35);
}
.btn-primary:hover { background: var(--wood-light); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--wood-light); color: var(--wood-light); }

.btn-call {
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}
.btn-call:hover { background: var(--wood); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo { height: 40px; width: auto; }

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  color: var(--wood);
}

.site-nav { display: flex; gap: 1.6rem; }

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--wood); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(181, 124, 70, 0.25), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(181, 124, 70, 0.15), transparent 50%),
    linear-gradient(160deg, var(--charcoal-deep), var(--charcoal) 70%);
  color: var(--white);
  padding: clamp(5rem, 12vw, 8.5rem) 0;
}

.hero-inner { max-width: 720px; }

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--wood-light); }

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--wood-light);
  margin-bottom: 0.8rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-top: 2.5rem;
}

.hero-badges li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wood-light);
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--wood-pale);
  color: var(--wood);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Why ---------- */

.why { background: var(--white); border-block: 1px solid var(--line); }

.why-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.why-copy > p { color: var(--ink-soft); margin-top: 1rem; }

.why-list {
  list-style: none;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}

.why-list li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.why-list li strong { color: var(--ink); }
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wood);
  font-weight: 700;
}

.why-panel {
  display: grid;
  gap: 1.2rem;
}

.panel-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wood);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.panel-stat span {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}

/* ---------- Area ---------- */

.area { text-align: center; }
.area .section-lead { margin-inline: auto; }
.area a { color: var(--wood); font-weight: 600; }

/* ---------- Quote ---------- */

.quote {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(181, 124, 70, 0.22), transparent 50%),
    linear-gradient(200deg, var(--charcoal), var(--charcoal-deep));
  color: var(--white);
}

.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.quote-copy h2 { color: var(--white); }
.quote-copy > p { color: rgba(255, 255, 255, 0.78); margin-top: 1rem; max-width: 420px; }

.quote-contact {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.quote-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wood-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.quote-contact a:hover { color: var(--white); }

.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1.1rem;
}

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

.quote-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  width: 100%;
  transition: border-color 0.15s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--wood);
}

.quote-form textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.fs-msg {
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.fs-msg:empty { display: none; }

.fs-success {
  background: #eaf6ec;
  border: 1px solid #bfe3c6;
  color: #22733a;
}

.fs-error {
  background: #fbeeee;
  border: 1px solid #efc7c7;
  color: #a13030;
}

.fs-field-error {
  font-size: 0.78rem;
  font-weight: 500;
  color: #a13030;
}
.fs-field-error:empty { display: none; }

.quote-form [aria-invalid="true"] { border-color: #c85b5b; }

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand-text { color: var(--white); }
.footer-inner p { font-size: 0.88rem; max-width: 340px; margin-top: 0.5rem; }

.footer-contact {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer-contact a {
  color: var(--wood-light);
  text-decoration: none;
  font-weight: 500;
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--wood-light); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .why-inner, .quote-inner { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open a {
    padding: 1rem 4%;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .btn-call { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text { font-size: 0.95rem; }
}
