/* ===== Flagstone Holdings — stylesheet ===== */
:root {
  --navy: #1c2b3a;
  --navy-deep: #142230;
  --gold: #c9a25f;
  --gold-dark: #b08d4c;
  --ink: #1b2530;
  --body: #46535f;
  --muted: #7a8794;
  --line: #e4e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-mid: #eef1f4;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(20, 34, 48, 0.35);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 .6rem;
}

.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #20170a; box-shadow: 0 10px 24px -12px rgba(201,162,95,.9); }
.btn-primary:hover { background: var(--gold-dark); color: #20170a; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: .55rem 1.15rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-deep); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #eef2f6;
  background:
    linear-gradient(135deg, rgba(20,34,48,.93), rgba(20,34,48,.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='%231c2b3a'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23223547' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
  padding: clamp(72px, 11vw, 132px) 0 clamp(60px, 9vw, 104px);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero-lede { font-size: 1.18rem; color: #cdd7e0; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 0; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 1.9rem; font-weight: 800; color: var(--gold); font-family: "Source Serif 4", serif; }
.hero-stats dd { margin: 0; font-size: .9rem; color: #b9c4cf; }

/* ===== Section heads ===== */
.section-head { max-width: 660px; margin: 0 0 2.6rem; }
.section-lede { font-size: 1.08rem; color: var(--body); }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 1.4rem; }
.services { background: var(--bg-soft); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9dee4; }
.card-icon {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--bg-mid);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .96rem; }

/* ===== Steps ===== */
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-block;
  font-family: "Source Serif 4", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}
.step p { margin: 0; font-size: .96rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-weight: 500; color: var(--ink); }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem;
  background: var(--gold); color: #20170a;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
}
.about-card {
  background: var(--navy);
  color: #dfe6ec;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.about-card h3 { color: #fff; }
.about-card .muted { color: #9fb0bf; }
.detail-list { margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.detail-list div { display: grid; gap: .15rem; }
.detail-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.detail-list dd { margin: 0; color: #eef2f6; font-size: .98rem; }

/* ===== Contact ===== */
.contact { background: var(--bg-soft); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.3rem; }
.contact-points li { color: var(--ink); }
.cp-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 700; margin-bottom: .25rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  padding: .75rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,95,.18);
}
.field textarea { resize: vertical; }
.form-note { margin: 1rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #1f7a4d; font-weight: 600; }
.form-note.err { color: #c0392b; font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #b9c4cf; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: clamp(48px, 6vw, 72px) 24px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: var(--gold); }
.footer-brand .muted { color: #93a3b1; margin-top: .9rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { color: #b9c4cf; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact address { font-style: normal; line-height: 1.7; color: #b9c4cf; }
.footer-contact .muted { margin-top: .8rem; color: #93a3b1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: 1.3rem 24px;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: #8595a3; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .main-nav { gap: .9rem; }
  .main-nav a:not(.nav-cta) { display: none; }
  .services-grid, .steps-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
}
