/* Rawae Business LLC: Gratech-style design system (PRD section 4). All colors live in :root. */
:root {
  --primary: #3c72fc;
  --primary-dark: #1f47c4;
  --primary-soft: #8fb0ff;
  --dark: #0f0d1d;
  --sub-bg: #f3f7fb;
  --paragraph: #585858;
  --border: #e3e3e3;
  --accent-gold: #f5b335;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  /* Tints of the palette above */
  --on-dark-muted: rgba(255, 255, 255, .8);
  --line-dark: rgba(255, 255, 255, .16);
  --shadow: rgba(15, 13, 29, .09);
  --shadow-strong: rgba(15, 13, 29, .16);
  --scrim: rgba(15, 13, 29, .6);
  --overlay: rgba(60, 114, 252, .45);
  --hero-shade-strong: rgba(15, 13, 29, .9);
  --hero-shade: rgba(15, 13, 29, .82);
  --hero-shade-light: rgba(15, 13, 29, .5);

  /* Legacy aliases */
  --navy-deep: var(--dark);
  --navy: var(--dark);
  --steel: var(--primary-dark);
  --gold: var(--primary);
  --gold-light: var(--primary-soft);
  --paper: var(--white);
  --paper-dim: var(--sub-bg);
  --charcoal: var(--paragraph);
  --gray: var(--paragraph);

  --font: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E");

  --radius-sm: 4px;
  --radius: 8px;
  --gutter: 24px;
  --edge: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  --section-y: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--paragraph);
  font: 400 1rem/1.7 var(--font);
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--dark); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--dark);
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.875rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.on-dark :focus-visible, .card-dark :focus-visible { outline-color: var(--primary-soft); }
.on-blue :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -72px; z-index: 200;
  padding: 10px 16px; background: var(--primary-dark); color: var(--white);
  font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-dim { background: var(--sub-bg); }
.section-dark { background: var(--dark); color: var(--on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:not(.eyebrow) { font-size: 1.0625rem; }
.section-head-tight { margin-bottom: 24px; }
.section-head-flush { margin-bottom: 0; }
.after-grid { margin: 32px 0 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-center { align-items: center; }
.split-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.lede { font-size: 1.125rem; }
.prose { max-width: 720px; }
.prose h3 { margin-top: 1.5em; }
.prose ul { margin-bottom: 1em; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  color: var(--primary-dark); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--primary); }
.on-dark .eyebrow { color: var(--primary-soft); }

.on-dark h1, .on-dark h2, .on-dark h3, .on-blue h2, .on-blue h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--primary-soft); }
.on-dark a:not(.btn):hover { color: var(--white); }

