/* ============================================================
   Dimension Applications & Resources Ltd — Service Profile
   Main Stylesheet
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy:  #0d1e3a;
  --navy2: #152a4e;
  --navy3: #1d3c6b;
  --gold:  #c8943a;
  --gold2: #e6b548;
  --cream: #faf7f2;
  --white: #ffffff;
  --g1:    #f0ece5;
  --g2:    #d6d0c6;
  --g3:    #948e82;
  --text:  #1a1410;
  --text2: #3c3228;
  --transition: 0.25s ease;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Navigation ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  background: rgba(13, 30, 58, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 148, 58, 0.22);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; flex-shrink: 0;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  /* Logo has black text — invert to white for dark nav */
  filter: invert(1) brightness(2);
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.nav-brand:hover .nav-logo { opacity: 0.82; }

/* Thin vertical rule separating logo from company name */
.nav-brand::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(200, 148, 58, 0.35);
  flex-shrink: 0;
}

.nav-company-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-brand:hover .nav-company-name { color: var(--gold); }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy); padding: 0.82rem 2rem; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(200,148,58,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(200,148,58,0.45); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.78);
  padding: 0.82rem 2rem; border-radius: 4px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  display: inline-block; transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Shared Section Labels & Titles ───────────────────── */
.sec-label {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.9rem;
}
.sec-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.sec-label--light { color: var(--gold); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700; line-height: 1.15; color: var(--navy);
}
.sec-title em { font-style: italic; }
.sec-title--light { color: var(--white); }
.sec-title--light em { color: var(--gold2); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: 68px;
  background: var(--navy);
  display: grid; grid-template-columns: 55% 45%;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(200,148,58,.13) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(29,60,107,.7) 0%, transparent 45%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,148,58,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,148,58,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3.5rem 5rem 4.5rem;
}
.hero__kicker {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero__kicker::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 1.4rem;
}
.hero__title em { font-style: italic; color: var(--gold2); }
.hero__sub {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,.6); max-width: 440px; margin-bottom: 2.8rem;
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 5rem 4rem 5rem 2rem; gap: 1.5rem;
}
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(200,148,58,.18); border: 1px solid rgba(200,148,58,.18);
  border-radius: 8px; overflow: hidden; width: 100%; max-width: 380px;
}
.stat-tile {
  background: rgba(13,30,58,.88);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem;
  transition: background var(--transition);
}
.stat-tile:hover { background: rgba(21,42,78,.95); }
.stat-tile__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700; color: var(--gold2); line-height: 1;
}
.stat-tile__lbl {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hero__quote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.6;
  text-align: center; max-width: 380px;
}

/* ── About ─────────────────────────────────────────────── */
.about {
  background: var(--white);
  padding: 6rem 4.5rem;
  display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center;
  border-left: 4px solid var(--gold);
}
.about__body { font-size: 15px; line-height: 1.9; color: var(--text2); }
.about__body p + p { margin-top: 1rem; }
.about__quote {
  margin-top: 2rem; padding: 1.4rem 1.6rem;
  background: var(--navy); border-left: 4px solid var(--gold);
  border-radius: 0 5px 5px 0;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.72);
}
.about__quote strong { font-style: normal; color: var(--gold2); }

/* ── Solutions ─────────────────────────────────────────── */
.solutions { background: var(--cream); padding: 6rem 4.5rem; }
.solutions__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; gap: 2rem;
}
.solutions__note { max-width: 300px; font-size: 14px; color: var(--g3); line-height: 1.65; text-align: right; }

.sol-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--g2); border: 1px solid var(--g2);
  border-radius: 8px; overflow: hidden;
}
.sol-card {
  background: var(--white); padding: 2rem 1.75rem 2.25rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background var(--transition), transform var(--transition);
  position: relative; overflow: hidden; cursor: default;
}
.sol-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 0.3s ease;
}
.sol-card:hover { background: var(--navy); transform: translateY(-2px); }
.sol-card:hover::after { width: 100%; }
.sol-card:hover .sol-card__name   { color: var(--white); }
.sol-card:hover .sol-card__sector { color: rgba(255,255,255,.48); }
.sol-card:hover .sol-card__desc   { color: rgba(255,255,255,.65); }
.sol-card:hover .sol-card__icon   { background: rgba(200,148,58,.18); }
.sol-card__icon {
  width: 42px; height: 42px; border-radius: 8px; background: var(--g1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 0.2rem; transition: background var(--transition);
}
.sol-card__name   { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; transition: color var(--transition); }
.sol-card__sector { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; transition: color var(--transition); }
.sol-card__desc   { font-size: 12px; color: var(--g3); line-height: 1.55; transition: color var(--transition); }

/* ── Why Us ────────────────────────────────────────────── */
.why {
  background: var(--navy); padding: 6rem 4.5rem;
  position: relative; overflow: hidden;
}
.why::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 50%, rgba(200,148,58,.08) 0%, transparent 55%);
}
.why__inner { position: relative; z-index: 2; }
.why__header { margin-bottom: 3rem; }

