/* =============================================================
   RENRAY — STATIC SITE STYLESHEET
   Palette carried over from the live renray.co.za theme so the
   rebuild is visually identical to what you have now.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink:         #101826;
  --paper:       #F4F9FD;
  --paper-2:     #EAF3FB;
  --blueprint:   #0B2A4A;
  --blueprint-2: #3D7DE8;
  --brass:       #6EC6F5;
  --brass-dark:  #0091DD;
  --slate:       #55647A;
  --line:        #DCE7F2;
  --white:       #ffffff;
  --whatsapp:    #25D366;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --gutter: 1.5rem;
  --radius: 10px;

  --shadow-sm: 0 12px 28px -18px rgba(11, 42, 74, 0.35);
  --shadow-md: 0 18px 40px -22px rgba(21, 26, 32, 0.35);
  --shadow-lg: 0 20px 45px -30px rgba(11, 42, 74, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.prose p, .contact-details p { max-width: 68ch; }

a { color: var(--blueprint-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }

ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--brass);
  color: var(--slate);
  font-size: 1.05rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

:focus-visible { outline: 2px solid var(--brass-dark); outline-offset: 2px; }

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

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--white); text-decoration: none; }

.btn-primary { background: var(--brass-dark); border-color: var(--brass-dark); color: var(--white); }
.btn-primary:hover { background: var(--blueprint-2); border-color: var(--blueprint-2); }

.btn-light { background: var(--brass); border-color: var(--brass); color: var(--blueprint); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1EBE59; border-color: #1EBE59; color: var(--white); }
.btn-whatsapp svg { width: 17px; height: 17px; }

.btn-sm { padding: 0.65em 1.2em; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(11, 42, 74, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  transition: padding 0.25s ease;
}
.site-header.is-scrolled .header-inner { padding-top: 0.65rem; padding-bottom: 0.65rem; }

.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-branding img { max-height: 58px; width: auto; transition: max-height 0.25s ease; border-radius: 0; }
.site-header.is-scrolled .site-branding img { max-height: 44px; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-title a { color: inherit; }
.site-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--slate);
  margin-top: 0.15em;
  letter-spacing: 0.02em;
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.55em 0.7em;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  display: inline-block;
  padding: 0.2em 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-dark); text-decoration: none; }

.nav .has-children { position: relative; }
.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 230px;
  padding: 0.4em 0;
  margin-top: 0.35rem;
  z-index: 50;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 0;
}
.nav .has-children:hover > .sub-menu,
.nav .has-children:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { display: block; padding: 0.55em 1em; }

/* ---------- Hero ---------- */
.hero {
  background: var(--blueprint);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem var(--gutter) 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 16ch; margin-bottom: 0.15em; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--brass);
  margin: 0 0 1.2rem;
}
.hero-sub { color: rgba(255, 255, 255, 0.84); font-size: 1.08rem; max-width: 48ch; }
.hero-sub-2 { color: rgba(255, 255, 255, 0.68); font-size: 0.97rem; max-width: 52ch; }
.hero-reg {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  margin: 0.5rem 0 0;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }

.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}
.trust-item svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }

.page-hero {
  background: var(--blueprint);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--white);
  padding: 4.5rem 0 4rem;
}
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 62ch; font-size: 1.05rem; }
.page-hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.2rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb span { margin: 0 0.5em; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0;
}
.section-head h2 { margin: 0.35em 0 0; }
.section-head p { margin: 0.6em 0 0; color: var(--slate); }

.section-alt .section-head { border-bottom-color: rgba(11, 42, 74, 0.12); }

