/* styles.css */

/* =========================
   TOKENS
   Fast premium system fonts
   ========================= */
:root{
  --bg: #fbfaf7;
  --bg2: #f3f0e9;
  --card: #ffffff;

  --ink: #0f1720;
  --muted: #4b5a6a;

  --brand: #0f2b3f;      /* deep ocean */
  --brand2: #d77a3f;     /* warm copper */
  --brandSoft: #eaf1f5;

  --line: #e6e2d9;
  --line2: #d9d3c6;

  --radiusL: 18px;
  --radiusM: 14px;

  --shadow: 0 18px 30px rgba(15,23,32,.10);
  --shadowSoft: 0 10px 18px rgba(15,23,32,.06);

  --container: 1120px;

  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --h1: clamp(34px, 5.2vw, 56px);
  --h2: clamp(24px, 3.6vw, 40px);
  --lead: clamp(16px, 2.2vw, 19px);
}

/* Soft background */
:root::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 14% 10%, rgba(15,43,63,.10), transparent 60%),
    radial-gradient(720px 520px at 86% 16%, rgba(215,122,63,.12), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

/* =========================
   RESET
   ========================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background: transparent;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
button, input, select, textarea{ font: inherit; }
main{ display:block; }

/* =========================
   LAYOUT
   ========================= */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.section{ padding: 64px 0; }
.no-scroll{ overflow: hidden; }

/* =========================
   ACCESSIBILITY
   ========================= */
.skip-link{
  position: absolute;
  top: 0; left: 0;
  background: white;
  color: var(--brand);
  padding: 12px 18px;
  z-index: 9999;
  font-weight: 800;
  border: 1px solid var(--line);
  border-bottom-right-radius: 10px;
  transform: translateY(-120%);
  transition: transform .2s ease;
  box-shadow: var(--shadowSoft);
}
.skip-link:focus{ transform: translateY(0); }

/* =========================
   HEADER
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Brand */
.brand{ display:flex; align-items:center; gap: 12px; }
.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, #18445f 100%);
  color: white;
  display:grid;
  place-items:center;
  box-shadow: 0 10px 20px rgba(15,43,63,.18);
}
.brand-mark svg{ width: 22px; height: 22px; color: white; }
.brand-text{ display:flex; flex-direction: column; line-height: 1.1; }
.brand-name{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 18px;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* Desktop nav */
.nav{ display:none; align-items:center; gap: 14px; }
.nav-link{
  font-weight: 800;
  color: rgba(15,23,32,.72);
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover{
  color: var(--brand);
  background: var(--brandSoft);
}

/* Mobile toggle */
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: background .2s ease;
}
.nav-toggle:hover{ background: var(--bg2); }
.nav-toggle-line{
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 2px 0;
  display:block;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm{ padding: 10px 14px; font-size: 13px; }

.btn--primary{
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 12px 20px rgba(15,43,63,.20);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15,43,63,.26);
}
.btn--outline{
  background: white;
  color: var(--ink);
  border-color: var(--line2);
}
.btn--outline:hover{
  border-color: rgba(15,43,63,.45);
  background: var(--brandSoft);
  color: var(--brand);
}
.btn--ghost{
  background: transparent;
  color: var(--brand);
  border-color: transparent;
}
.btn--ghost:hover{
  background: rgba(15,43,63,.08);
}
.btn--full{ width: 100%; }

/* =========================
   MOBILE NAV
   ========================= */
.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,23,32,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-nav.is-open{
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner{
  width: min(100% - 32px, 420px);
  margin: 86px auto 0;
  background: white;
  border-radius: var(--radiusL);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display:grid;
  gap: 10px;
  transform: translateY(10px);
  transition: transform .2s ease;
}
.mobile-nav.is-open .mobile-nav-inner{ transform: translateY(0); }

.mobile-nav-inner a{
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--bg2);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}
.mobile-nav-inner a.btn--primary{ background: var(--brand); color: white; }

/* =========================
   HERO
   ========================= */
.hero{ padding-top: 54px; }
.hero-grid{
  display:grid;
  gap: 34px;
  align-items: start;
}
.hero-copy{ max-width: 620px; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(15,43,63,.08);
  border: 1px solid rgba(15,43,63,.14);
  padding: 8px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.h1{
  font-family: var(--serif);
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.h1-soft{
  display:block;
  margin-top: 6px;
  color: rgba(15,23,32,.75);
  font-weight: 700;
}
.lead{
  font-size: var(--lead);
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 56ch;
}
.hero-cta{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.trust-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: rgba(15,23,32,.72);
  font-weight: 800;
  font-size: 14px;
}
.trust{ display:flex; align-items:center; gap: 8px; }
.dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--brand2); }
.dot--soft{ background: rgba(15,23,32,.25); }

.hero-visual{
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.hero-media{
  border-radius: var(--radiusL);
  border: 1px solid var(--line);
  box-shadow: var(--shadowSoft);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(900px 520px at 22% 20%, rgba(215,122,63,.20), transparent 55%),
    radial-gradient(900px 520px at 78% 18%, rgba(15,43,63,.18), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f3efe7 100%);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.0), rgba(255,255,255,.0)),
    url("./hero-office.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.visual-card{
  margin-top: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  box-shadow: var(--shadowSoft);
  padding: 18px;
}
.visual-card-top{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pill{
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: rgba(15,23,32,.76);
}
.visual-card-mid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.metric-label{
  display:block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(15,23,32,.55);
  margin-bottom: 4px;
}
.metric-value{
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.mini-list{ display:grid; gap: 8px; }
.mini-item{
  background: rgba(215,122,63,.12);
  border: 1px solid rgba(215,122,63,.20);
  color: rgba(15,23,32,.82);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
}

/* =========================
   SECTION HEAD
   ========================= */
.section-head{
  max-width: 740px;
  margin-bottom: 26px;
}
.h2{
  font-family: var(--serif);
  font-size: var(--h2);
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.sub{
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* =========================
   ABOUT
   ========================= */
.about-grid{
  display:grid;
  gap: 14px;
}
.about-card{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}
.h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.p{
  margin: 0;
  color: rgba(15,23,32,.78);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================
   SERVICE CARDS
   ========================= */
.cards-grid{
  display:grid;
  gap: 14px;
}
.card{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  padding: 20px;
  box-shadow: var(--shadowSoft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(15,43,63,.22);
}
.icon{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(15,43,63,.10);
  color: var(--brand);
  display:grid;
  place-items:center;
  margin-bottom: 14px;
  border: 1px solid rgba(15,43,63,.14);
}
.icon svg{ width: 24px; height: 24px; }

/* Callout */
.callout{
  margin-top: 18px;
  border-radius: var(--radiusL);
  background:
    linear-gradient(135deg, rgba(15,43,63,.10) 0%, rgba(215,122,63,.12) 100%),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadowSoft);
  padding: 18px;
}
.callout-inner{
  display:grid;
  gap: 12px;
}
.callout-title{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.callout-text{ margin: 0; color: rgba(15,23,32,.78); }
.callout-actions{ display:flex; flex-wrap: wrap; gap: 10px; }

/* =========================
   TEAM
   ========================= */
.team-grid{
  display:grid;
  gap: 14px;
}
.team-card{
  display:grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items:start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}
.avatar{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #18445f 100%);
  color: white;
  display:grid;
  place-items:center;
  font-weight: 950;
  letter-spacing: .02em;
}
.team-name{ margin-bottom: 6px; }
.team-role{
  margin: 0 0 10px;
  font-weight: 900;
  color: rgba(15,23,32,.70);
  font-size: 13.5px;
}
.team-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================
   STEPS
   ========================= */
.steps{
  display:grid;
  gap: 12px;
}
.step{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}
.step-num{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(215,122,63,.14);
  border: 1px solid rgba(215,122,63,.22);
  color: var(--brand);
  display:grid;
  place-items:center;
  font-weight: 1000;
}

/* =========================
   LIST GRID
   ========================= */
.list-grid{
  display:grid;
  gap: 10px;
}
.list-item{
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadowSoft);
  font-weight: 900;
  color: rgba(15,23,32,.82);
}

/* =========================
   FAQ
   ========================= */
.faq{ display:grid; gap: 10px; }
.faq-item{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  box-shadow: var(--shadowSoft);
  overflow: hidden;
}
.faq-item summary{
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 1000;
  color: var(--brand);
}
.faq-item[open] summary::after{ content: "–"; }
.faq-body{
  padding: 0 18px 16px;
  color: rgba(15,23,32,.78);
  font-weight: 700;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid{
  display:grid;
  gap: 14px;
}
.contact-card{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radiusL);
  overflow: hidden;
  box-shadow: var(--shadowSoft);
}
.contact-split{ display:grid; }
.contact-left{
  padding: 18px;
  background: linear-gradient(180deg, rgba(15,43,63,.06) 0%, rgba(255,255,255,1) 100%);
  border-bottom: 1px solid var(--line);
}
.contact-right{ padding: 18px; background: white; }

.contact-item{ margin-bottom: 14px; }
.contact-item:last-child{ margin-bottom: 0; }

.contact-label{
  display:block;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(15,23,32,.55);
  margin-bottom: 6px;
}
.contact-value{
  font-weight: 900;
  color: rgba(15,23,32,.84);
}
.contact-value a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 1000;
}
.contact-value a:hover{ text-decoration: underline; }

.mini-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge{
  font-size: 12px;
  font-weight: 950;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: rgba(15,23,32,.78);
}

.field{ margin-bottom: 12px; }
.field-label{
  display:block;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(15,23,32,.82);
}
.input, .textarea, select.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: #fff;
  font-weight: 800;
  color: var(--ink);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.input:focus, .textarea:focus, select.input:focus{
  outline: none;
  border-color: rgba(15,43,63,.40);
  box-shadow: 0 0 0 4px rgba(15,43,63,.12);
}
.textarea{ min-height: 120px; resize: vertical; }

.form-note{
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,32,.60);
}
.demo-note{
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,32,.55);
}

.map-card{
  height: 360px;
  border-radius: var(--radiusL);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadowSoft);
  background: white;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding: 34px 0 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.footer-inner{
  display:grid;
  gap: 12px;
  align-items:start;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-mark--footer{
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.footer-name{
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.01em;
}
.footer-small{
  margin: 0;
  color: rgba(15,23,32,.62);
  font-weight: 800;
  font-size: 13px;
}

/* =========================
   BACK TO TOP
   ========================= */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadowSoft);
  cursor: pointer;
  display:grid;
  place-items:center;
  font-weight: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
  z-index: 60;
}
.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover{
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* =========================
   FADE IN
   Default: visible
   JS on: animate
   ========================= */
.fade-in-section{
  opacity: 1;
  transform: none;
}
.js .fade-in-section{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.js .fade-in-section.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js .fade-in-section{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (min-width: 880px){
  .nav{ display:flex; }
  .nav-toggle{ display:none; }
  .mobile-nav{ display:none !important; }

  .section{ padding: 78px 0; }

  .hero{ padding-top: 70px; }
  .hero-grid{
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 52px;
  }

  .about-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .cards-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .team-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .team-card{ grid-template-columns: 1fr; }
  .avatar{ width: 56px; height: 56px; }

  .steps{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .list-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .contact-grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: stretch;
    gap: 16px;
  }
  .contact-split{
    grid-template-columns: .9fr 1.1fr;
    height: 100%;
  }
  .contact-left{
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 22px;
  }
  .contact-right{ padding: 22px; }
  .map-card{ height: 100%; min-height: 520px; }

  .footer-inner{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
