/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ===== Variables ===== */
:root {
  --primary: #1E3A5F;
  --primary-dark: #16304f;
  --accent: #A37B40;
  --accent-dark: #8a6531;
  --bg: #FBFAF7;
  --surface: #F3EFE8;
  --text: #0F1929;
  --muted: #5F6E81;
  --line: #E6E1D7;
  --line-strong: #d4cdbe;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(15, 25, 41, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 25, 41, 0.10);
  --container: 1180px;
  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Base typography ===== */
body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; color: var(--primary); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
strong { color: var(--text); }

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

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.section { padding: 66px 0; }
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { font-size: 1.06rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--primary); padding: 0 6px; min-height: 44px; }
.btn-ghost .arw { transition: transform .2s ease; }
.btn-ghost:hover { color: var(--accent-dark); }
.btn-ghost:hover .arw { transform: translateX(4px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--primary); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { font-family: var(--ff-head); font-weight: 700; font-size: 1.24rem; letter-spacing: 0; }
.brand-suffix { color: var(--accent-dark); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 13px; font-weight: 500; font-size: 0.95rem; color: var(--text); border-radius: var(--radius);
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--accent-dark); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang-btn { padding: 6px 11px; font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.lang-btn.is-active { background: var(--primary); color: #fff; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; }
.burger span { display: block; width: 23px; height: 2px; background: var(--primary); margin: 0 auto; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta { display: none; }

/* ===== Hero (H5 centred) ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(163,123,64,0.10), rgba(251,250,247,0) 55%),
    linear-gradient(180deg, rgba(30,58,95,0.035), rgba(251,250,247,0) 40%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(30,58,95,0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 75%);
          mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 75%);
}
.hero-inner {
  position: relative; text-align: center;
  max-width: 780px; margin: 0 auto;
  padding: 58px 0 34px;
  display: flex; flex-direction: column; align-items: center;
}
.hero .eyebrow { justify-content: center; }
.hero h1 { margin: 20px 0 18px; }
.hero-lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.hero-media {
  position: relative; margin: 4px 0 30px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: clamp(230px, 44vw, 480px); object-fit: cover; }

.hero-pillars {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 8px 0 4px;
}
.hero-pillars li { background: var(--bg); padding: 20px 22px; }
.pillar-k { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1.14rem; color: var(--primary); }
.pillar-v { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 2px; }

/* ===== About ===== */
.about-grid { display: grid; gap: 34px; align-items: start; }
.about-copy p + p { margin-top: 14px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card-label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 14px 16px; }
.fact dt { font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact dd { font-weight: 600; color: var(--text); margin-top: 3px; font-size: 0.98rem; word-break: break-word; }

/* ===== Services (S2 numbered list) ===== */
.services { background: var(--surface); }
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.svc-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 26px 4px; border-bottom: 1px solid var(--line-strong);
  transition: background .2s ease;
}
.svc-item:hover { background: rgba(255,255,255,0.55); }
.svc-num {
  font-family: var(--ff-head); font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.svc-body h3 { color: var(--primary); margin-bottom: 6px; }
.svc-body p { font-size: 0.99rem; max-width: 720px; }
.svc-media {
  grid-column: 1 / -1; width: 100%; height: 190px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); margin-top: 4px;
}

/* ===== Approach ===== */
.approach { background: var(--bg); }
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px; box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.95rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(163,123,64,0.12); color: var(--accent-dark);
  margin-bottom: 16px;
}
.step h3 { color: var(--primary); margin-bottom: 6px; }
.step p { font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--primary); color: #e7edf4; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #d8c39c; }
.contact .eyebrow::before { background: var(--accent); }
.contact-grid { display: grid; gap: 34px; }
.contact-intro p { color: #b6c3d4; font-size: 1.05rem; }
.contact-points { margin-top: 22px; }
.contact-points li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.12); color: #d5deea; font-size: 0.98rem; }
.contact-points svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.contact-points a:hover { color: #fff; text-decoration: underline; }

.form { background: #fff; color: var(--text); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .req { color: var(--accent-dark); }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163,123,64,0.18); }
.field textarea { min-height: 108px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.consent label { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.consent a { color: var(--accent-dark); text-decoration: underline; }
.form .btn { width: 100%; }
.form-status { margin-top: 12px; font-size: 0.9rem; font-weight: 600; min-height: 1.1em; }
.form-status.ok { color: #1f7a44; }
.form-status.err { color: #c0392b; }

/* ===== Location ===== */
.location { background: var(--surface); }
.map-wrap { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); height: 360px; }
.map-frame { display: block; width: 100%; height: 100%; border: 0; }
.map-chip { position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 3px; background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: calc(100% - 36px); }
.map-chip strong { color: var(--primary); font-family: var(--ff-head); }
.map-chip span { font-size: 0.9rem; color: var(--muted, #4a5568); }
.map-chip .map-cta { color: var(--accent-dark); font-weight: 600; margin-top: 4px; text-decoration: none; }
.map-chip .map-cta:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: #b3bccb; padding: 52px 0 26px; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #8a95a6; font-size: 0.95rem; margin-top: 14px; max-width: 380px; }
.footer-col h4 { font-family: var(--ff-body); font-size: 0.77rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-col ul li { padding: 5px 0; font-size: 0.94rem; word-break: break-word; }
.footer-col a:hover { color: #fff; }
.legal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #8a95a6; }
.legal-row a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 22px 18px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .main-nav a:last-child { border-bottom: none; }
}

@media (min-width: 640px) {
  .hero-pillars { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .legal-row { flex-wrap: nowrap; }
}

@media (min-width: 900px) {
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .section { padding: 88px 0; }
  .hero-inner { padding: 84px 0 46px; }
  .hero-pillars { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1.25fr 0.95fr; gap: 54px; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; }
  .svc-item { grid-template-columns: auto 1fr auto; gap: 28px; padding: 30px 8px; align-items: center; }
  .svc-num { font-size: 2.4rem; align-self: start; }
  .svc-media { grid-column: auto; width: 240px; height: 150px; margin-top: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .map-wrap { height: 420px; }
}

@media (min-width: 1200px) {
  .about-grid { gap: 64px; }
}