/* ---------- Grids ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 2.2rem 2rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 10px; height: 10px;
  border-top: 1.5px solid var(--brass-dark);
  border-left: 1.5px solid var(--brass-dark);
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 14px; right: 14px;
  width: 10px; height: 10px;
  border-bottom: 1.5px solid var(--brass-dark);
  border-right: 1.5px solid var(--brass-dark);
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.service-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--blueprint);
  margin-bottom: 1.1rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { border-color: var(--brass-dark); background: var(--brass-dark); color: var(--white); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--slate); font-size: 0.97rem; margin-bottom: 1rem; }
.service-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.service-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card:hover .service-link svg, .service-link:hover svg { transform: translateX(3px); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step { position: relative; padding: 0 1.6rem 0 0; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 1.6rem;
  height: 1px;
  background: var(--line);
}
.process-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brass-dark);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.process-step p { color: var(--slate); font-size: 0.94rem; max-width: 30ch; }

/* ---------- Differentiator cards ---------- */
.diff-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass-dark);
}
.diff-icon { width: 42px; height: 42px; color: var(--blueprint); margin-bottom: 1rem; }
.diff-icon svg { width: 100%; height: 100%; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.diff-card p { color: var(--slate); font-size: 0.94rem; }

/* ---------- Value list ---------- */
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
}
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-mark { font-family: var(--font-display); color: var(--brass-dark); font-weight: 700; flex-shrink: 0; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 1rem 0.5rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brass-dark);
  line-height: 1;
  margin-bottom: 0.35em;
  display: block;
}
.stat-label { color: var(--slate); font-size: 0.95rem; }

/* ---------- Service detail sections ---------- */
.service-section {
  padding: 3.4rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-section:nth-child(even) { background: var(--paper-2); }
.service-section-inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.service-section-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--brass-dark);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-section h2 { margin-bottom: 0.6rem; }
.service-desc { color: var(--slate); max-width: 68ch; }
.service-body { color: var(--slate); max-width: 68ch; }
.service-body h3 { font-size: 1.05rem; margin-top: 1.6rem; color: var(--ink); }
.service-body ul { max-width: 68ch; }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.4rem 0;
}
.anchor-nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
}
.anchor-nav a:hover { border-color: var(--brass-dark); color: var(--brass-dark); text-decoration: none; }

/* ---------- CTA ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}
.cta-rich { background: var(--blueprint); padding: 4.5rem 0; }
.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-rich h2 { color: var(--white); margin: 0; }
.cta-rich h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 22ch; }
.cta-banner p, .cta-rich p { color: rgba(255, 255, 255, 0.75); margin: 0.5em 0 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: -3.4rem;
  position: relative;
  z-index: 5;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.contact-card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--brass-dark);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card.is-whatsapp .contact-card-icon { color: var(--whatsapp); background: rgba(37, 211, 102, 0.12); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.4em; }
.contact-card p { color: var(--slate); font-size: 0.92rem; margin-bottom: 1rem; }
.contact-card-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 1.2rem;
  word-break: break-word;
  font-size: 0.95rem;
  flex-grow: 1;
}
.contact-card .btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.contact-card .btn-whatsapp:hover { background: #1EBE59; border-color: #1EBE59; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45em;
  color: var(--ink);
}
.field label .req { color: #cf2e2e; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8em 0.95em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(0, 145, 221, 0.15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #cf2e2e; }
.field-error {
  color: #cf2e2e;
  font-size: 0.85rem;
  margin-top: 0.4em;
  display: none;
}
.field.has-error .field-error { display: block; }
.field-hint { color: var(--slate); font-size: 0.85rem; margin-top: 0.4em; }

.checkbox-field { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.checkbox-field input { width: auto; margin-top: 0.35em; flex-shrink: 0; }
.checkbox-field label { font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; margin: 0; }

.form-note { color: var(--slate); font-size: 0.9rem; margin-top: 1rem; }

.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status.is-info { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.form-status.is-error { background: #fdecec; border-color: #f3b9b9; color: #8f1f1f; }

/* ---------- Info / note blocks ---------- */
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.info-block h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.info-block p { color: var(--slate); font-size: 0.95rem; margin-bottom: 0; }
.info-block.is-alt { background: var(--paper-2); border-color: rgba(11, 42, 74, 0.1); }

