/* Dynhai Digital: site styles */

/* ---------- Brand tokens ---------- */
:root {
  --navy: #13253D;
  --ink: #0E1622;
  --text: #14202E;
  --muted: #4A5564;
  --gold: #C9A66B;
  --gold-deep: #A8864C;
  --gold-text: #7A5F2E;
  --grey: #F4F6F8;
  --mist: #EEF1F4;
  --white: #FFFFFF;
  --line: #E1E5EA;
  --line-dark: #2A3646;
  --on-dark: #C9D2DD;
  --footer-text: #9AA6B5;

  --font: 'Montserrat', system-ui, sans-serif;
  --radius: 6px;
  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(70px, 10.7vw, 128px);
  --header-height: 76px;
}

/* ---------- Header themes (set on <body data-header="...">) ---------- */
body[data-header="navy"] { --header-bg: var(--navy); --header-ink: var(--white); --nav-btn-bg: var(--gold); --nav-btn-ink: var(--ink); }
body[data-header="gold"] { --header-bg: var(--gold-deep); --header-ink: var(--white); --nav-btn-bg: var(--ink); --nav-btn-ink: var(--white); }
body[data-header="mist"] { --header-bg: var(--mist); --header-ink: var(--ink); --nav-btn-bg: var(--ink); --nav-btn-ink: var(--white); }
html.scrolled body { --header-bg: var(--white); --header-ink: var(--ink); --nav-btn-bg: var(--ink); --nav-btn-ink: var(--white); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-deep); }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

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

