/*
Theme Name: DSIC & Associates
Theme URI: https://dsicpty.com
Author: Elephant Media
Description: DSIC & Associates — Diina Shituula Infrastructure Consultants (Pty) Ltd.
Version: 0.5.0
Text Domain: dsic-associates
*/

:root {
  --navy: #1f2a44;
  --brass: #b08d57;
  --stone: #e9e4d8;
  --olive: #6b7b3a;
  --sage: #6b7b3a;
  --sage-dark: #1f2a44;
  --gold: #786038;
  --ink: #1f2a44;
  --paper: #f8f7f3;
  --white: #ffffff;
  --line: rgba(31, 42, 68, 0.18);
  --shadow: 0 24px 60px rgba(31, 42, 68, 0.12);
  --radius: 22px;
  --max: 1180px;
  --header-offset: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }
.hero-grid > *, .section-head > *, .approach-grid > *, .shituula-grid > *, .contact-grid > *, .projects-note > *, .footer-grid > * { min-width: 0; }
h1, h2, h3, p, address, .contact-card a { overflow-wrap: anywhere; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .19em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 7.5vw, 6.5rem); font-weight: 500; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 500; }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0; }

.site-header {
  position: sticky;
  z-index: 20;
  top: var(--header-offset);
  border-bottom: 1px solid var(--line);
  background: #fff;
  backdrop-filter: blur(14px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; color: var(--gold); }
.brand-mark { flex: 0 0 auto; }
.brand-name { font-weight: 800; letter-spacing: .06em; }
.brand-name span { color: var(--sage-dark); font-weight: 500; }
.brand { width: 235px; height: 114px; overflow: hidden; flex: 0 0 auto; justify-content: center; }
.brand-logo { display: block; width: 250px; max-width: none; height: auto; }
.brand-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.brand-panel img { display: block; width: 100%; }
.brand-panel-caption { display: grid; gap: 12px; padding: 24px 4px 4px; border-top: 1px solid var(--stone); font-size: .85rem; font-weight: 650; }
.brand-panel-caption span { border-left: 3px solid var(--brass); padding-left: 14px; }
.copy-gap { margin-top: 24px; }
.legal-intro { margin-top: 20px; max-width: 580px; font-size: .85rem; color: #4b5260; }
.contact-phone { margin-top: 24px; }
.dsic-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dsic-service-grid .service-card:nth-child(odd) { border-right: 1px solid var(--line); }
.dsic-service-grid .service-card:nth-child(even) { border-right: 0; }
.service-card .text-link { font-size: .88rem; }
.service-card h3 { line-height: 1.25; }
.subsidiary-page { --ink: #4c5255; --sage-dark: #52602d; --gold: #52602d; --line: rgba(76,82,85,.2); background: #f4f4f1; }
.subsidiary-statement { padding: 40px; background: #6b7b3a; color: #fff; border-radius: 18px; }
.subsidiary-statement strong { display: block; margin-block: 25px; font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.2 Georgia, serif; }
.subsidiary-statement .eyebrow { color: #fff; }
.shituula .eyebrow { color: #fff; }
.shituula .button { margin-top: 28px; }
.shituula .button-primary { background: #42484b; }
.contact .eyebrow, .approach-panel .eyebrow { color: #d4b989; }
.contact .button-ghost { border-color: rgba(255,255,255,.5); background: transparent; }
.hero h1 span { color: #786038; }
.subsidiary-page .hero h1 span { color: #52602d; }
.hero-copy, .section-head p, .approach-copy p, .service-card p, .projects-note p, .content-lede, .detail-section p { color: #505968; }
.subsidiary-page .hero-copy, .subsidiary-page .section-head p, .subsidiary-page .service-card p, .subsidiary-page .detail-section p { color: #54595c; }
.service-number, .detail-number { color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: .88rem; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-cta { padding: 11px 17px; border: 1px solid var(--gold); border-radius: 999px; }
.menu-toggle { display: none; flex: 0 0 auto; min-width: 64px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
body.admin-bar { --header-offset: 32px; }

.hero { min-height: min(820px, calc(100svh - 78px)); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-block: 88px; }
.hero h1 span { color: var(--sage-dark); }
.hero-copy { margin-top: 34px; max-width: 670px; font-size: clamp(1rem, 1.4vw, 1.22rem); color: #4c5a52; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; max-width: 100%; padding: 12px 22px; border-radius: 999px; font-weight: 760; text-align: center; line-height: 1.4; }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--sage-dark); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.hero-card { position: relative; border-radius: 180px 180px 22px 22px; min-height: 500px; padding: 38px; overflow: hidden; color: var(--white); background: var(--sage-dark); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: 18% -30% auto; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.hero-card::after { content: ""; position: absolute; width: 140%; height: 43%; left: -20%; bottom: -12%; transform: rotate(-7deg); background: var(--gold); opacity: .9; }
.hero-card-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 190px; }
.hero-card strong { font: 500 2rem/1.08 Georgia, serif; }
.hero-card small { max-width: 16rem; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }

.skyline { width: 100%; height: 86px; color: var(--gold); }
.section { padding-block: clamp(78px, 10vw, 138px); }
.section-head { display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; align-items: start; margin-bottom: 58px; }
.section-head p { max-width: 680px; color: #56645c; }
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-card { min-height: 250px; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card:nth-child(3n) { border-right: 0; }
.service-number { color: var(--gold); font: 500 2.5rem/1 Georgia, serif; }
.service-card h3 { margin-top: 68px; }
.service-card p { margin-top: 12px; color: #637068; font-size: .94rem; }

.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.approach-panel { padding: clamp(30px, 5vw, 62px); border-radius: var(--radius); background: var(--ink); color: var(--white); }
.approach-panel ol { list-style: none; margin: 36px 0 0; padding: 0; }
.approach-panel li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.approach-panel li span { color: #dbc16f; font-weight: 800; }
.approach-copy p { margin-top: 24px; color: #56645c; }

.shituula { background: var(--sage); color: var(--white); }
.shituula-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.shituula p { margin-top: 26px; max-width: 700px; color: rgba(255,255,255,.85); }
.shituula-note { padding: 28px; border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.shituula-note strong { display: block; margin-bottom: 8px; }

.projects-note { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.projects-note p { color: #5f6c64; }

.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: end; }
.contact p { margin-top: 24px; color: rgba(255,255,255,.72); }
.contact-card { padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.contact-card a { display: block; font-size: clamp(1.08rem, 2vw, 1.4rem); font-weight: 750; }
.contact-card small { display: block; margin-top: 12px; color: rgba(255,255,255,.62); }

.site-footer { padding-block: 28px; color: #68736c; background: var(--paper); font-size: .84rem; }
.office-directory { padding-block: 30px 48px; scroll-margin-top: 100px; }
.office-directory h2 { margin-top: 12px; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.office-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.office-card h3 { color: var(--sage-dark); }
.office-card address { margin-top: 16px; color: var(--ink); font-size: 1rem; font-style: normal; line-height: 1.65; }
.office-card .office-pending { margin-top: 12px; font-size: .88rem; color: #637068; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.enquiry-intro { padding-block: 38px 64px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--sage-dark); font-size: .88rem; }
.enquiry-intro h1 { margin-top: 18px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.enquiry-intro h1 span { color: var(--sage-dark); }
.enquiry-intro > p:last-child { max-width: 700px; margin-top: 24px; color: #56645c; font-size: 1.08rem; }
.enquiry-layout { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.65fr); gap: 46px; align-items: start; padding-bottom: 90px; }
.enquiry-aside { position: sticky; top: 110px; background: var(--ink); color: white; padding: 30px; border-radius: 20px; }
.enquiry-aside h2 { font-size: 2.2rem; margin-block: 16px 22px; }
.enquiry-aside p:not(.eyebrow), .enquiry-aside li { color: #d6dfd8; }
.enquiry-aside ul { padding-left: 20px; margin-block: 24px; }
.enquiry-aside .eyebrow { color: #dbc16f; }
.enquiry-aside a, .enquiry-small a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.enquiry-aside .enquiry-small + .enquiry-small { margin-top: 24px; }
.enquiry-panel { background: white; padding: clamp(22px, 3.5vw, 42px); border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.project-enquiry { scroll-margin-top: 110px; }
.project-enquiry fieldset { border: 0; border-top: 1px solid var(--line); margin: 30px 0 0; padding: 24px 0 0; min-width: 0; }
.project-enquiry legend { padding-right: 14px; font-size: 1.13rem; font-weight: 750; }
.project-enquiry legend span { margin-right: 10px; color: var(--gold); }
.project-enquiry legend small { font-size: .8rem; color: #637068; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-field { margin-bottom: 20px; min-width: 0; scroll-margin-top: 110px; }
.form-field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #859188; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.form-field textarea { resize: vertical; }
.form-field [aria-invalid="true"] { border-color: #a33129; }
.field-hint, .enquiry-small { color: #58675e; font-size: .83rem; line-height: 1.65; }
.field-hint { margin-top: 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.checkbox-grid label { display: flex; align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .88rem; cursor: pointer; }
.checkbox-grid label:has(input:checked) { background: #f0f4eb; border-color: var(--sage-dark); }
.checkbox-grid input, .consent-field input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--sage-dark); }
.consent-field { margin-block: 28px 14px; scroll-margin-top: 110px; }
.consent-field label { display: flex; align-items: start; gap: 12px; min-height: 44px; padding-block: 8px; font-size: .9rem; cursor: pointer; }
.enquiry-submit { margin-top: 26px; border: 0; font: inherit; font-weight: 750; cursor: pointer; gap: 25px; }
.enquiry-submit:disabled { opacity: .7; cursor: wait; }
[data-submit-status] { margin-top: 14px; }
.enquiry-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.enquiry-errors { background: #fff2ed; border: 1px solid #a33129; padding: 20px; border-radius: 10px; margin-bottom: 24px; }
.enquiry-errors h2 { font: 700 1.15rem/1.4 system-ui, sans-serif; }
.enquiry-errors ul { padding-left: 20px; }
.enquiry-errors a { text-decoration: underline; }
.field-error { color: #a33129; margin-top: 6px; font-size: .84rem; }
.enquiry-success h2 { font-size: 2.8rem; margin-top: 14px; }
.enquiry-success p, .enquiry-success .button { margin-top: 24px; }

@media (max-width: 960px) {
  .nav { gap: 14px; }
  .nav-enhanced .menu-toggle { display: block; }
  .nav-enhanced .nav-links { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 90px - var(--header-offset)); overflow-y: auto; padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29,42,36,.08); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-links a { padding: 10px 14px; }
  .nav-enhanced .nav-links.is-open { display: flex; }
  .nav:not(.nav-enhanced) { flex-wrap: wrap; padding-block: 14px; }
  .nav:not(.nav-enhanced) .nav-links { width: 100%; }
}

@media (max-width: 880px) {
  .enquiry-layout { grid-template-columns: 1fr; gap: 24px; }
  .enquiry-aside { position: static; }
  .hero-grid, .section-head, .approach-grid, .shituula-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { gap: 40px; padding-block: 64px; }
  .hero-card { min-height: 320px; max-width: 520px; width: 100%; padding: 34px; border-radius: 100px 100px 22px 22px; }
  .hero-card-inner { gap: 110px; }
  .section-head { gap: 24px; margin-bottom: 36px; }
  .approach-grid, .shituula-grid, .contact-grid { gap: 36px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .service-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 782px) {
  body.admin-bar { --header-offset: 46px; }
}
@media (max-width: 640px) {
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .enquiry-submit { width: 100%; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 70px; gap: 10px; }
  .brand { gap: 8px; }
  .brand { width: 180px; height: 92px; }
  .brand-logo { width: 200px; }
  .brand-panel { padding: 18px; }
  .subsidiary-statement { padding: 26px; }
  .dsic-service-grid { grid-template-columns: 1fr; }
  .dsic-service-grid .service-card:nth-child(odd) { border-right: 0; }
  .brand-mark { width: 36px; }
  .brand-name { font-size: .82rem; letter-spacing: .025em; }
  .hero-grid { padding-block: 44px; gap: 34px; }
  .hero-copy, .hero-actions { margin-top: 24px; }
  .hero-card { min-height: 290px; padding: 30px; }
  .hero-card-inner { gap: 90px; }
  .hero-card strong { font-size: 1.8rem; }
  .section { padding-block: 58px; }
  .service-card { min-height: auto; padding: 26px 12px; }
  .service-card h3 { margin-top: 30px; }
  .contact-card, .projects-note, .shituula-note { padding: 24px; }
  .enquiry-intro { padding-block: 28px 36px; }
  .enquiry-intro h1 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
  .back-link { margin-bottom: 22px; min-height: 44px; display: inline-flex; align-items: center; }
  .enquiry-aside { padding: 24px; }
  .enquiry-aside h2 { font-size: 1.8rem; }
  .enquiry-panel { padding: 20px 16px; }
  .enquiry-layout { padding-bottom: 50px; }
  .project-enquiry legend small { display: block; margin-top: 6px; }
  .service-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(3n) { border-right: 0; }
  .projects-note { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-name span { display: block; }
  .hero-actions .button { width: 100%; }
}

@media (max-width: 600px) {
  body.admin-bar { --header-offset: 0px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Editorial pages share the established palette, without adding dependencies. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 8px; margin-top: 14px; color: var(--sage-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.text-link:hover { color: var(--gold); }
.content-intro { padding-block: 42px 60px; }
.content-intro h1 { max-width: 980px; margin-top: 18px; font-size: clamp(2.5rem, 6.3vw, 5.5rem); }
.content-lede { max-width: 780px; margin-top: 28px; color: #4c5a52; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.page-index { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-index strong { width: 100%; font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; }
.page-index a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--sage-dark); text-decoration: underline; text-underline-offset: 4px; }
.detail-section { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 36px; border-top: 1px solid var(--line); padding-block: 54px 64px; scroll-margin-top: 100px; }
.detail-number { font: 500 2.5rem/1 Georgia, serif; color: var(--gold); padding-top: 8px; }
.detail-section h2 { font-size: clamp(1.85rem, 3.6vw, 3.2rem); max-width: 820px; }
.detail-section > div { min-width: 0; }
.detail-section p { max-width: 75ch; margin-top: 22px; color: #4c5a52; }
.detail-list { max-width: 75ch; padding-left: 22px; margin-block: 26px 0; }
.detail-list li { padding-left: 5px; margin-top: 12px; overflow-wrap: anywhere; }
.detail-list li::marker { color: var(--gold); }
.detail-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 28px; }
.detail-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.detail-card h3 { font-size: 1.2rem; line-height: 1.3; }
.detail-card p { margin-top: 16px; }
.detail-card .text-link { margin-top: auto; padding-top: 20px; }
.related-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--line); padding-block: 10px 18px; margin-top: 14px; }
.faq-item summary { padding-block: 12px; font-weight: 750; cursor: pointer; min-height: 48px; overflow-wrap: anywhere; }
.faq-item summary::marker { color: var(--gold); }
.faq-item p { margin-top: 8px; }
.content-cta { padding-block: 64px; }
.content-cta h2 { margin-top: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 30px 42px; border-bottom: 1px solid var(--line); }
.footer-links > div { min-width: 0; }
.footer-links h3 { margin-bottom: 14px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.office-card .text-link { font-size: .85rem; }
.editorial-fallback p { max-width: 75ch; margin-top: 24px; }
@media (max-width: 880px) {
  .detail-section { grid-template-columns: 52px minmax(0, 1fr); gap: 22px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .content-intro { padding-block: 28px 36px; }
  .content-intro h1 { font-size: clamp(2.3rem, 8vw, 3.4rem); }
  .content-lede { margin-top: 22px; }
  .detail-section { grid-template-columns: 1fr; gap: 16px; padding-block: 34px 42px; }
  .detail-number { font-size: 1.7rem; }
  .detail-card { padding: 22px; }
  .content-cta { padding-block: 44px; }
  .footer-links { grid-template-columns: 1fr; gap: 28px; }
}