/* ---------- Buttons: square, trailing arrow ---------- */
.btn {
  display: inline-flex; align-items: stretch; justify-content: space-between; min-height: 52px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  font: 700 .9375rem/1.2 var(--font); text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-label { align-self: center; padding: 12px 20px; }
.btn::after {
  content: ""; flex: none; width: 50px;
  background: var(--primary) var(--arrow) center no-repeat;
  transition: background-position .2s;
}
.btn:hover::after { background-position: calc(50% + 4px) center; }
/* White on --primary is only 4.2:1, so small label text sits on --primary-dark. */
.btn-primary {
  background: linear-gradient(var(--dark), var(--dark)) right top / 51% 0 no-repeat, linear-gradient(var(--dark), var(--dark)) left bottom / 51% 0 no-repeat, var(--primary-dark);
  color: var(--white); transition: background-size .3s, color .2s, border-color .2s;
}
.btn-primary:hover { background-size: 51% 100%, 51% 100%; color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--sub-bg); color: var(--dark); }
.btn-white::after { background-color: var(--primary-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  color: var(--primary-dark); font-size: .9375rem; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--primary); padding-bottom: 2px;
}
.text-link:hover { color: var(--dark); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: .875rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; min-height: 42px; padding-block: 6px; }
.topbar a { color: var(--on-dark-muted); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-end { margin-left: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 16px var(--shadow); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; min-height: 84px; padding-right: var(--edge); }
.logo {
  display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 60px 12px var(--edge);
  background: var(--primary); color: var(--white); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 32px) 100%, 0 100%);
}
.logo:hover { color: var(--white); }
.logo:focus-visible { outline-offset: -6px; outline-color: var(--white); }
.logo img { width: 52px; height: 52px; }
.logo-name { font-size: 1.1875rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.nav-panel { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a, .dropdown-toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 10px; background: none; border: 0;
  color: var(--dark); font: 600 .9375rem/1.3 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav-list a:hover, .dropdown-toggle:hover { color: var(--primary-dark); }
.nav-list > li > a[aria-current], .dropdown-toggle[aria-current] { color: var(--primary-dark); box-shadow: inset 0 -2px 0 var(--primary); }
.dropdown-toggle::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.dropdown-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.has-dropdown { position: relative; }
.dropdown { display: none; }
.has-dropdown.is-open .dropdown { display: block; }
.nav-toggle {
  display: none; align-self: center; width: 48px; height: 48px; padding: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--dark); cursor: pointer;
}
.nav-toggle svg { margin: auto; }
.nav-scrim { display: none; }

/* ---------- Heroes ---------- */
.hero-shapes { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark-muted); }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Keeps the left text column at full contrast whatever the photo shows. */
.hero-shapes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-shade-strong) 0%, var(--hero-shade) 58%, var(--hero-shade-light) 100%); }
.hero-shapes > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding-block: clamp(72px, 8vw, 112px);
}
.hero .lede { max-width: 580px; }
.page-hero { padding-block: clamp(72px, 8vw, 112px); }
.page-hero h1 { max-width: 860px; }
.page-hero p.lede { max-width: 680px; margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; margin-bottom: 20px; font-size: .875rem; font-weight: 600; }

/* ---------- Stats band ---------- */
.stats { padding-block: 48px; background: var(--primary); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat-value { display: block; font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
/* 19px bold counts as large text, which needs 3:1 on --primary. */
.stat-label { display: block; margin-top: 6px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; padding: 32px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card-link:hover, .project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px var(--shadow-strong); }
.card .text-link { align-self: flex-start; margin-top: auto; }
.card-num {
  display: block; margin-bottom: 14px; color: transparent; font-size: 3rem; font-weight: 800; line-height: 1;
  -webkit-text-stroke: 1.5px var(--primary);
}
.card-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark-muted); }
.card-dark h3 { color: var(--white); }
.card-dark .btn { align-self: flex-start; margin-top: auto; }
.card ul:not(.tags) { margin-bottom: 0; font-size: .9375rem; }

.check-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 8px; height: 13px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(40deg);
}

.principle { padding: 28px; background: var(--white); border-radius: var(--radius); border-top: 3px solid var(--primary); box-shadow: 0 8px 24px var(--shadow); }
.principle p { margin: 0; }

.steps { counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 24px var(--shadow); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; color: transparent;
  font-size: 2.5rem; font-weight: 800; line-height: 1; -webkit-text-stroke: 1.5px var(--primary);
}
.step p { margin: 0; font-size: .9375rem; }

.img-frame { position: relative; isolation: isolate; margin: 0 20px 20px 0; }
.img-frame::after {
  content: ""; position: absolute; z-index: -1; right: -20px; top: -28px; width: clamp(84px, 11vw, 132px); aspect-ratio: 1;
  background: url("../images/theme/about-circle.webp") center / contain no-repeat; animation: sway-y 5s linear infinite alternate;
}
.img-frame::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; background: var(--primary); border-radius: var(--radius); }
.img-frame img { position: relative; width: 100%; border-radius: var(--radius); }

