/* ============================================================
   EDIFICE MASTER — MAIN STYLESHEET
   Brand: Deep Teal #092f30 | Gold #d19e5e
   Style Reference: QatarEnergy corporate authority
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --brand-deep:    #092f30;
  --brand-mid:     #0d3d3e;
  --brand-light:   #1a5254;
  --brand-gold:    #d19e5e;
  --brand-gold2:   #b8863e;
  --brand-dark:    #051c1d;

  --bg:            #ffffff;
  --surface:       #f4f6f7;
  --surface2:      #eaedee;
  --ink:           #0b1a1b;
  --muted:         rgba(11,26,27,.65);
  --muted2:        rgba(11,26,27,.45);
  --line:          rgba(11,26,27,.10);
  --line2:         rgba(11,26,27,.06);

  --container:     1280px;
  --pad:           clamp(16px, 3vw, 32px);

  --h1:            clamp(32px, 4.5vw, 60px);
  --h2:            clamp(24px, 2.8vw, 40px);
  --h3:            clamp(18px, 1.6vw, 22px);

  --radius:        4px;
  --radius2:       6px;

  --tap:           48px;
  --shadow:        0 4px 24px rgba(9,47,48,.10);
  --shadow2:       0 12px 40px rgba(9,47,48,.16);

  --font-body:     'Barlow', system-ui, sans-serif;
  --font-display:  'Barlow Condensed', system-ui, sans-serif;

  --trans: .18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; display: block }
button { font: inherit; cursor: pointer; border: none; background: none }
svg { display: block; flex-shrink: 0 }
ul, ol { list-style: none }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Topbar ── */
.topbar {
  background: var(--brand-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  white-space: nowrap;
}
.topbar-item svg { width: 15px; height: 15px; opacity: .7 }
.topbar-item a { color: rgba(255,255,255,.85) }
.topbar-item a:hover { color: var(--brand-gold) }
.topbar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.14) }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-deep);
  border-bottom: 3px solid var(--brand-gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  height: 68px;
}
.brand { display: flex; align-items: center }
.brand img { height: 44px; width: auto }

/* ── Nav ── */
nav.primary {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
}
nav.primary a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255,255,255,.82);
  height: 100%;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
}
nav.primary a:hover { color: #fff; border-bottom-color: rgba(209,158,94,.5) }
nav.primary a.active { color: #fff; border-bottom-color: var(--brand-gold) }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 16px; height: 16px }
.btn:hover { transform: translateY(-1px) }

.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-dark);
  border-color: var(--brand-gold);
}
.btn-primary:hover { background: var(--brand-gold2); box-shadow: 0 6px 20px rgba(209,158,94,.35) }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: var(--brand-gold); color: var(--brand-gold) }

.btn-dark {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
}
.btn-dark:hover { background: var(--brand-mid); box-shadow: var(--shadow) }

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-deep); background: rgba(9,47,48,.04) }

.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 13px }

/* ── Burger ── */
.burger {
  display: none;
  width: var(--tap);
  height: var(--tap);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.9);
  transition: transform var(--trans), opacity var(--trans);
}

/* ── Mobile Drawer ── */
.mobile-drawer {
  display: none;
  background: var(--brand-dark);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-drawer.open { display: block }
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0 20px;
}
.mobile-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-drawer nav a:hover, .mobile-drawer nav a.active { color: var(--brand-gold) }
.mobile-drawer .drawer-actions {
  padding: 16px var(--pad) 0;
  display: grid;
  gap: 10px;
}
.mobile-drawer .drawer-actions .btn { width: 100%; justify-content: center }

/* ── Page Hero (internal pages) ── */
.page-hero {
  background: var(--brand-deep);
  padding: 52px 0 48px;
  border-bottom: 3px solid var(--brand-gold);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.013) 0px,
    rgba(255,255,255,.013) 1px,
    transparent 1px,
    transparent 80px
  );
}
.page-hero .container { position: relative; z-index: 1 }
.page-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 14px;
}
.page-hero-label span { width: 28px; height: 2px; background: var(--brand-gold); display: block }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 60ch;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.6) }
.breadcrumb a:hover { color: var(--brand-gold) }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5 }