/* ---------- Typography ---------- */
.h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.h2--large { font-size: clamp(30px, 3.75vw, 54px); line-height: 1.12; margin-bottom: 0; }
.h2--spaced { margin-bottom: 56px; }
.h3 { font-size: 26px; margin-bottom: 12px; }
.h3--small { font-size: 20px; }
.lead { font-size: 18px; color: var(--muted); }
.eyebrow-num { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--gold-deep); margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--dark:hover { color: var(--gold); }
.btn--gold:hover { color: var(--white); }
.btn--nav { padding: 13px 26px; background: var(--nav-btn-bg); color: var(--nav-btn-ink); }
.btn--nav:hover { color: var(--nav-btn-ink); opacity: 0.9; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  transition: background 0.3s, box-shadow 0.3s;
}
html.scrolled .site-header { box-shadow: 0 2px 20px rgba(14, 22, 34, 0.12); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--header-ink); }
.brand:hover { color: var(--header-ink); }
.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}
.brand__logo img { width: 50px; height: 50px; max-width: none; object-fit: cover; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: 0.12em; margin: 0; }
.brand__name span { font-weight: 400; }
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__link { padding: 10px 0; color: var(--header-ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--header-ink); border-bottom-color: currentColor; }
.nav__link[aria-current="page"] { border-bottom-color: currentColor; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--header-ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle path { stroke: var(--header-ink); stroke-width: 2; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(14, 22, 34, 0.12);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mobile-menu .btn { margin-top: 16px; text-align: center; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}
.hero__inner { position: relative; padding-block: clamp(53px, 8vw, 96px); }
.hero__label { font-size: 26px; margin-bottom: 14px; }
.hero__title {
  max-width: 820px;
  margin-bottom: 32px;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hero__title--xl { max-width: 760px; font-size: clamp(40px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.02em; }
.hero__lead { max-width: 760px; font-size: 18px; margin-bottom: 44px; }
.hero__lead:last-child { margin-bottom: 0; }

.hero--navy { background: var(--navy); color: var(--white); }
.hero--navy .hero__lead { max-width: 620px; font-size: 19px; color: var(--on-dark); }
.hero--gold { background: var(--gold-deep); color: var(--white); }
.hero--gold .hero__label { color: rgba(255, 255, 255, 0.88); }
.hero--mist { background: var(--mist); color: var(--navy); }
.hero--mist .hero__label,
.hero--mist .hero__lead { color: var(--muted); }

/* ---------- Sunburst motif ---------- */
.motif { position: absolute; max-width: none; pointer-events: none; }
.motif--home-hero { right: -220px; top: 50%; width: 920px; transform: translateY(-50%); }
.motif--right { right: -380px; top: 50%; width: 980px; transform: translateY(-50%); }
.motif--left { left: -380px; top: 50%; width: 980px; transform: translateY(-50%) rotate(18deg); }
.motif--approach { right: -440px; top: 50%; width: 900px; transform: translateY(-50%) rotate(200deg); }
.motif--corner-top { right: -260px; top: -300px; width: 880px; transform: rotate(270deg); }
.motif--corner-bottom { right: -300px; bottom: -340px; width: 880px; transform: rotate(270deg); }

/* ---------- Sections ---------- */
.section { position: relative; overflow: hidden; padding-block: var(--section-space); }
.section > .container { position: relative; }
.section--white { background: var(--white); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .lead,
.section--dark p { color: var(--on-dark); }
.section--dark .h2,
.section--dark .h3 { color: var(--white); }
.section--dark .eyebrow-num { color: var(--gold); }
.section--ruled { border-top: 1px solid #1E2A3A; }

.prose { max-width: 760px; }
.prose--narrow { max-width: 640px; }
.prose--wide { max-width: 900px; }
.prose--end { max-width: 640px; margin-left: auto; }
.prose .lead + .btn { margin-top: 22px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px 96px; }
.split__col { flex: 1 1 min(420px, 100%); min-width: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
  margin-bottom: 56px;
}
.section-head .h2 { max-width: 640px; margin-bottom: 0; }
.section-head p { max-width: 420px; color: var(--muted); margin: 0; }

/* Service link list (home) */
.link-list { margin-top: 40px; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-list a:last-child { border-bottom: 1px solid var(--line-dark); }
.link-list a span { color: var(--gold); }
.link-list a:hover { color: var(--gold); }

/* Feature list (services) */
.feature-list { margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.feature-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.section--dark .feature-list li { border-color: var(--line-dark); }
.prose .feature-list { margin-top: 36px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.cards--three { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(14, 22, 34, 0.08);
  color: var(--text);
  text-decoration: none;
}
.card p { color: var(--muted); }
.card--link { min-height: 260px; justify-content: space-between; }
.card--link:hover { color: var(--text); box-shadow: 0 16px 40px rgba(14, 22, 34, 0.14); }
.card__label { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8A96A6; }
.card__title { display: block; margin-bottom: 14px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.card__more { margin-top: 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

/* Call to action band */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band .h2 { max-width: 760px; }

/* Steps (approach) */
.step { display: flex; flex-wrap: wrap; gap: 16px 64px; padding: 44px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step > div { flex: 1 1 min(480px, 100%); min-width: 0; }
.step p { font-size: 18px; color: var(--muted); max-width: 720px; }
.step .step__num { flex: 0 0 110px; margin: 0; font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; line-height: 1; color: var(--gold-deep); }

/* Quality grid (approach) */
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 44px 48px; max-width: 900px; }
.quality-item { border-top: 2px solid var(--gold); padding-top: 24px; }
.quality-item p { font-size: 16px; }

/* Plain list (contact) */
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-block: clamp(40px, 6vw, 72px); }
.contact__intro { flex: 1 1 min(420px, 100%); min-width: 0; }
.contact__intro .hero__title { font-size: clamp(31px, 3.9vw, 56px); margin-bottom: 28px; }
.contact__intro .hero__lead { max-width: 520px; margin-bottom: 40px; }
.contact__details { margin: 0; }
.contact__details dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.contact__details dd { margin: 6px 0 22px; color: var(--text); }
.form {
  flex: 1 1 min(520px, 100%);
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  color: var(--text);
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(14, 22, 34, 0.12);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--on-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 14px; }
.site-footer p { margin: 0 0 10px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 48px; padding-block: clamp(40px, 6vw, 72px) 36px; }
.site-footer__top > div { flex: 1 1 min(200px, 100%); }
.site-footer__brand { flex: 2 1 min(300px, 100%) !important; }
.site-footer__brand .brand__name { color: var(--white); margin-bottom: 14px; }
.site-footer__brand p:last-child { max-width: 340px; }
.site-footer__heading { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px !important; }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px 30px;
  border-top: 1px solid #1E2A3A;
  font-size: 12px;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .motif { opacity: 0.3; }
  .hero__label { font-size: 22px; }
}
@media (min-width: 761px) {
  .mobile-menu { display: none !important; }
}
