/* =====================================================================
   Ikram Estimation Services — Design System
   Aesthetic: technical drawing / takeoff sheet
   Display: Space Grotesk · Body: Inter · Data/labels: IBM Plex Mono
   ===================================================================== */

:root {
  --ink:        #0C1A26;
  --ink-2:      #102A38;
  --paper:      #F5F2EC;
  --white:      #FFFFFF;
  --accent:     #DE8A2E;   /* refined ochre — surveying / construction */
  --accent-ink: #B96E1B;
  --steel:      #5C6B72;   /* muted body text on paper */
  --blueprint:  #3E7E9C;   /* technical line color on dark */
  --line:       rgba(12,26,38,.14);
  --line-soft:  rgba(12,26,38,.08);
  --line-dark:  rgba(255,255,255,.14);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 4px;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- monospace technical label (the signature tie to takeoff sheets) ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}
.eyebrow.on-dark { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: .04em;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,.3); }
.btn--ghost.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ===================== HEADER ===================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,236,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.brand-name span { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--steel); margin-top: 4px; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:1.5px; background: var(--accent); transition: width .2s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: -16px; min-width: 232px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px; margin-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; box-shadow: 0 18px 40px -22px rgba(12,26,38,.4);
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 3px; font-size: 14px; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--paper); }
.submenu .num { font-family: var(--f-mono); font-size: 11px; color: var(--accent-ink); }

.head-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content:""; display:block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
}
/* blueprint grid */
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(62,126,156,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,126,156,.13) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 75% 30%, #000 30%, transparent 78%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -.035em; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: #C5D2D9; max-width: 50ch; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.hero-trust .stat .n { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--white); }
.hero-trust .stat .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8FA3AC; }

