/* ===========================================================
   Dimax Services — brand stylesheet
   Colours:  black #1E1E1E   gold #D29D0F   cream #FAF7F1
   =========================================================== */

:root {
  --black: #1e1e1e;
  --black-soft: #2a2a2a;
  --gold: #d29d0f;
  --gold-dark: #a97d0c;
  --gold-tint: #fbf1da;
  --cream: #faf7f1;
  --grey: #6b6b6b;
  --border: #e9e3d6;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30, 30, 30, 0.08);
  --max: 1180px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black-soft);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--black-soft); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 8px 20px rgba(210,157,15,.35); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #000; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
}
.brand img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--black-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); text-decoration: none; }
.main-nav a.active { border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}
.nav-phone svg { vertical-align: -3px; margin-right: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--black);
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .nav-cta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #302a20 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(210,157,15,.25), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero h1 { color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(210,157,15,.15);
  border: 1px solid rgba(210,157,15,.4);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero p.lead {
  color: #e7e2d6;
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Trust strip */
.trust-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black-soft);
}
.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cfcabf; }

.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head .tag {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-dark);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); margin-bottom: 0; font-size: 0.97rem; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .learn { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 0.92rem; }

/* Value / feature list with check icons */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Team */
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}
.team-role { color: var(--gold-dark); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

/* CTA banner */
.cta-banner {
  background: var(--gold);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: #4a3a08; margin: 0; }
@media (max-width: 700px) { .cta-banner { padding: 36px 26px; text-align: center; justify-content: center; } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--gold); }
.stat-label { color: #cfcabf; font-size: 0.92rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.info-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.info-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-row:last-child { margin-bottom: 0; }
.info-row .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gold-tint); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row h4 { margin: 0 0 4px; font-family: var(--font-head); font-size: 1rem; }
.info-row p, .info-row a { margin: 0; color: var(--black-soft); }

.map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(30%) contrast(1.05);
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--black);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--cream);
  color: var(--black-soft);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: var(--white);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 14px; }

/* honeypot field, hidden from users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header .tag { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 0.8rem; }
.page-header p { color: #cfcabf; max-width: 620px; margin: 14px auto 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #cfcabf;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: .03em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfcabf; font-size: 0.93rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #9c988e;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