.project-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); transition: transform .2s, box-shadow .2s;
}
.project-media { position: relative; overflow: hidden; background: var(--dark); }
.project-media::after { content: ""; position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .3s; }
.project-media img { width: 100%; transition: transform .45s; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-card:hover .project-media::after { opacity: 1; }
.project-body { padding: 24px; }
.project-body p { margin: 0; font-size: .9375rem; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 3px 12px; background: var(--sub-bg); border-radius: 999px;
  color: var(--primary-dark); font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Service rows ---------- */
.service-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-row .img-frame { margin-top: 32px; }
.card-media { margin: -32px -32px 24px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { display: block; width: 100%; height: auto; transition: transform .45s; }
.card-photo:hover .card-media img { transform: scale(1.06); }
.post-media { margin-bottom: 24px; overflow: hidden; border-radius: var(--radius); }
.post-media img { display: block; width: 100%; height: auto; }
.service-row + .service-row { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--border); }
.service-box { padding: 28px; background: var(--sub-bg); border-radius: var(--radius); }
.service-box h3 { font-size: 1.0625rem; }
.service-box h3:not(:first-child) { margin-top: 20px; }

/* ---------- Notes and CTA band ---------- */
.note-panel { max-width: 820px; padding: 32px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--primary); box-shadow: 0 8px 24px var(--shadow); }
.cta { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--primary-dark) 55%, var(--primary)); color: var(--white); }
.cta::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: min(46%, 520px); aspect-ratio: 680 / 398;
  background: url("../images/theme/choose-shape-right2.webp") right bottom / contain no-repeat; opacity: .55;
}
.cta > .container { position: relative; z-index: 1; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 7vw, 80px); }
.cta h2 { margin-bottom: 12px; }
.cta-copy { max-width: 620px; }
.cta p { margin: 0; }
.cta .btn-row { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item h3 { margin: 0; font-size: 1.0625rem; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 18px 20px; background: none; border: 0;
  border-radius: var(--radius); color: var(--dark); font: 700 1.0625rem/1.35 var(--font); text-align: left; cursor: pointer;
}
.faq-q::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--primary-dark);
  border-radius: var(--radius-sm); color: var(--white); font-size: 1.25rem; line-height: 1;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 60px 20px 20px; }

/* ---------- Forms ---------- */
.form-panel { padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--dark); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.req { color: var(--primary-dark); }
/* Input outlines use --paragraph: --border is too faint for the 3:1 that form controls need. */
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; background: var(--white); color: var(--dark);
  border: 1px solid var(--paragraph); border-radius: var(--radius-sm); font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 136px; resize: vertical; }
.field input[type="file"] { padding: 10px; }
.field [aria-invalid="true"] { border: 2px solid var(--dark); background: var(--sub-bg); }
.field-error { margin: 0; color: var(--dark); font-size: .875rem; font-weight: 700; }
.field-error::before { content: "! "; color: var(--primary-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { margin: 16px 0 0; font-size: .875rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--sub-bg); color: var(--dark); font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { border-left-color: var(--dark); font-weight: 600; }
.field label.consent { display: flex; align-items: flex-start; gap: 10px; color: inherit; font-size: .875rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--primary-dark); }

.info-list > li { padding-block: 16px; border-bottom: 1px solid var(--border); }
.info-list > li:first-child { padding-top: 0; }
.info-label { display: block; margin-bottom: 4px; color: var(--dark); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-frame { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); }

/* ---------- Blog ---------- */
.post + .post { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--border); }
.post-meta { margin-bottom: 12px; color: var(--primary-dark); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.post h3 { font-size: 1.125rem; }
.toc a { display: block; padding-block: 12px; border-bottom: 1px solid var(--border); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark-muted); font-size: .9375rem; }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary-soft); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr 1fr 1.25fr; gap: 40px; padding-block: 72px 48px; }
.footer-title { margin-bottom: 14px; color: var(--white); font-size: 1.0625rem; font-weight: 700; }
.footer-links li { margin-bottom: 8px; }
.footer-contact { margin-top: 16px; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 16px; }
.newsletter-row { display: flex; gap: 8px; margin-bottom: 12px; }
.newsletter-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 12px; background: transparent; color: var(--white);
  border: 1px solid var(--on-dark-muted); border-radius: var(--radius-sm); font: 400 .9375rem var(--font);
}
.newsletter-row input::placeholder { color: var(--on-dark-muted); }
.on-dark .form-status { background: var(--primary-dark); color: var(--white); border-left-color: var(--white); }
.on-dark .field-error, .on-dark .field-error::before { color: var(--primary-soft); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line-dark); font-size: .875rem; }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--whatsapp); color: var(--white); border-radius: var(--radius-sm); box-shadow: 0 8px 20px var(--shadow-strong); transition: background-color .2s;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); color: var(--white); }

