/* =====================================
   DFIS Granite — Styles (no :root vars)
   ===================================== */

/* Base / reset */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: #f3f3f3; /* warm ivory */
  background: #062b26; /* deep green */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle velvet-like background */
body::before{
  content:"";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 10% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(700px 400px at 90% 30%, rgba(255,255,255,.03), transparent 60%),
    radial-gradient(1000px 800px at 50% 80%, rgba(255,255,255,.04), transparent 65%),
    linear-gradient(135deg, #062b26, #0a3c35);
  filter: saturate(106%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 40px, 1200px); margin-inline: auto; }

/* ================= NAVBAR ================= */
.site-header{
  position: sticky; top: 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  backdrop-filter: blur(6px);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.site-header .nav-surface{
  position: absolute; inset: 0; z-index: -1;
  border-bottom: 1px solid transparent;
  transition: inherit;
}
.site-header.scrolled .nav-surface{
  background: rgba(8, 43, 38, 0.788);
  border-bottom-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.nav-inner{ display: flex; align-items: center; justify-content: space-between; }

.brand{
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; letter-spacing: .02em; font-size: 1.08rem;
}
.brand-mark{
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: radial-gradient(circle at 30% 30%, #d9efe3, #a0cbb6);
  color: #123a31; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 6px 14px rgba(0,0,0,.25) inset, 0 2px 10px rgba(0,0,0,.18);
}
.brand-text strong{ font-weight: 800; }

/* Desktop links */
.nav-desktop{ display: none; gap: 1.4rem; align-items: center; }
.nav-link{ opacity: .95; font-weight: 500; }
.nav-link:hover{ opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
/* Darker default button */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .82rem 1.15rem; border-radius: 999px;
  background: #0b2420;                /* dark teal/green */
  color: #123a31;
  border: 1px solid rgba(0,0,0,.55);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover{
  background: #9c9c9c;                /* slightly darker on hover */
  border-color: rgba(0,0,0,.65);
  transform: translateY(-1px);
}
.btn:active{
  background: #061813;                /* pressed state */
  transform: translateY(0);
}
.btn:focus-visible{
  outline: 2px solid #bfe3cf;         /* subtle mint focus ring for a11y */
  outline-offset: 2px;
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-contrast{
  background: #bfe3cf;       /* mint */
  color: #10352d;            /* dark teal text */
  border-color: rgba(0,0,0,.06);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
}
.btn-large{ padding: 1rem 1.35rem; font-weight: 600; }
.btn-small{ padding: .55rem .9rem; font-size: .92rem; }
.btn-block{ width: 100%; }

/* Mobile trigger (hamburger) */
.nav-toggle{
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
}
.nav-toggle .bar{
  display: block; width: 22px; height: 2px; background: #f4f0ea; margin: 3px 0; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Drawer */
.mobile-drawer{
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
  background: rgba(8,43,38,.96); color: #f4f0ea;
  transform: translateX(100%); transition: transform .35s ease; z-index: 60;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.18);
  z-index: 99999999;
}
.mobile-drawer.open{ transform: translateX(0); }

.drawer-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand--drawer{ font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.drawer-close{
  background: transparent; border: 1px solid rgba(255,255,255,.18); color: #f4f0ea;
  border-radius: 10px; padding: .4rem .6rem; cursor: pointer;
}
.drawer-links{ display: flex; flex-direction: column; gap: .8rem; padding: 1rem 1.25rem 2rem; }
.drawer-link{ padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px dashed rgba(255,255,255,.12); }

/* Scrim (backdrop) */
.scrim{
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55;
}

/* Show desktop nav at ≥ 900px */
@media (min-width: 900px){
  .nav-desktop{ display: flex; }
  .nav-toggle{ display: none; }
}


/* ---------- Page Container (dup ok to keep close) ---------- */
.container { width: min(100% - 40px, 1200px); margin-inline: auto; }

/* ===== Services Hero ===== */
.svc-hero{
  padding: clamp(40px, 6vw, 72px) 0 10px;
  background: #f6faf8;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.svc-hero-grid{
  display: grid; gap: min(6vw, 40px);
  grid-template-columns: 1.1fr .9fr; align-items: start;
}
.svc-title{
  color: #123a31;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: .95; margin: 0;
}
.svc-sub{
  margin: 8px 0 0; line-height: 1.75; color: #1a3f37;
}

/* Circular scroll badge */
.scroll-badge{
  position: relative; margin-top: 18px; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0f2d27; color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.scroll-badge .dot{
  width: 6px; height: 6px; background: #bfe3cf; border-radius: 50%;
}
.scroll-badge .arrow{
  position: absolute; bottom: 8px; font-size: 16px; opacity: .9;
}

/* ===== Stacked Tiles ===== */
.svc-tiles{
  display: grid; gap: 16px; padding: 10px 0 30px;
  background: #ffffff;
}
.svc-tile{
  position: relative; overflow: hidden;
  height: clamp(260px, 48vh, 420px);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  isolation: isolate;
}
.svc-tile img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02); transition: transform .5s ease;
}
.svc-tile::after{
  content:""; position:absolute; inset:0; z-index:0;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
}
.svc-tile:hover img{ transform: scale(1.06); }

.svc-tile-label{
  position: absolute; left: clamp(14px, 4vw, 32px); bottom: clamp(14px, 4vw, 26px); z-index: 1;
  color: #fff; font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.6rem, 6vw, 3rem);
  text-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Make tiles act like clean, full-card links */
.svc-tiles .svc-tile{
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.svc-tiles .svc-tile:focus-visible{
  outline: 3px solid #bfe3cf;     /* accessible focus ring */
  outline-offset: 3px;
}


/* ===== CTA ===== */
.svc-cta{
  background: #062b26; color: #f4f0ea; padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.svc-cta-inner{
  display:flex; align-items:center; justify-content: space-between; gap: 12px;
}
.svc-cta-inner p{ margin: 0; opacity: .95; }
@media (max-width: 760px){
  .svc-cta-inner{ flex-direction: column; align-items: flex-start; }
}

/* Responsive layout */
@media (max-width: 900px){
  .svc-hero-grid{ grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.site-footer{
  background: #062b26; color: #f4f0ea; margin-top: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-grid{
  display: grid; gap: 32px; padding: 28px 0;
  grid-template-columns: 1.2fr .9fr .9fr; align-items: start;
}
.footer-tag{ margin: .6rem 0 0; color: #cdd7d4; max-width: 40ch; }
.footer-heading{
  margin: 0 0 .4rem; font-weight: 700; letter-spacing: .02em; font-size: 1rem;
}
.footer-addr{ font-style: normal; color: #e9e4dd; margin: 0 0 .4rem; }
.footer-phone a{ color: #bfe3cf; text-decoration: none; }
.footer-phone a:hover{ text-decoration: underline; }
.footer-social-links a{ color: #cdd7d4; text-decoration: none; }
.footer-social-links a:hover{ color: #ffffff; text-decoration: underline; }
.footer-social-links .sep{ margin: 0 .5rem; opacity: .6; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  background: #052521; color: #cdd7d4;
}
.footer-bottom-inner{ display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}
/* Accessibility: make inert regions non-interactive */
[inert] {
  pointer-events: none;
  user-select: none;
}
[inert] a,
[inert] button,
[inert] input,
[inert] select,
[inert] textarea {
  pointer-events: none;
}
/* Prevent sideways scroll revealing off-canvas UI */
html, body { overflow-x: hidden; }

/* Safety: never show the mobile drawer on desktop, even if .open is present */
@media (min-width: 900px){
  .mobile-drawer { transform: translateX(100%) !important; }
  .mobile-drawer.open { transform: translateX(100%) !important; }
  .scrim { display: none !important; }
}
/* Services list styling */
.svc-list {
  list-style: none;
  margin: 12px 0 18px;
  padding-left: 0;
}
.svc-list li {
  position: relative;
  margin: 6px 0;
  padding-left: 26px;
}
.svc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.1;
  color: #0f2d27; /* matches dark text used on the light section */
  font-weight: 700;
}
