/* Anabasis Construction — site styles
   Palette: terracotta & clay · warm stone · deep umber slate · brass accents */
:root {
  --terracotta: #a8502f;
  --terracotta-deep: #6e3220;
  --terracotta-night: #4a2015;
  --cream: #faf7f0;
  --stone: #efe9dd;
  --taupe: #b9ad99;
  --slate: #2c211c;
  --slate-soft: #6b5d54;
  --brass: #b08d3f;
  --brass-light: #c9a755;
  --brass-text: #8a6d2c;   /* darker brass for small text — WCAG AA on cream/white */
  --taupe-text: #857863;   /* darker taupe for small labels — WCAG AA on white */
  --line: #e2dccd;
  --radius: 12px;
}

/* Accessibility base */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--terracotta-deep); color: var(--cream);
  padding: 10px 18px; border-radius: 0 0 8px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16.5px;
}

h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--terracotta-deep); color: var(--cream);
  font-weight: 600; letter-spacing: .5px;
  padding: 6px 11px; border-radius: 8px; font-size: 1rem;
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--slate); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
}
.brand-sub { color: var(--slate-soft); font-weight: 500; font-size: .82em; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--slate-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: color .15s;
}
.nav a:hover { color: var(--terracotta-deep); }
.nav-cta {
  background: var(--terracotta-deep); color: var(--cream) !important;
  padding: 9px 18px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--terracotta); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(176,141,63,.14), transparent 60%),
    linear-gradient(165deg, var(--terracotta-night) 0%, var(--terracotta-deep) 55%, #5c2c1e 100%);
  color: var(--cream);
}
.hero-inner { padding: 104px 0 84px; }
.hero-kicker {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-light); font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  line-height: 1.12; font-weight: 600; max-width: 760px;
}
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-sub {
  margin-top: 24px; font-size: 1.18rem; color: #ddd8c9;
  max-width: 640px; font-weight: 400;
}
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 9px; font-size: 1rem;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--slate); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost { border: 1px solid rgba(250,247,240,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--brass-light); color: #fff; }
.btn-brass { background: var(--brass); color: var(--slate); }
.btn-brass:hover { background: var(--brass-light); }

.hero-band { background: rgba(0,0,0,.18); border-top: 1px solid rgba(250,247,240,.12); }
.hero-band-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; padding-top: 26px; padding-bottom: 26px;
}
.hero-band-inner div { display: flex; flex-direction: column; }
.hero-band-inner strong { font-size: 1rem; color: var(--cream); font-weight: 600; }
.hero-band-inner span { font-size: .85rem; color: #b9bfa8; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-stone { background: var(--stone); }
.section-heading { max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; color: var(--brass-text);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--brass-light); }
.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 600; color: var(--slate); line-height: 1.2;
}
.section-lead { color: var(--slate-soft); max-width: 640px; margin-top: 18px; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 3fr 2fr; gap: 52px; margin-top: 40px;
}
.about-copy p { color: var(--slate-soft); }
.about-copy p + p { margin-top: 18px; }
.about-copy p:first-child { color: var(--slate); font-size: 1.08rem; }
.about-side { display: flex; flex-direction: column; gap: 16px; }
.fact {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: 10px; padding: 16px 20px; font-weight: 600; color: var(--slate);
}
.fact-label {
  display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--taupe-text); font-weight: 600;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-top: 44px;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 2px 10px rgba(43,47,42,.05);
}
.card-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem; font-weight: 700; color: var(--brass-text);
  letter-spacing: .06em;
}
.card h3 { color: var(--slate); font-size: 1.35rem; font-weight: 600; margin: 8px 0 10px; }
.card p { color: var(--slate-soft); font-size: .96rem; }