/* ---------- Theme artwork and motion (Gratech shapes; animations rebuilt without its libraries) ---------- */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
:where(.deco) span { position: absolute; display: block; background-position: center; background-size: contain; background-repeat: no-repeat; }
/* The solid triangle stops short of the content edge so text never sits on it. */
.d-solid-left { left: 0; top: 30px; width: min(calc(var(--edge) - 12px), 150px); aspect-ratio: 239 / 488; background-image: url("../images/theme/banner-solid-left-shape.webp"); background-position: left center; animation: sway-y 3s linear infinite alternate; }
.d-regular-left { left: 0; top: 60px; width: min(calc(var(--edge) + 12px), 170px); aspect-ratio: 217 / 438; background-image: url("../images/theme/banner-regular-left-shape.webp"); background-position: left center; animation: sway-x 3s linear infinite alternate; }
.d-mesh { left: 0; bottom: 0; width: clamp(180px, 26vw, 395px); aspect-ratio: 395 / 334; background-image: url("../images/theme/banner-shape-left.webp"); opacity: .7; }
.d-blob { right: 0; bottom: 0; width: clamp(96px, 23vw, 327px); aspect-ratio: 327 / 364; background-image: url("../images/theme/banner-shape-right.webp"); animation: slide-in-right 1.2s ease both; }
.d-blob-line { right: 0; bottom: 0; width: clamp(104px, 24vw, 343px); aspect-ratio: 343 / 356; background-image: url("../images/theme/banner-shape-right-line.webp"); animation: sway-x 5s linear infinite alternate; }
.d-chev { top: -65px; right: 0; height: 437px; background-position: right center; animation: chevron 4s ease-in-out infinite; }
.d-chev1 { width: 109px; background-image: url("../images/theme/banner-right-line1.webp"); }
.d-chev2 { width: 138px; background-image: url("../images/theme/banner-right-line2.webp"); animation-delay: .4s; }
.d-chev3 { width: 171px; background-image: url("../images/theme/banner-right-line3.webp"); animation-delay: .8s; }
.d-chev4 { width: 201px; background-image: url("../images/theme/banner-right-line4.webp"); animation-delay: 1.2s; }

.f-glow { left: 50%; bottom: 0; width: 1400px; height: 566px; margin-left: -700px; background-image: url("../images/theme/footer-shadow-shape.webp"); background-size: 100% 100%; animation: footer-glow 10s linear infinite alternate; }
.f-solid-left { left: 0; top: 0; width: min(calc(var(--edge) - 12px), 98px); aspect-ratio: 98 / 437; background-image: url("../images/theme/footer-solid-left.webp"); background-position: left center; }
.f-regular-left { left: 0; top: 30px; width: min(calc(var(--edge) + 12px), 99px); aspect-ratio: 99 / 438; background-image: url("../images/theme/footer-regular-left.webp"); background-position: left center; animation: sway-x 3s linear infinite alternate; }
.f-solid-right { right: 0; top: 0; width: min(calc(var(--edge) - 12px), 185px); aspect-ratio: 185 / 408; background-image: url("../images/theme/footer-solid-right.webp"); background-position: right center; opacity: .8; }
.f-regular-right { right: 0; top: 30px; width: 184px; aspect-ratio: 184 / 407; background-image: url("../images/theme/footer-regular-right.webp"); background-position: right center; animation: sway-x 3s linear infinite alternate; }

/* Hero entrance */
.hero-grid > div:first-child > *, .page-hero > .container > * { animation: fade-in-up .8s ease both; }
.hero-grid > div:first-child > :nth-child(2), .page-hero > .container > :nth-child(2) { animation-delay: .1s; }
.hero-grid > div:first-child > :nth-child(3), .page-hero > .container > :nth-child(3) { animation-delay: .2s; }
.hero-grid > div:first-child > :nth-child(n+4), .page-hero > .container > :nth-child(n+4) { animation-delay: .3s; }

