/* ===== Tierra Tax & Advisory — prototype styles ===== */

:root {
  --cream:    #faf5ed;
  --sand:     #f1e7d8;
  --clay:     #b9603f;   /* terracotta accent */
  --clay-dk:  #9c4d31;
  --sage:     #5f6f55;   /* deep green */
  --sage-dk:  #485239;
  --ink:      #2c2722;   /* near-black text */
  --muted:    #6f655a;
  --line:     #e3d7c6;
  --radius:   14px;
  --shadow:   0 18px 40px -24px rgba(44, 39, 34, 0.45);
  --maxw:     1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: var(--clay-dk); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 12px 24px -14px var(--clay);
}
.btn-primary:hover { background: var(--clay-dk); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-dk); }
.btn-block { width: 100%; text-align: center; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 237, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  color: var(--clay);
  font-size: 1.5rem;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.3rem; }
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--clay-dk); }
.nav-cta {
  padding: 9px 20px;
  background: var(--sage);
  color: #fff !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sage-dk); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(120% 90% at 90% 0%, var(--sand) 0%, transparent 55%),
    var(--cream);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  margin: 0 0 22px;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px dashed var(--clay);
  background: linear-gradient(160deg, var(--sand), #e7d9c4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--clay-dk);
  padding: 24px;
  box-shadow: var(--shadow);
}
.photo-placeholder span { font-weight: 600; font-size: 1.1rem; }
.photo-placeholder small { color: var(--muted); max-width: 22ch; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Section heads ===== */
.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.light h2,
.section-head.light p { color: var(--cream); }
.section-head.light p { opacity: 0.85; }

/* ===== About ===== */
.about { padding: clamp(56px, 9vw, 104px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}
.about-aside h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin: 0 0 22px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.badges li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  width: fit-content;
  color: var(--sage-dk);
}
.about-body p { margin: 0 0 18px; font-size: 1.05rem; }
.about-body .big { font-size: 1.28rem; color: var(--ink); }

/* ===== Services ===== */
.services { padding: clamp(56px, 9vw, 104px) 0; background: var(--sand); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.4rem; margin: 0 0 12px; color: var(--clay-dk); }
.card p { margin: 0; color: var(--muted); }
.services-note {
  margin: 34px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Why / values ===== */
.why { padding: clamp(56px, 9vw, 104px) 0; background: var(--sage); color: var(--cream); }
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 44px;
}
.value-mark {
  font-size: 1.5rem;
  color: var(--cream);
  opacity: 0.6;
}
.value h3 { margin: 8px 0 6px; font-size: 1.3rem; color: #fff; }
.value p { margin: 0; opacity: 0.85; }

/* ===== Contact ===== */
.contact { padding: clamp(56px, 9vw, 104px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 14px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 28px; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span {
  min-width: 92px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--clay-dk); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-form {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-dk);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
  border-color: transparent;
}
.form-fine { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* Form status line — subtle by default, a clear colored box after submit */
.form-status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 11px 13px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.form-status.is-notice  { background: #fbe7d8; color: #8a5326; }
.form-status.is-success { background: #e3ede0; color: #3f5233; }
.form-status.is-error   { background: #f6ded7; color: #8f3a2a; }

/* International phone widget spans the full field width */
.iti { width: 100%; }
.iti__country-list { text-align: left; }

/* Honeypot — hidden from real users, visible to dumb spam bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 40px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-size: 1.25rem; color: var(--cream); }
.footer-tag { margin: 4px 0 0; color: #b8aa97; font-size: 0.95rem; }
.footer-fine { margin: 0; color: #9a8d7c; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 5vw, 40px) 20px;
    display: none;
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 8px 0; width: 100%; }

  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
