/* ============================================================
   DECE — Institutional One-Page Website
   Design: Minimal · Elegant · Professional
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --color-black:      #0a0a0a;
  --color-charcoal:   #1a1a1a;
  --color-mid:        #5a5a5a;
  --color-muted:      #8a8a8a;
  --color-border:     #e0e0e0;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f8f8f7;
  --color-accent:     #8b7355;   /* muted warm gold */

  --font-serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height:       72px;
  --max-width:        1100px;
  --section-v:        112px;
  --section-v-sm:     72px;

  --transition-base:  0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-charcoal);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
}

.section {
  padding: var(--section-v) 0;
}

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

#nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-black);
  text-transform: uppercase;
  transition: opacity var(--transition-base);
}

.nav-logo:hover {
  opacity: 0.55;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-charcoal);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu.open {
  max-height: 200px;
  padding: 24px 0;
}

.mobile-menu ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  transition: color var(--transition-base);
}

.mobile-menu a:hover {
  color: var(--color-black);
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-black);
  color: var(--color-bg);
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  padding-top: calc(var(--nav-height) + var(--section-v) + 32px);
  padding-bottom: var(--section-v);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Wordmark + tagline */
.hero-header {
  margin-bottom: 64px;
}

.hero-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-black);
  line-height: 0.88;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Divider rule */
.hero-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin-bottom: 64px;
}

/* Core statement */
.hero-statement {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.statement-primary {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: 1.75;
}

.statement-secondary {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 300;
  color: var(--color-mid);
  line-height: 1.75;
}

/* ============================================================
   MANDATE
   ============================================================ */
.section-mandate {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.mandate-label {
  margin-bottom: 56px;
}

.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.mandate-item {
  padding: 52px 56px 52px 0;
  border-right: 1px solid var(--color-border);
}

.mandate-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 56px;
}

.mandate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.mandate-body {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-mid);
  line-height: 1.78;
  max-width: 400px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background-color: var(--color-bg);
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.contact-statement {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  color: var(--color-mid);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-location {
  margin-top: 28px;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-black);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.footer-copy {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-location {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
  :root {
    --section-v: var(--section-v-sm);
  }

  .container {
    padding: 0 36px;
  }

  .nav-inner {
    padding: 0 36px;
  }

  .mobile-menu ul {
    padding: 0 36px;
  }

  .mandate-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .mandate-item {
    padding: 40px 0;
    border-right: none;
    border-top: 1px solid var(--color-border);
  }

  .mandate-item:last-child {
    padding-left: 0;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --nav-height: 60px;
    --section-v: 64px;
  }

  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .mobile-menu ul {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-header {
    margin-bottom: 48px;
  }

  .hero-divider {
    margin-bottom: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media print {
  #nav { position: static; }
  .section-hero { min-height: auto; }
}
