/* ═══════════════════════════════════════════════════════════════════════════════
   E MINJA & CO — STYLESHEET
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── ROOT VARIABLES ───────────────────────────────────────────────────────────── */
:root {
  --navy: #0D1B2A;
  --navy-mid: #1A2E42;
  --gold: #987D48;
  --gold-light: #B8975A;
  --cream: #F5F3EE;
  --warm-white: #FAF8F4;
  --mid: #6b7280;
  --border: rgba(152,125,72,0.22);
  --nav-h: 76px;
  --max-w: 1200px;
  --gutter: max(5vw, 20px);
  --pad-x: max(var(--gutter), calc((100% - var(--max-w)) / 2));
}

/* ── TYPOGRAPHY & BASE ────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  background: rgba(13,27,42,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(152,125,72,0.18);
}

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

.brand-lockup {
  display: block;
  height: 46px;              /* mark height; lockup width follows the 2549:460 ratio */
  width: auto;
  aspect-ratio: 2549 / 460;
  overflow: visible;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 7px 18px;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10,20,32,0.99);
  border-bottom: 1px solid rgba(152,125,72,0.2);
  backdrop-filter: blur(12px);
  z-index: 199;
  padding: 0.5rem 0 1.5rem;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0.32s;
}

.nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1), visibility 0s;
}

.nav-drawer li {
  list-style: none;
}

.nav-drawer a {
  display: block;
  padding: 0.9rem 5vw;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}

.nav-drawer a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.02);
}

.nav-drawer .nav-cta {
  margin: 1rem 5vw 0;
  text-align: center;
  display: block;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 11px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

#hero {
  min-height: min(100svh, 820px);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(152,125,72,0.03) 0,
    rgba(152,125,72,0.03) 1px,
    transparent 1px,
    transparent 80px
  );
}

.hero-bg-mark {
  position: absolute;
  right: max(-8vw, calc((100% - var(--max-w)) / 2 - 4vw));
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 42vw, 540px);
  pointer-events: none;
  opacity: 1;
}

@media (max-width: 400px) {
  .hero-bg-mark {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  animation: fadeUp 0.9s ease both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 10px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.hero-desc {
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  border-left: 1.5px solid rgba(152,125,72,0.3);
  padding-left: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(152,125,72,0.15);
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  padding: 13px 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  padding: 11px 24px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTIONS & COMMON
   ═══════════════════════════════════════════════════════════════════════════════ */

section {
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  color: var(--navy);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-lead {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mid);
  max-width: 700px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ─ Reveal animation ─ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content { opacity: 1 !important; animation: none !important; }
}

.reveal.visible {
  animation: fadeUp 0.6s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

#about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

@media (max-width: 900px) {
  .about-visual { position: static; }
}

.about-visual-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: -0.5rem;
}

.about-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 3px;
  border-left: 3px solid var(--gold);
}

.about-card-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1rem;
  font-style: italic;
}

.about-card-attr {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(13,27,42,0.08);
  border: 1px solid rgba(152,125,72,0.2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.badge:hover {
  background: rgba(152,125,72,0.1);
  border-color: rgba(152,125,72,0.4);
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pillar {
  padding: 1.25rem 1.25rem 1.35rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(152,125,72,0.15);
  border-radius: 2px;
}

.pillar-icon {
  width: 8px;
  height: 8px;
  background: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.pillar h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--navy);
}

.pillar p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

#services {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13,27,42,0.1);
  }
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  max-width: 16ch;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--navy);
}

.service-divider {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-item {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--mid);
  padding-left: 20px;
  position: relative;
}

.service-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 500;
}

.service-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMMITMENT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

#commitment {
  background: var(--navy);
  color: #fff;
}

#commitment .section-title {
  color: #fff;
}

#commitment .section-lead {
  color: rgba(255,255,255,0.6);
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.commit-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(152,125,72,0.2);
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.commit-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.commit-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

#contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-office-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-detail {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mid);
}

.contact-detail a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--navy);
}

.contact-detail a.btn-primary,
.contact-detail a.btn-primary:hover {
  color: var(--navy);
  margin-top: 1.25rem;
  font-size: 0.72rem;
  padding: 11px 22px;
}

.contact-tagline {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(13,27,42,0.03);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.contact-tagline p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--navy);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2rem var(--pad-x);
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(152,125,72,0.15);
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.footer-brand span {
  color: var(--gold);
}

.footer-copy {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-reg {
  font-size: 0.7rem;
  color: rgba(152,125,72,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .services-grid,
  .commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --nav-h: 64px; }

  .brand-lockup { height: 38px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: block; }
  .nav-drawer a { padding: 0.9rem var(--gutter); }
  .nav-drawer .nav-cta { margin: 1rem var(--gutter) 0; }

  section {
    padding-block: 3rem;
  }

  /* Hero: size to content instead of forcing a full screen */
  #hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-bg-mark {
    opacity: 0.45;
    right: -30vw;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-lead {
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .commit-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card { gap: 0.75rem; }
  .service-num { font-size: 1.8rem; }

  .about-pillars { gap: 0.75rem; margin-top: 1.5rem; }
  .pillar { padding: 1rem; }
  .pillar h4 { font-size: 1.05rem; margin-bottom: 4px; }
  .pillar p { font-size: 0.8rem; line-height: 1.5; }

  .about-text p { margin-bottom: 1.1rem; }
}

@media (max-width: 480px) {
  section {
    padding-block: 2.5rem;
  }

  .hero-tag {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
  }

  .hero-tag::before { display: none; }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .hero-desc {
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    text-align: center;
    font-size: 0.7rem;
    padding: 13px 12px;
  }

  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.62rem; letter-spacing: 0.12em; }

  .section-title { font-size: 1.75rem; }

  .service-card,
  .commit-card,
  .contact-card {
    padding: 1.25rem;
  }
}

@media (max-width: 360px) {
  .about-pillars { grid-template-columns: 1fr; }
  .hero-actions { grid-template-columns: 1fr; }
}
