/* ===========================================================
   Durat Alrayan — Brand Stylesheet
   =========================================================== */

:root {
  --brand-purple:        #5B1A78;
  --brand-purple-dark:   #3D0F55;
  --brand-purple-deep:   #2A0A3D;
  --brand-purple-light:  #8B5BA8;
  --brand-purple-soft:   #B79DCB;
  --brand-cyan:          #4DAEC9;
  --brand-cyan-dark:     #2E8AA4;
  --brand-lavender:      #F4EEF7;
  --brand-lavender-2:    #EADFF2;
  --brand-white:         #FFFFFF;
  --brand-ink:           #1F1235;
  --brand-mute:          #5A4F66;
  --brand-line:          rgba(91, 26, 120, 0.12);
  --brand-shadow:        0 24px 60px -20px rgba(91, 26, 120, 0.35);
  --brand-shadow-sm:     0 8px 24px -8px rgba(91, 26, 120, 0.18);
  --brand-gradient:      linear-gradient(135deg, #5B1A78 0%, #8B5BA8 50%, #4DAEC9 100%);
  --brand-gradient-soft: linear-gradient(180deg, #F4EEF7 0%, #FFFFFF 100%);
  --radius-sm:           10px;
  --radius:              16px;
  --radius-lg:           24px;
  --radius-xl:           32px;
  --ease:                cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[dir="rtl"] {
  font-family: 'Tajawal', 'Cairo', 'Inter', system-ui, sans-serif;
}

/* ----------- Typography ----------- */
.display {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
}

.text-grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------- Nav ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--brand-line);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-purple);
}

.brand-mark__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark__logo img,
.brand-mark__logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark__name strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--brand-purple);
}

.brand-mark__name span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
  margin-top: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-ink);
  font-weight: 500;
  font-size: 14.5px;
  transition: all .25s var(--ease);
}

.nav-links a:hover {
  color: var(--brand-purple);
  background: var(--brand-lavender);
}

.nav-links a.active {
  color: white;
  background: var(--brand-gradient);
  box-shadow: var(--brand-shadow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  border: 1px solid var(--brand-line);
  background: white;
  color: var(--brand-purple);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: inherit;
}
.lang-toggle:hover { background: var(--brand-lavender); }

.btn-cta {
  background: var(--brand-gradient);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--brand-shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: var(--brand-shadow); }
.btn-cta.btn-ghost {
  background: white;
  color: var(--brand-purple);
  border: 1px solid var(--brand-line);
}
.btn-cta.btn-ghost:hover { background: var(--brand-lavender); }

.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; color: var(--brand-purple); padding: 8px; }

/* ----------- Layout helpers ----------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--brand-mute); font-size: 17px; line-height: 1.6; margin: 0; }
.section-head .ar { font-size: 19px; color: var(--brand-cyan-dark); margin-top: 8px; font-weight: 600; }

/* ----------- Hero ----------- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(91,26,120,0.18), transparent 60%),
    radial-gradient(1000px 500px at 110% 20%, rgba(77,174,201,0.18), transparent 55%),
    var(--brand-gradient-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70vw;
  height: 70vw;
  background:
    conic-gradient(from 200deg at 50% 50%, rgba(139,91,168,0.18), rgba(77,174,201,0.10), rgba(91,26,120,0.18), rgba(139,91,168,0.18));
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
}
.hero h1 .text-grad { display: inline-block; }
.hero p.lead {
  font-size: 19px;
  color: var(--brand-mute);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 12px;
}
.hero p.lead-ar {
  font-size: 18px;
  color: var(--brand-purple);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  direction: rtl;
  text-align: start;
  margin: 0 0 28px;
  line-height: 1.7;
}
body[dir="rtl"] .hero p.lead-ar { direction: rtl; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-cyan-dark) 100%);
  box-shadow: var(--brand-shadow);
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-pillars {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 2;
}
.hero-pillars .pill {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 12px 14px;
  color: white;
  text-align: center;
}
.hero-pillars .pill strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.hero-pillars .pill span { font-size: 11px; opacity: 0.9; letter-spacing: 0.18em; text-transform: uppercase; }

/* ----------- Stat strip ----------- */
.strip {
  background: var(--brand-purple);
  color: white;
  padding: 24px 0;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.strip .stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.strip .stat span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }

/* ----------- Service cards ----------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity .35s var(--ease);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--brand-shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card:hover * { color: white !important; }
.card:hover .card-icon { background: rgba(255,255,255,0.18); color: white; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-lavender);
  color: var(--brand-purple);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: all .35s var(--ease);
}
.card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--brand-purple);
  letter-spacing: -0.01em;
}
.card .ar-title { font-size: 15px; color: var(--brand-cyan-dark); margin-bottom: 14px; font-weight: 600; }
.card p { color: var(--brand-mute); line-height: 1.6; margin: 0 0 6px; font-size: 14.5px; }
.card p.ar { color: var(--brand-purple); direction: rtl; text-align: start; font-size: 14px; }

/* ----------- Pillars / feature row ----------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--brand-lavender);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--brand-line);
}
.feature .num {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-cyan-dark);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.feature h3 { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--brand-purple); margin: 0 0 8px; }
.feature p { color: var(--brand-mute); margin: 0; line-height: 1.6; }

/* ----------- Two-col ----------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ----------- Cert grid ----------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cert {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow-sm); }
.cert-badge {
  width: 70px; height: 70px; border-radius: 50%;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: var(--brand-shadow-sm);
}
.cert h4 { font-size: 14px; margin: 0 0 4px; color: var(--brand-ink); font-weight: 700; }
.cert p { font-size: 12px; color: var(--brand-mute); margin: 0; }

/* ----------- Logo wall ----------- */
.logo-group { margin-bottom: 36px; }
.logo-group h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
  text-align: center;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--brand-line);
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.logo-tile {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--brand-purple);
  font-size: 15px;
  letter-spacing: 0.02em;
  min-height: 88px;
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.logo-tile:hover { transform: translateY(-2px); box-shadow: var(--brand-shadow-sm); }
.logo-tile small { display: block; font-weight: 500; font-size: 11px; color: var(--brand-mute); letter-spacing: 0.04em; margin-top: 2px; text-transform: uppercase; }

