/* ============================================================
   Burgmann-Direct Enterprise Limited
   style.css — Production v3 (Enterprise Optimized)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --gold:       #C9A84C;
  --gold-dim:   #b8933e;
  --gold-light: #F0DFA0;
  --gold-pale:  #FAF6EB;
  --black:      #0A0A0A;
  --dark:       #171717;
  --charcoal:   #262626;
  --mid:        #525252;
  --border:     #E5E5E5;
  --bg:         #F8F9FA;
  --white:      #FFFFFF;
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --wrap:       1200px;
  --gutter:     24px;
  --radius:     6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  font-size: 16px; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; /* Accounts for sticky nav */
}
body { 
  font-family: var(--font-body); 
  color: var(--dark); 
  background: var(--bg); 
  line-height: 1.6; 
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; transition: color var(--transition); }
ul   { list-style: none; }

/* Focus Accessibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Page Loader ── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 40px; height: 40px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Layout & Typography ── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--mid); line-height: 1.75; }

/* ── Utilities ── */
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.rule { width: 48px; height: 2px; background: var(--gold); margin: 16px 0 24px; border-radius: 2px; }
.rule--center { margin-inline: auto; }

.section     { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.7); }
.section--gray { background: var(--bg); }
.section--white { background: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body); font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-gold  { background: var(--gold); color: var(--white); }
.btn-gold:hover  { background: var(--gold-dim); box-shadow: var(--shadow-md); }
.btn-dark  { background: var(--black); color: var(--white); }
.btn-dark:hover  { background: var(--charcoal); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-sm { padding: 10px 24px; font-size: 0.8125rem; }

/* ── Navigation ── */
.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 900; height: 72px;
  display: flex; align-items: center;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.nav.stuck { 
  background: rgba(8,8,8,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo-mark {
  width: 40px; height: 40px; background: var(--gold);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem;
  color: var(--white); flex-shrink: 0;
}
.nav__logo-name { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.nav__logo-sub  { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* Added wrapper for desktop layout */
.nav__menu { display: flex; align-items: center; }

.nav__list { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 16px; font-size: 0.875rem;
  font-weight: 500; 
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__cta { margin-left: 16px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  background: none; border: none;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  background: var(--black); min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 50vw; height: 100%;
  background: radial-gradient(circle at top right, rgba(201,168,76,0.1), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 64px; align-items: center;
  position: relative; z-index: 2;
}
.hero__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero__label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--gold); }
.hero__sub { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 540px; margin-bottom: 40px; }

.hero__panel {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 40px 32px; background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__panel-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero__stat { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hero__stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero__stat-val { font-family: var(--font-head); font-size: 2.25rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero__stat-val span { color: var(--gold); }
.hero__stat-lbl { font-size: 0.8125rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Services Grid ── */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.svc-card { 
  background: var(--white); padding: 40px 32px; 
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.svc-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-lg); 
  border-color: var(--gold-light);
}
.svc-card__icon {
  width: 48px; height: 48px; background: var(--bg);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; transition: all var(--transition);
}
.svc-card:hover .svc-card__icon { background: var(--gold); }
.svc-card__icon svg { width: 24px; height: 24px; stroke: var(--gold); transition: stroke var(--transition); }
.svc-card:hover .svc-card__icon svg { stroke: var(--white); }
.svc-card h3 { font-size: 1.125rem; margin-bottom: 12px; }
.svc-card p  { font-size: 0.875rem; margin: 0; }

/* ── Team Grid ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { 
  background: var(--white);
  border-radius: var(--radius); overflow: hidden; 
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__photo, .team-card__initials { 
  width: 100%; aspect-ratio: 4/5; /* Better scaling than fixed heights */
  object-fit: cover; object-position: top center; 
}
.team-card__initials {
  background: linear-gradient(135deg, var(--dark), var(--charcoal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--gold);
}
.team-card__body { padding: 24px 32px; text-align: center; }
.team-card__name { font-size: 1.25rem; margin-bottom: 4px; }
.team-card__role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

/* ── CTA Band ── */
.cta-band { padding: 80px 0; background: var(--gold); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p  { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin: 0; }
.cta-band__btns { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.footer { background: var(--black); padding: 80px 0 0; color: rgba(255,255,255,0.6); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px; padding-bottom: 64px; }
.footer__hed { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 24px; }
.footer__desc { font-size: 0.875rem; line-height: 1.8; margin-bottom: 24px; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 0.875rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }
.footer__bar { 
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; 
  font-size: 0.8125rem; flex-wrap: wrap; gap: 16px; 
}

/* ── Responsive Architecture ── */
@media (max-width: 1024px) {
  .hero__inner    { grid-template-columns: 1fr; gap: 48px; }
  .hero__panel    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 24px; }
  .hero__stat     { padding: 16px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.1); text-align: center; }
  .hero__stat:last-child { border-right: none; }
  .hero__panel-title { grid-column: 1/-1; text-align: center; }
  
  .svc-grid       { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }

  /* Fixed Mobile Nav */
  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    height: calc(100dvh - 72px); /* 100dvh prevents cut-off on mobile browsers */
    background: var(--black); padding: 32px 24px;
    gap: 16px; overflow-y: auto;
  }
  .nav__list { display: flex; flex-direction: column; width: 100%; gap: 0; }
  .nav__link { padding: 12px 0; font-size: 1.125rem; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
  
  /* CTA sits neatly inside the dropdown now */
  .nav__cta { margin-left: 0; margin-top: 24px; display: inline-flex; width: 100%; justify-content: center; }
  .nav__burger { display: flex; }

  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero__panel { grid-template-columns: 1fr 1fr; }
  .hero__stat  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero__stat:nth-child(even) { border-right: none; border-left: 1px solid rgba(255,255,255,0.1); }
  .hero__stat:nth-child(n+4) { border-bottom: none; }

  .svc-grid       { grid-template-columns: 1fr; }
  .team-grid      { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer__grid   { grid-template-columns: 1fr; text-align: center; }
  .footer__bar    { flex-direction: column; text-align: center; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__btns  { justify-content: center; width: 100%; }
  .cta-band__btns .btn { width: 100%; }
}