.why-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07); border-radius: 8px; overflow: hidden;
}
.why-card {
  background: rgba(13,30,58,.82); padding: 2rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background var(--transition);
}
.why-card:hover { background: rgba(21,42,78,.96); }
.why-card__score { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold2); line-height: 1; }
.why-card__label { font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.3; }
.why-card__desc  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.why-card__bar   { margin-top: auto; padding-top: 1rem; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.why-card__bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 2px; width: 0; transition: width 1.1s ease; }

/* ── Engage ────────────────────────────────────────────── */
.engage { background: var(--white); padding: 6rem 4.5rem; }
.engage__header { margin-bottom: 3.5rem; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 46px; left: calc(16.66% + 28px); right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  z-index: 1;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 2.5rem;
}
.step__num {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--gold2); position: relative; z-index: 2; margin-bottom: 1.6rem;
  box-shadow: 0 0 0 8px var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover .step__num {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px var(--white), 0 8px 24px rgba(200,148,58,.28);
}
.step__name { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 0.65rem; }
.step__text { font-size: 13px; color: var(--g3); line-height: 1.7; }

.engage-note {
  margin-top: 3rem; padding: 1.4rem 1.8rem;
  background: var(--g1); border-radius: 6px;
  display: flex; align-items: flex-start; gap: 1.1rem;
}
.engage-note__icon { font-size: 22px; flex-shrink: 0; margin-top: 0.1rem; }
.engage-note p { font-size: 14px; color: var(--text2); line-height: 1.65; }
.engage-note strong { color: var(--navy); }

/* ── Contact / CTA ─────────────────────────────────────── */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  padding: 6rem 4.5rem; position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 50%, rgba(200,148,58,.14) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 50%, rgba(29,60,107,.5) 0%, transparent 40%);
}
.contact__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.contact__heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700; line-height: 1.12; color: var(--white); margin-bottom: 1.4rem;
}
.contact__heading em { font-style: italic; color: var(--gold2); }
.contact__body { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.62); margin-bottom: 2.2rem; }
.contact__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,148,58,.22); border-radius: 8px; padding: 2.25rem;
}
.contact-card__title {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600;
  color: var(--gold2); margin-bottom: 1.4rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(200,148,58,.18);
}
.contact-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row__icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px;
  background: rgba(200,148,58,.13);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.contact-row__lbl {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,.32); margin-bottom: 2px;
}
.contact-row__val { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.5; }
.contact-row__val a { color: var(--gold2); text-decoration: none; }
.contact-row__val a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(200,148,58,.14);
  padding: 1.75rem 4.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,.32); line-height: 1.6; }
.footer__copy strong { color: rgba(255,255,255,.58); }
.footer__tag {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(200,148,58,.45);
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .17s; }
.d3 { transition-delay: .26s; }
.d4 { transition-delay: .35s; }
.d5 { transition-delay: .44s; }

/* ── Hero Entry Animations ─────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.hero__kicker { animation: fadeIn  .55s ease both .20s; opacity: 0; }
.hero__title  { animation: fadeUp  .65s ease both .35s; opacity: 0; }
.hero__sub    { animation: fadeUp  .65s ease both .50s; opacity: 0; }
.hero__btns   { animation: fadeUp  .65s ease both .65s; opacity: 0; }
.hero__right  { animation: fadeIn  .90s ease both .45s; opacity: 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sol-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-cards  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-company-name { display: none; }
  .nav-brand::after { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__right { display: none; }
  .hero__left  { padding: 4rem 2rem; }
  .about { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 2.5rem; }
  .solutions, .why, .engage, .contact { padding: 4rem 2rem; }
  .solutions__header { flex-direction: column; align-items: flex-start; }
  .solutions__note { text-align: left; }
  .sol-grid   { grid-template-columns: 1fr 1fr; }
  .why-cards  { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .footer { flex-direction: column; text-align: center; padding: 1.75rem 2rem; }
}
@media (max-width: 560px) {
  .sol-grid  { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
}