.address-block { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.address-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--brass-dark);
}
.address-icon svg { width: 20px; height: 20px; }
.address-block h3 { margin-bottom: 0.3em; }
.address-block address { font-style: normal; color: var(--slate); }

.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 42%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.careers-section {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.careers-section h2 { margin-bottom: 0.4rem; }
.careers-section p { color: var(--slate); margin-bottom: 0; max-width: 54ch; }

/* ---------- Blog ---------- */
.blog-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.blog-search { flex: 1; min-width: 240px; max-width: 420px; }
.blog-search input {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.blog-search input:focus { outline: none; border-color: var(--brass-dark); box-shadow: 0 0 0 3px rgba(0, 145, 221, 0.15); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 0.7em;
}
.post-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brass-dark); text-decoration: none; }
.post-excerpt { color: var(--slate); font-size: 0.94rem; margin-bottom: 1.2rem; }
.post-read-more {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.post-read-more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.post-card:hover .post-read-more svg { transform: translateX(3px); }

.post-list { display: grid; gap: 2.5rem; }
.post-list-item { border-bottom: 1px solid var(--line); padding-bottom: 2.5rem; }
.post-list-item:last-child { border-bottom: 0; }
.post-list-item h2 { font-size: 1.5rem; margin-bottom: 0.4em; }
.post-list-item h2 a { color: var(--ink); }
.post-list-item h2 a:hover { color: var(--brass-dark); text-decoration: none; }
.post-list-item p { color: var(--slate); max-width: 68ch; }

.blog-empty, .blog-loading {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--slate);
}

.article-header { margin-bottom: 2.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 22ch; }
.article-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--slate);
}
.article-body { max-width: 70ch; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.article-body ul, .article-body ol { max-width: 70ch; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { color: var(--slate); font-size: 0.88rem; margin-top: 0.6em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 0.7em 0.9em; text-align: left; }
.article-body th { background: var(--paper-2); font-family: var(--font-display); }

.article-footer {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.share-links { display: flex; gap: 0.6rem; align-items: center; }
.share-links span { font-size: 0.88rem; color: var(--slate); }
.share-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--slate);
  background: var(--white);
}
.share-links a:hover { border-color: var(--brass-dark); color: var(--brass-dark); text-decoration: none; }
.share-links svg { width: 16px; height: 16px; }

.related-posts { background: var(--paper-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { color: var(--brass-dark); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--brass-dark); }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.4rem 1.4rem; color: var(--slate); }
.faq-answer p { max-width: 70ch; }
.faq-item.is-open .faq-answer { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--brass); text-decoration: none; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--white); }

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-top h4 { font-size: 0.92rem; margin-bottom: 1.1em; letter-spacing: 0.04em; }
.footer-brand p { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.footer-brand img { max-height: 72px; width: auto; margin-bottom: 1rem; border-radius: 0; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.6em; }
.footer-list a { font-size: 0.92rem; }
.footer-reg { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin-top: 1.2rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: var(--white);
}
.footer-social a:hover { border-color: var(--brass); background: rgba(110, 198, 245, 0.12); }
.footer-social svg { width: 15px; height: 15px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.2rem var(--gutter); }
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.55);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.6);
  text-decoration: none;
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Timeline (About) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.timeline li {
  position: relative;
  padding: 0 0 2rem 2.4rem;
  border-left: 2px solid var(--line);
  margin: 0;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brass-dark);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass-dark);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3em;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.timeline p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.team-role { font-family: var(--font-display); font-size: 0.85rem; color: var(--brass-dark); margin-bottom: 0.8em; }
.team-card p { color: var(--slate); font-size: 0.9rem; margin: 0; }

/* ---------- 404 ---------- */
.error-404 { text-align: left; padding: 5rem 0; }
.error-404 h1 { font-size: clamp(4rem, 10vw, 7rem); color: var(--blueprint); margin-bottom: 0.1em; }