/* ---------- Why pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px 48px; margin-top: 44px;
}
.pillar { border-top: 3px solid var(--terracotta); padding-top: 20px; }
.pillar h3 { font-size: 1.4rem; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.pillar p { color: var(--slate-soft); font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px; margin-top: 40px;
}
.gallery-tile {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    linear-gradient(150deg, #e7e0d1 0%, #ddd4c1 45%, #d3c9b3 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.gallery-tile::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed var(--taupe); border-radius: 8px;
}
.gallery-tile span {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #6f6450; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .95rem;
}

/* ---------- Promise ---------- */
.section-terracotta {
  background:
    radial-gradient(900px 400px at 15% 110%, rgba(176,141,63,.15), transparent 60%),
    linear-gradient(160deg, var(--terracotta-deep) 0%, var(--terracotta-night) 100%);
  color: var(--cream);
}
.section-terracotta h2 { color: var(--cream); }
.promise-list {
  list-style: none; margin-top: 40px; max-width: 780px;
  display: flex; flex-direction: column; gap: 20px;
}
.promise-list li {
  padding: 20px 24px 20px 56px; position: relative;
  background: rgba(250,247,240,.06);
  border: 1px solid rgba(250,247,240,.14);
  border-radius: 10px; color: #ddd8c9; font-size: .99rem;
}
.promise-list li::before {
  content: "✓"; position: absolute; left: 22px; top: 18px;
  color: var(--brass-light); font-weight: 700; font-size: 1.15rem;
}
.promise-list strong { color: var(--cream); }
.promise-cta { margin-top: 36px; }

/* ---------- Contact ---------- */
.section-contact { background: var(--cream); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px; margin-top: 40px;
}
.contact-item {
  display: block; background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--brass);
  border-radius: var(--radius); padding: 24px 26px;
  color: var(--slate); text-decoration: none; font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(43,47,42,.05);
  transition: transform .12s, border-color .15s;
}
a.contact-item:hover { transform: translateY(-2px); border-top-color: var(--terracotta); }
.contact-label {
  display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brass-text); margin-bottom: 8px; font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: #a8ab9f; font-size: .88rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.footer a { color: #cfd2c6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; }

/* ---------- Team Portal ---------- */
.portal-body { background: var(--stone); }
.portal-main { padding: 48px 0 72px; }
.portal-notice {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: 10px; padding: 18px 22px; font-size: .93rem; color: var(--slate-soft);
  margin-bottom: 40px;
}
.portal-notice strong, .portal-notice em { color: var(--slate); }
.portal-title {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 600; color: var(--slate);
}
.portal-lead { color: var(--slate-soft); margin-top: 6px; }
.portal-section + .portal-section { margin-top: 48px; }
.portal-h2 {
  font-size: 1.5rem; font-weight: 600; color: var(--slate); margin-bottom: 6px;
}
.portal-announce {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 24px;
}
.portal-announce h2 {
  font-size: 1.2rem; font-weight: 600; color: var(--terracotta-deep); margin-bottom: 10px;
}
.portal-announce ul { list-style: none; }
.portal-announce li { padding: 6px 0; color: var(--slate-soft); font-size: .95rem; }
.announce-date {
  display: inline-block; background: var(--stone); color: var(--terracotta-deep);
  font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 5px;
  margin-right: 10px; text-transform: uppercase; letter-spacing: .04em;
}
.portal-fineprint { font-size: .8rem; color: var(--taupe-text); margin-top: 10px; }
.portal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px; margin-top: 22px;
}
.portal-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
}
.portal-tile h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.02rem; font-weight: 600; color: var(--slate);
}
.portal-tile p { color: var(--slate-soft); font-size: .88rem; flex: 1; }
.tile-pending {
  align-self: flex-start; font-size: .75rem; font-weight: 600;
  color: var(--taupe-text); background: var(--stone);
  padding: 4px 10px; border-radius: 5px; letter-spacing: .03em;
}
.tile-go {
  align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--brass-text);
}
.portal-tile-link { transition: transform .12s, border-color .15s; }
.portal-tile-link:hover { transform: translateY(-2px); border-color: var(--brass); }
.portal-security {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px;
}
.portal-security ul { list-style: none; margin-top: 14px; }
.portal-security li {
  padding: 8px 0 8px 26px; position: relative; color: var(--slate-soft); font-size: .95rem;
}
.portal-security li::before {
  content: "•"; position: absolute; left: 8px; color: var(--terracotta); font-weight: 700;
}
.portal-security strong { color: var(--slate); }