/* ── Sections ── */
section { padding: 72px 0 }
.section-alt { background: var(--surface) }
.section-dark { background: var(--brand-deep); color: #fff }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.section-label span { width: 24px; height: 2px; background: var(--brand-gold); display: block }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.4px;
}
.section-head p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 64ch;
}
.section-dark .section-head p { color: rgba(255,255,255,.7) }

/* ── Divider ── */
.divider { height: 1px; background: var(--line); margin: 0 }
.divider-gold { height: 3px; background: var(--brand-gold); width: 48px }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  padding: 26px;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.card:hover {
  border-top-color: var(--brand-gold);
  box-shadow: var(--shadow2);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(9,47,48,.07);
  border: 1px solid rgba(9,47,48,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-deep);
}
.card-icon svg { width: 22px; height: 22px }
.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.65 }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-top: 16px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.card .card-link svg { width: 14px; height: 14px; transition: transform var(--trans) }
.card:hover .card-link svg { transform: translateX(3px) }

/* ── Grid ── */
.grid { display: grid; gap: 20px }
.grid-2 { grid-template-columns: repeat(2, 1fr) }
.grid-3 { grid-template-columns: repeat(3, 1fr) }
.grid-4 { grid-template-columns: repeat(4, 1fr) }

/* ── Stat strip ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.1);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.stat-item:last-child { border-right: none }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); letter-spacing: .2px }

/* ── CTA Band ── */
.cta-band {
  background: var(--brand-deep);
  border-top: 3px solid var(--brand-gold);
  padding: 52px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.1;
}
.cta-band p { font-size: 15px; color: rgba(255,255,255,.72); margin-top: 8px; max-width: 58ch }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0 }

/* ── Footer ── */
footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
  border-top: 3px solid var(--brand-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.7; max-width: 46ch }
.footer-contacts { margin-top: 20px; display: grid; gap: 10px }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.footer-contact-item svg { width: 15px; height: 15px; opacity: .6; flex-shrink: 0 }
.footer-contact-item a { color: rgba(255,255,255,.8) }
.footer-contact-item a:hover { color: var(--brand-gold) }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: grid; gap: 10px }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--brand-gold) }
.footer-links a svg { width: 13px; height: 13px; opacity: .5 }

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom-text { font-size: 13px; color: rgba(255,255,255,.42) }
.footer-bottom-right { font-size: 13px; color: rgba(255,255,255,.35) }

/* ── Float Actions ── */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 6px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius);
  transition: transform var(--trans), box-shadow var(--trans);
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(9,47,48,.18) }
.fab-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-deep);
  color: #fff;
  flex-shrink: 0;
}
.fab-icon svg { width: 18px; height: 18px }
.fab.fab-whatsapp { border-color: rgba(209,158,94,.4) }
.fab.fab-whatsapp .fab-icon { background: #1a7c40 }

/* ── Utility ── */
.text-center { text-align: center }
.text-gold { color: var(--brand-gold) }
.text-muted { color: var(--muted) }
.mt-8 { margin-top: 8px }
.mt-12 { margin-top: 12px }
.mt-16 { margin-top: 16px }
.mt-24 { margin-top: 24px }
.mt-32 { margin-top: 32px }
.mb-0 { margin-bottom: 0 }
.fw-700 { font-weight: 700 }

/* ── Responsive ── */
@media (max-width: 1080px) {
  nav.primary { display: none }
  .burger { display: flex }
  .header-cta .btn:not(.btn-icon) { display: none }
  .grid-4 { grid-template-columns: repeat(2, 1fr) }
  .stat-strip { grid-template-columns: repeat(2, 1fr) }
  .stat-item:nth-child(2) { border-right: none }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.1) }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1) }
  .footer-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 720px) {
  section { padding: 52px 0 }
  .grid-2, .grid-3 { grid-template-columns: 1fr }
  .cta-band-inner { flex-direction: column; align-items: flex-start }
  .cta-band-actions { width: 100% }
  .cta-band-actions .btn { flex: 1 }
  .footer-grid { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px }
  .float-actions { left: 16px; right: 16px; flex-direction: row }
  .fab { flex: 1; justify-content: center }
  .stat-strip { grid-template-columns: 1fr 1fr }
}
@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr 1fr }
  .grid-4 { grid-template-columns: 1fr 1fr }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important }
}

:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px }