/* dimension-line drawing panel (signature element) */
.draw-panel {
  position: relative; border: 1px solid var(--line-dark);
  border-radius: var(--r); padding: 30px 30px 26px;
  background: linear-gradient(160deg, rgba(62,126,156,.10), rgba(255,255,255,.02));
}
.draw-row { display:flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line-dark); }
.draw-row:last-child { border-bottom: 0; }
.draw-row .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: #A9BAC2; }
.draw-row .v { font-family: var(--f-display); font-size: 18px; color: var(--accent); }
.dim {
  position: relative; margin-top: 22px; height: 30px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.dim::before, .dim::after { content:""; position:absolute; top:-5px; width:1px; height:11px; background: rgba(255,255,255,.4); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim span { position:absolute; top:8px; left:50%; transform:translateX(-50%); font-family: var(--f-mono); font-size: 11px; color:#A9BAC2; letter-spacing:.1em; }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); }
.section-head p { color: var(--steel); font-size: 18px; margin-top: 18px; }
.section--ink .section-head p { color: #B7C5CC; }

/* ---- service / feature cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.section--white .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 22px 48px -30px rgba(12,26,38,.5); }
.card .idx { font-family: var(--f-mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .1em; }
.card h3 { font-size: 21px; margin: 14px 0 10px; }
.card p { color: var(--steel); font-size: 15.5px; margin: 0; }
.card .lk { display:inline-flex; align-items:center; gap:7px; margin-top: 18px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.card .lk .arw { transition: transform .2s; }
.card:hover .lk .arw { transform: translateX(4px); }
.card-ico { width: 42px; height: 42px; color: var(--accent); }

/* ---- process steps (real numbered sequence) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--r); overflow:hidden; }
.step { padding: 30px 26px; border-right: 1px solid var(--line-dark); }
.step:last-child { border-right: 0; }
.step .sn { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing:.1em; }
.step h4 { font-size: 19px; margin: 14px 0 8px; color: var(--white); }
.step p { color: #A9BAC2; font-size: 14.5px; margin: 0; }

/* ---- CSI division index ---- */
.csi-list { border-top: 1px solid var(--line); }
.csi-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background .15s ease, padding .15s ease;
}
.csi-row:hover { background: var(--white); padding-inline: 16px; }
.csi-row .div-no { font-family: var(--f-mono); font-size: 14px; color: var(--accent-ink); }
.csi-row .div-name { font-family: var(--f-display); font-size: 18px; }
.csi-row .div-name small { display:block; font-family: var(--f-body); font-size: 13.5px; color: var(--steel); font-weight: 400; margin-top: 3px; letter-spacing:0; }
.csi-row .div-act { font-family: var(--f-mono); font-size: 12px; color: var(--steel); }

/* ---- sample download cards ---- */
.dl-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.dl-card { background: var(--white); border:1px solid var(--line); border-radius: var(--r); padding: 26px; }
.dl-card .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing:.1em; color: var(--accent-ink); text-transform:uppercase; }
.dl-card h3 { font-size: 19px; margin: 12px 0 8px; }
.dl-card p { font-size: 14.5px; color: var(--steel); margin: 0 0 20px; }

/* ---- testimonials ---- */
.quote-card { background: var(--white); border:1px solid var(--line); border-radius: var(--r); padding: 32px; }
.section--ink .quote-card { background: var(--ink-2); border-color: var(--line-dark); }
.quote-card blockquote { font-family: var(--f-display); font-size: 19px; line-height: 1.45; margin: 0 0 22px; letter-spacing:-.01em; }
.section--ink .quote-card blockquote { color: var(--white); }
.quote-card .who { display:flex; align-items:center; gap: 13px; }
.quote-card .av { width: 42px; height:42px; border-radius: 50%; background: var(--accent); color: var(--ink); display:flex; align-items:center; justify-content:center; font-family: var(--f-display); font-weight:600; }
.quote-card .who .nm { font-size: 14px; font-weight: 600; }
.quote-card .who .rl { font-family: var(--f-mono); font-size: 11px; color: var(--steel); }
.section--ink .quote-card .who .rl { color:#8FA3AC; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style:none; cursor:pointer; padding: 22px 0; display:flex; justify-content:space-between; gap:20px; align-items:center; font-family: var(--f-display); font-size: 19px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary .pm { font-family: var(--f-mono); color: var(--accent-ink); transition: transform .2s; flex:none; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--steel); max-width: 78ch; }

/* ---- forms ---- */
.form-wrap { background: var(--white); border:1px solid var(--line); border-radius: var(--r); padding: clamp(26px,4vw,44px); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--f-mono); font-size: 12px; letter-spacing:.08em; text-transform:uppercase; color: var(--steel); margin-bottom: 8px; }
.field label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(222,138,46,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--steel); margin-top: 6px; }

/* ===================== FOOTER ===================== */
.site-foot { background: var(--ink); color: #B7C5CC; padding: 70px 0 30px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-family: var(--f-mono); font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color:#8FA3AC; margin:0 0 18px; }
.foot-grid a { display:block; padding: 6px 0; font-size: 14.5px; color:#B7C5CC; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand .brand-name { color: var(--white); }
.foot-brand p { font-size: 14.5px; max-width: 34ch; margin: 18px 0; }
.foot-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: 12px; color:#7E929B; }

/* ===================== FLOATING ACTIONS ===================== */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 60; display:flex; flex-direction:column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 30px -8px rgba(12,26,38,.5); transition: transform .15s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #25D366; color:#fff; }
.fab--call { background: var(--accent); color: var(--ink); }

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-head { background: var(--ink); color: var(--paper); padding: clamp(64px,9vw,110px) 0 clamp(48px,6vw,72px); position:relative; overflow:hidden; }
.page-head::before { content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(62,126,156,.1) 1px,transparent 1px), linear-gradient(90deg,rgba(62,126,156,.1) 1px,transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%); }
.page-head .container { position:relative; z-index:2; }
.crumb { font-family: var(--f-mono); font-size: 12px; letter-spacing:.1em; color:#8FA3AC; margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(34px,5vw,58px); }
.page-head p { color:#C5D2D9; font-size: 19px; max-width: 60ch; margin-top: 18px; }

/* prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 30px; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose p { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.5em; }
.prose ul li { position: relative; padding: 7px 0 7px 28px; color: var(--ink); }
.prose ul li::before { content:"—"; position:absolute; left:0; color: var(--accent-ink); font-family: var(--f-mono); }

/* split feature */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split .panel { border:1px solid var(--line); border-radius: var(--r); padding: 32px; background: var(--white); }
.split .panel .draw-row .k { color: var(--steel); }
.split .panel .draw-row .v { color: var(--accent-ink); }
.split .panel .draw-row { border-color: var(--line); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .dl-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav, .head-cta .btn { display: none; }
  .menu-btn { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 26px;
  }
  .nav.open a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav.open .has-sub .submenu { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding: 0 0 8px 14px; background:transparent; }
  .grid-3, .grid-2, .dl-grid, .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line-dark); }
  .step:last-child { border-bottom: 0; }
  .csi-row { grid-template-columns: 64px 1fr; }
  .csi-row .div-act { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