/* ----------- SDG row ----------- */
.sdg {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.sdg-tile {
  border-radius: var(--radius);
  padding: 18px 14px;
  color: white;
  text-align: center;
}
.sdg-tile strong { display: block; font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 800; }
.sdg-tile span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; }
.sdg-7  { background: #FCC30B; color: #1F1235; }
.sdg-8  { background: #A21942; }
.sdg-9  { background: #FD6925; }
.sdg-11 { background: #FD9D24; }
.sdg-17 { background: #19486A; }

/* ----------- Quote / Vision card ----------- */
.quote {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  background: linear-gradient(160deg, var(--brand-purple) 0%, var(--brand-purple-dark) 60%, var(--brand-cyan-dark) 130%);
  color: white;
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
}
.quote h3 { font-family: 'Poppins', sans-serif; font-size: 28px; margin: 0 0 16px; position: relative; }
.quote p { line-height: 1.7; opacity: 0.95; position: relative; margin: 0 0 12px; }
.quote .pillars-row {
  display: flex; gap: 16px; margin-top: 24px; position: relative;
  flex-wrap: wrap;
}
.quote .pillar-chip {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ----------- Contact ----------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.office {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.office h3 { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--brand-purple); margin: 0 0 6px; }
.office .city { color: var(--brand-cyan-dark); font-weight: 600; margin-bottom: 16px; }
.office .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--brand-line); color: var(--brand-mute); font-size: 14.5px; }
.office .row:first-of-type { border-top: 0; }
.office .row svg { color: var(--brand-purple); flex-shrink: 0; }

.contact-form {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 16px;
}
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--brand-cyan-dark); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: var(--brand-ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(91,26,120,0.12);
}
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ----------- Footer ----------- */
.footer {
  background: var(--brand-purple-deep);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h5 { font-family: 'Poppins', sans-serif; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: white; margin: 0 0 18px; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 4px 0; transition: color .2s var(--ease); font-size: 14.5px; }
.footer a:hover { color: var(--brand-cyan); }
.footer p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer .brand-mark__name strong { color: white; }
.footer .brand-mark__name span { color: var(--brand-cyan); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  padding: 0;
}
.socials a:hover { background: var(--brand-cyan-dark); color: white; }

/* ----------- SMARTY page ----------- */
.smarty-hero {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-cyan) 100%);
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.smarty-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12), transparent 40%);
}
.smarty-mark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 12vw, 140px);
  letter-spacing: -0.04em;
  margin: 0;
  position: relative;
  background: linear-gradient(180deg, white 0%, var(--brand-cyan) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.smarty-tagline { font-size: 22px; opacity: 0.95; position: relative; }
.smarty-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  position: relative;
}
.smarty-feature {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  text-align: start;
}
.smarty-feature svg { margin-bottom: 14px; }
.smarty-feature h4 { font-family: 'Poppins', sans-serif; font-size: 18px; margin: 0 0 6px; }
.smarty-feature p { font-size: 14px; opacity: 0.9; line-height: 1.6; margin: 0; }

/* ----------- Portfolio gallery ----------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.portfolio-grid .tile {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--brand-gradient);
  transition: transform .3s var(--ease);
}
.portfolio-grid .tile:hover { transform: scale(1.02); }
.portfolio-grid .tile.lg { grid-column: span 2; grid-row: span 2; }
.portfolio-grid .tile .overlay {
  position: absolute; inset: 0;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.portfolio-grid .tile .overlay span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; margin-bottom: 4px; }
.portfolio-grid .tile .overlay h4 { font-family: 'Poppins', sans-serif; font-size: 18px; margin: 0; }

/* ----------- Page header ----------- */
.page-head {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(800px 400px at 80% 10%, rgba(77,174,201,0.18), transparent 60%),
    var(--brand-gradient-soft);
  border-bottom: 1px solid var(--brand-line);
}
.page-head .eyebrow { display: block; margin-bottom: 12px; }
.page-head h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head .ar-h { font-size: 22px; color: var(--brand-cyan-dark); font-weight: 600; margin-bottom: 16px; }
.page-head p { color: var(--brand-mute); font-size: 18px; max-width: 720px; line-height: 1.6; margin: 0; }

/* ----------- RTL adjustments ----------- */
body[dir="rtl"] { text-align: right; }
body[dir="rtl"] .nav-links { flex-direction: row-reverse; }
body[dir="rtl"] .hero p.lead-ar { text-align: right; }
body[dir="rtl"] .footer-grid { direction: rtl; }
body[dir="rtl"] .lang-toggle .en { display: none; }
body[dir="ltr"] .lang-toggle .ar { display: none; }

/* ----------- Reveal anim ----------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ----------- Responsive ----------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16/10; }
  .cards, .feature-row, .smarty-features, .office-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-auto-rows: 200px; }
  .portfolio-grid .tile.lg { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--brand-line); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; border-radius: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .cards, .feature-row, .smarty-features, .office-grid, .portfolio-grid, .footer-grid, .cert-grid { grid-template-columns: 1fr; }
  .sdg { grid-template-columns: repeat(3, 1fr); }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .quote { padding: 32px 24px; }
}
