/* =========================
   Base / Theme tokens
========================= */
:root{
  --maxw: 1120px;
  --pad: 16px;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: rgba(0,0,0,0.10);

  --brand: #0f6d3c;
  --brand2: #c62828;

  --h1: 44px;
  --h2: 30px;
  --h3: 22px;
}

/* Minimal reset */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }

.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* =========================
   Typography
========================= */
h1,h2,h3{ line-height:1.15; margin:0 0 10px; }
h1{ font-size: var(--h1); letter-spacing: -0.02em; }
h2{ font-size: var(--h2); letter-spacing: -0.01em; }
h3{ font-size: var(--h3); }
p{ margin:0 0 14px; color: var(--muted); }

/* =========================
   Buttons
========================= */
.btn, button, input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--brand);
  color: #fff;
  cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover{ transform: translateY(-1px); }
.btn:active, button:active, input[type="submit"]:active{ transform: translateY(0); }

.btn--outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--danger{ background: var(--brand2); }

/* =========================
   Top info bar (phones/addresses)
========================= */
.topbar{
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.topbar .container{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content: space-between;
  padding-block: 10px;
  flex-wrap: wrap;
}
.topbar a{ text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   Header / Navigation
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand img{ width: 44px; height: 44px; border-radius: 12px; }

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .15s ease;
}
.nav a:hover{ background: rgba(15,109,60,.08); }

/* Mobile nav toggle (optional) */
.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
  border-radius: 12px;
  padding: 10px 12px;
}

/* =========================
   Hero / Slider
========================= */
.hero{
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__media{
  min-height: 420px;
  background: #111;
  position: relative;
}
.hero__media img{
  width:100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,.20));
}
.hero__content{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-end;
  padding: 30px 0;
}
.hero__content .container{
  position: relative;
  z-index: 1;
  color: #fff;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.hero__content p{ color: rgba(255,255,255,.85); max-width: 60ch; }
.hero__actions{ display:flex; gap:12px; flex-wrap: wrap; }

/* =========================
   Sections
========================= */
.section{
  padding-block: 28px;
}
.section__header{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__header p{ margin:0; }

/* =========================
   Grid Cards
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  min-height: 100%;
}
.card__media img{ width:100%; height: 190px; object-fit: cover; }
.card__body{ padding: 14px; display:flex; flex-direction: column; gap: 8px; }
.card__body p{ margin:0; }
.card__footer{ padding: 14px; padding-top: 0; }

/* =========================
   Testimonials
========================= */
.quote{
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.quote strong{ display:block; margin-bottom: 6px; }
.quote p{ margin:0; }

/* =========================
   Footer
========================= */
.footer{
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: #0b0b0b;
  color: rgba(255,255,255,.88);
}
.footer .container{
  padding-block: 26px;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.footer a{ color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 3px; }
.footer p{ color: rgba(255,255,255,.72); }

/* =========================
   Utilities
========================= */
.muted{ color: var(--muted); }
.center{ text-align:center; }
.spacer{ height: 12px; }
.hr{ height:1px; background: var(--border); border:0; margin: 16px 0; }

/* =========================
   Responsive
========================= */
@media (max-width: 1000px){
  .card{ grid-column: span 6; }
  .footer .container{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  :root{ --pad: 14px; --h1: 30px; --h2: 22px; --h3: 18px; }

  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }

  .hero__media img{ height: 360px; }
  .hero__media{ min-height: 360px; }

  .card{ grid-column: span 12; }
  .footer .container{ grid-template-columns: 1fr; }
}