/* ---------- Legal / prose pages ---------- */
.legal-header { background: var(--blueprint); color: var(--white); padding: 3.5rem 0 3rem; }
.legal-header h1 { color: var(--white); margin-bottom: 0.3em; }
.legal-updated { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin: 0; }
.legal-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
}
.legal-toc h2 { font-size: 0.95rem; margin-bottom: 0.8em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; font-size: 0.94rem; }
.legal-toc li { margin-bottom: 0.35em; }
.legal-toc a { color: var(--slate); }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul, .prose ol { max-width: 70ch; }
.prose p, .prose li { color: #35435a; }

/* ---------- Scroll reveal ----------
   Gated behind the .js class (set by an inline script in <head>) so that
   content is never left invisible when JavaScript is unavailable. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); margin-top: -2.2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .post-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-art, .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .two-col, .contact-layout, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; }
  .process-step:not(:last-child)::after { display: none; }
  .careers-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { display: block; padding: 0.85em 0; font-size: 1.02rem; }
  .nav .sub-menu { position: static; border: 0; box-shadow: none; padding-left: 1rem; min-width: 0; margin-top: 0; }
  .header-cta { display: none; }
  .site-tagline { display: none; }
  .services-grid, .grid-2, .post-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .service-section-inner { grid-template-columns: 1fr; gap: 1rem; }
  .service-section-number { width: 42px; height: 42px; font-size: 0.95rem; }
  .contact-cards { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .page-hero { padding-bottom: 5rem; }
  .section { padding: 3.2rem 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-branding img { max-height: 48px; }
  .site-header.is-scrolled .site-branding img { max-height: 40px; }
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .whatsapp-float, .cta-banner, .cta-rich, .anchor-nav, .blog-toolbar { display: none; }
  body { background: #fff; font-size: 12pt; }
  .page-hero, .legal-header { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero h1, .legal-header h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   PHOTO SLOTS — real photography and product screenshots
   Drop a real file into assets/img/ and delete the `is-placeholder` class
   plus the caption line to convert any slot into a finished asset.
   ========================================================================== */

.photo-slot {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo-slot img {
  display: block;
  width: 100%;
  height: auto;          /* natural aspect ratio - never crop or squeeze */
}
/* No forced aspect-ratio: each photo renders at its own proportions. */

/* Placeholder state: dashed edge so an unfilled slot is obvious in review */
.photo-slot.is-placeholder { border-style: dashed; border-color: var(--brass); }
.photo-slot.is-placeholder img { opacity: 0.9; }

/* --- Team ---------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}
.team-card { display: flex; flex-direction: column; gap: 0.85rem; }
.team-card .photo-slot { flex: 0 0 auto; }
.team-card h3 { font-size: 1.08rem; margin: 0; }
.team-role {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: -0.55rem 0 0;
}
.team-card p { color: var(--slate); font-size: 0.93rem; margin: 0; }

/* --- Work / proof -------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.proof-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.proof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proof-card-body { padding: 1.15rem 1.3rem 1.35rem; }
.proof-card-body h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.proof-card-body p { color: var(--slate); font-size: 0.93rem; margin: 0; }
.proof-stack { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.proof-stack span {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blueprint);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* Editorial note that ships with the placeholders */
.slot-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-dark);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  font-size: 0.92rem;
  color: var(--slate);
}
.slot-note strong { color: var(--blueprint); }
.slot-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--brass-dark); }

@media (max-width: 640px) {
  .team-grid, .proof-grid { gap: 1.2rem; }
}

/* hero photo */
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  border: 1px solid rgba(110, 198, 245, .25);
}
.hero-photo img { display: block; width: 100%; height: auto; }

/* page lead photos - natural proportions, never cropped */
.about-lead   { max-width: 420px; margin: 40px auto 0; }
.contact-photo{ margin: 28px 0 8px; }
.blog-lead    { margin: 0 0 32px; }