/* Scroll reveal: main.js adds these classes, so content stays visible without JavaScript. */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; animation: fade-in-up .9s ease both; }
.reveal-left.is-in { animation-name: slide-in-left; }

@keyframes sway-x { from { transform: translateX(-20px); } to { transform: translateX(0); } }
@keyframes sway-y { from { transform: translateY(0); } to { transform: translateY(20px); } }
@keyframes chevron { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes footer-glow { from { transform: translateX(-200px); } to { transform: translateX(200px); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }

/* ---------- Desktop dropdown ---------- */
@media (min-width: 981px) {
  .has-dropdown:hover .dropdown { display: block; }
  .dropdown {
    position: absolute; left: 0; top: 100%; z-index: 110; min-width: 210px; padding: 8px; background: var(--white);
    border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 36px var(--shadow-strong);
  }
  .dropdown a { padding: 9px 12px; border-radius: var(--radius-sm); }
  .dropdown a:hover { background: var(--sub-bg); }
  .dropdown a[aria-current] { color: var(--primary-dark); background: var(--sub-bg); }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1120px) {
  .nav-list { gap: 0; }
  .nav-list a, .dropdown-toggle { padding-inline: 7px; font-size: .875rem; }
  .nav-panel { gap: 10px; }
  .logo { padding-right: 50px; }
  .logo img { width: 44px; height: 44px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; position: relative; z-index: 130; }
  .nav-panel {
    position: fixed; inset: 0 0 0 auto; z-index: 120; flex-direction: column; align-items: stretch; gap: 20px;
    width: min(340px, 86vw); padding: 116px 24px 32px; overflow-y: auto; background: var(--white);
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .nav-panel.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .dropdown-toggle { justify-content: space-between; width: 100%; padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-list > li > a[aria-current], .dropdown-toggle[aria-current] { box-shadow: none; }
  .dropdown a { padding-left: 18px; }
  .dropdown a[aria-current] { color: var(--primary-dark); }
  .nav-panel .btn { flex: none; }
  .nav-scrim { position: fixed; inset: 0; z-index: 110; display: block; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }

  .hero-grid { grid-template-columns: 1fr; }
  .d-chev { display: none; }
  .f-solid-right, .f-regular-right { opacity: .4; }
  .hero-shapes::before { background: var(--hero-shade); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .split, .split-sidebar, .service-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { background: var(--primary-dark); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-bottom: 104px; }
  .hero-grid { padding-bottom: 104px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar-end { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .btn-row .btn { width: 100%; }
  .card, .principle { padding: 24px; }
  .card-media { margin: -24px -24px 20px; }
  .faq-a { padding-right: 20px; }
  .map-frame { height: 280px; }
  .newsletter-row { flex-direction: column; }
  .header-inner { min-height: 72px; gap: 8px; }
  .logo { gap: 8px; padding-right: 38px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
  .logo img { width: 40px; height: 40px; }
  .d-solid-left, .d-regular-left, .f-solid-left, .f-regular-left, .f-solid-right, .f-regular-right, .d-blob-line { display: none; }
  .d-mesh { opacity: .4; }
  .cta::before { opacity: .35; }
}

/* ---------- Touch screens: larger tap areas, and 16px fields so iPhones don't zoom in on focus ---------- */
@media (max-width: 980px) {
  .newsletter-row input { font-size: 1rem; }
  .topbar-inner { padding-block: 0; min-height: 44px; }
  .topbar a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs { align-items: center; margin-bottom: 8px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .text-link { display: inline-block; padding-top: 12px; }
}

@media (max-width: 640px) {
  .topbar-inner { column-gap: 12px; }
  .whatsapp-float { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  /* Room for the floating WhatsApp button, so it never covers the last footer line. */
  .footer-base { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; }
  .card-link:hover, .project-card:hover { transform: none; }
  .project-card:hover .project-media img { transform: none; }
  .btn:hover::after { background-position: center; }
}