/* ---------- Nav toggle (mobile) ---------- */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1.3rem; color: var(--slate);
  padding: 8px 14px; cursor: pointer; min-width: 48px; min-height: 44px;
}

/* ---------- Service card CTA ---------- */
.card-cta {
  display: inline-block; margin-top: 14px; font-size: .92rem; font-weight: 600;
  color: var(--brass-text); text-decoration: none;
}
.card-cta:hover { color: var(--terracotta-deep); }

/* ---------- Owner section ---------- */
.owner-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 40px;
  align-items: start;
}
.owner-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(150deg, #e7e0d1 0%, #d3c9b3 100%);
  border: 1px dashed var(--taupe);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.owner-photo span {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #6f6450; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .9rem; line-height: 1.8;
}
.owner-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; font-style: italic; color: var(--terracotta-deep);
  line-height: 1.45; margin-bottom: 20px;
}
.owner-copy p { color: var(--slate-soft); }
.owner-copy p + p { margin-top: 14px; }
.owner-sig { font-weight: 600; color: var(--slate) !important; margin-top: 18px; }

/* ---------- Projects status panel ---------- */
.projects-status {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 38px; margin-top: 36px; max-width: 760px;
}
.projects-status p { color: var(--slate-soft); }
.projects-status p + p { margin-top: 14px; }
.projects-status .btn { margin-top: 24px; }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.project-card img { width: 100%; height: auto; display: block; }
.project-meta { padding: 18px 20px; }
.project-status {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--terracotta-deep); background: var(--stone);
  padding: 3px 10px; border-radius: 5px; margin-bottom: 8px;
}
.project-loc { font-size: .85rem; color: var(--taupe-text); }

/* ---------- Process ---------- */
.process-list {
  list-style: none; margin-top: 44px; max-width: 780px;
  display: flex; flex-direction: column; gap: 26px;
}
.process-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px;
}
.process-list h3 {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.3rem; font-weight: 600; color: var(--slate); margin-bottom: 8px;
}
.step-num {
  font-family: "Inter", system-ui, sans-serif;
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--terracotta-deep); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 600;
}
.process-list p { color: var(--slate-soft); font-size: .96rem; }
.process-cta { margin-top: 36px; }

/* ---------- Testimonials (future) ---------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; font-style: italic; color: var(--slate-soft);
}
.testimonial footer { margin-top: 14px; font-style: normal; font-weight: 600; color: var(--slate); }

/* ---------- Service area ---------- */
.area-copy { max-width: 760px; font-size: 1.05rem; }
.area-copy strong { color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--slate); font-size: 1.02rem;
  padding: 18px 0; list-style: none; position: relative; padding-right: 34px;
  min-height: 44px; display: flex; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px;
  font-size: 1.4rem; color: var(--brass-text); font-weight: 500;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--slate-soft); font-size: .96rem; padding: 0 0 20px; }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid; grid-template-columns: 3fr 2fr; gap: 40px; margin-top: 40px;
  align-items: start;
}
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: 0 2px 10px rgba(43,47,42,.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label {
  font-size: .85rem; font-weight: 600; color: var(--slate); margin-bottom: 6px;
}
.req { color: #a33d2e; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; color: var(--slate);
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; min-height: 46px;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--brass);
}
.form-note { font-size: .82rem; color: var(--taupe-text); margin: 4px 0 18px; }
.contact-form .btn { border: none; cursor: pointer; font-family: inherit; width: 100%; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.4em; }
.form-success { color: var(--terracotta-deep); font-weight: 600; }
.form-error { color: #a33d2e; font-weight: 600; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 14px; box-shadow: 0 10px 24px rgba(43,47,42,.12);
  }
  .nav.nav-open { display: flex; }
  .nav a {
    padding: 13px 28px; font-size: 1rem; min-height: 44px;
    display: flex; align-items: center;
  }
  .nav-cta { margin: 8px 24px 0; justify-content: center; border-radius: 8px; }
  .topbar-inner { position: relative; }
  .about-grid, .owner-grid, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 56px; }
  .section { padding: 64px 0; }
}
