:root {
  --bg: #0f1115;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-soft: #4a5260;
  --line: #e6e8ee;
  --brand: #1a4d8f;
  --brand-deep: #12386a;
  --accent: #c8962e;
  --accent-soft: #f5edd9;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(18, 34, 64, 0.45);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 .6rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(26,77,143,.7); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-family: "Fraunces", serif; font-size: 1.05rem;
}
.brand-name { font-size: 1.06rem; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary { color: #fff; }

.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); transition: .25s var(--ease); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; background:
  radial-gradient(1200px 500px at 80% -10%, var(--accent-soft), transparent 60%),
  linear-gradient(180deg, #fbfcfe, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin: .2rem 0 1rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 2.2rem; }
.hero-trust { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero-trust strong { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--brand-deep); }
.hero-trust span { font-size: .82rem; color: var(--ink-soft); }

.hero-card {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand));
  border-radius: var(--radius); padding: 2rem; color: #fff;
  box-shadow: var(--shadow);
  transform: rotate(.5deg);
}
.hc-row { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.hc-row span { color: rgba(255,255,255,.7); }
.hc-row strong { font-weight: 600; }
.hc-row .accent { color: #f1c66b; }
.hc-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.16); margin: 1.4rem 0 .8rem; overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #f1c66b, var(--accent)); }
.hc-foot { font-size: .82rem; color: rgba(255,255,255,.72); margin: 0; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: #f7f9fc; }
.section-head { max-width: 56ch; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 .6rem; }
.section-sub { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.18rem; margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.listing { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.listing-img { height: 180px; position: relative; background: linear-gradient(135deg, #2a5ea0, #163e72); }
.listing-img.alt2 { background: linear-gradient(135deg, #b9802a, #8a5d14); }
.listing-img.alt3 { background: linear-gradient(135deg, #3b6b58, #234539); }
.listing-img::before { content: attr(data-tag); position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px; }
.listing-body { padding: 1.3rem 1.4rem 1.5rem; }
.listing-body h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.listing-meta { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .8rem; }
.listing-price { font-family: "Fraunces", serif; font-size: 1.35rem; color: var(--brand-deep); margin: 0 0 1rem; }
.listing-link { font-weight: 600; color: var(--brand); font-size: .92rem; }
.listing-link:hover { color: var(--brand-deep); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stats-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 1rem; }
.stats-copy p { color: var(--ink-soft); margin: 0 0 1.6rem; }
.stats-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 0; margin: 0; }
.stats-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.stats-list strong { display: block; font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--brand-deep); line-height: 1; }
.stats-list span { font-size: .9rem; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 1rem; }
.contact-copy p { color: var(--ink-soft); }
.contact-info { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact-info li { display: grid; }
.contact-info span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.contact-info a, .contact-info li { font-weight: 500; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fcfdff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,77,143,.14);
}
.field input.invalid, .field textarea.invalid { border-color: #d04545; }
.form-status { font-size: .9rem; margin: 1rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #1c7a48; }
.form-status.err { color: #d04545; }

/* Footer */
.site-footer { background: var(--bg); color: #c4cad6; padding: 2.5rem 0; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name em { color: #7fa9e0; }
.footer-note { font-size: .88rem; margin: 0; color: #8b93a3; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { font-size: .9rem; color: #c4cad6; transition: color .2s; }
.footer-nav a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .stats-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .listings { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn-primary { margin-top: .8rem; border: 0; }
  .nav-toggle { display: flex; }
  .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); }
}
@media (max-width: 560px) {
  .cards, .stats-list { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
