/* ============================================================
   TMU.COM — REDESIGN MOCKUP — SHARED STYLESHEET
   Design Language: Austere Legal / Law Firm
   Palette: Navy #1a2340 | Gold #b8973a | Cream #f7f5f0 | Dark #111827
   Typefaces: Playfair Display (headings) | EB Garamond (body) | Inter (UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --navy:    #1a2340;
  --navy-lt: #243059;
  --gold:    #b8973a;
  --gold-lt: #d4b05a;
  --cream:   #f7f5f0;
  --mid:     #e8e4dc;
  --border:  #d1c9b8;
  --dark:    #111827;
  --text:    #2d3748;
  --muted:   #6b7280;
  --white:   #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', serif;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0.05em; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 0;
}

/* Row 1: § and TradeMark on the same baseline */
.nav-logo .logo-row1 {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

/* § mark — light weight Cormorant, same visual height as TradeMark */
.nav-logo .logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}

/* TradeMark — correct mixed casing, serif */
.nav-logo .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1;
}

/* Row 2: — Unlimited — with flanking rules */
.nav-logo .logo-row2 {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
}
.nav-logo .logo-row2::before,
.nav-logo .logo-row2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--navy);
  opacity: 0.3;
}
.nav-logo .logo-unlimited {
  font-family: 'EB Garamond', serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-login {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 18px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-login:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 56px 0 52px;
  border-bottom: 3px solid var(--gold);
}
.page-hero .container { display: flex; flex-direction: column; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 12px;
}

/* ── SECTION ── */
.section {
  padding: 72px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-header {
  margin-bottom: 48px;
}

/* ── DIVIDER ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-divider span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.section-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  border-top: 3px solid var(--navy);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ── NOTICE BANNER ── */
.notice-banner {
  background: var(--mid);
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.notice-banner strong { color: var(--navy); }

/* ================================================================
   MOBILE-RESPONSIVE LAYER
   Added for tmu_mobile mockup
   ================================================================ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen mobile navigation drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 190;
  flex-direction: column;
  padding: 40px 32px;
  overflow-y: auto;
  animation: drawerIn 0.25s ease;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-drawer.open { display: flex; }
.nav-drawer ul {
  list-style: none;
  margin-bottom: 40px;
}
.nav-drawer ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer ul li a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--white);
  padding: 20px 0;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active {
  color: var(--gold);
  padding-left: 8px;
}
.nav-drawer .drawer-login {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.2s;
}
.nav-drawer .drawer-login:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── TABLET: ≤ 900px ── */
@media (max-width: 900px) {
  .container   { padding: 0 32px; }
  .nav-inner   { padding: 0 32px; }
  .footer-inner { padding: 0 32px; }

  /* Hide desktop nav items, show hamburger */
  .nav-links,
  .nav-login { display: none !important; }
  .nav-hamburger { display: flex; }

  /* Two-column grids become single column */
  .home-grid,
  .about-grid,
  .services-layout,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Sidebar stats move below text on About */
  .about-grid > div:last-child { order: -1; }

  /* Services sticky sidebar becomes horizontal scroll nav */
  .services-nav {
    position: static !important;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    margin-bottom: 8px;
  }
  .services-nav-list {
    display: inline-flex;
    gap: 0;
    white-space: nowrap;
  }
  .services-nav-list li a {
    display: inline-block;
    border-bottom: 2px solid transparent !important;
    border-left: none !important;
    padding: 10px 16px !important;
    font-size: 13px;
  }
  .services-nav-list li a.active,
  .services-nav-list li a:hover {
    border-bottom-color: var(--gold) !important;
    padding-left: 16px !important;
  }
}

/* ── MOBILE: ≤ 600px ── */
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.75; }

  .container   { padding: 0 20px; }
  .nav-inner   { padding: 0 20px; height: 60px; }
  .nav-drawer  { top: 60px; padding: 32px 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .page-hero   { padding: 36px 0 32px; }
  .section     { padding: 44px 0; }
  .section-divider { margin-bottom: 28px; }

  h1 { font-size: clamp(26px, 8vw, 36px); }
  h2 { font-size: clamp(20px, 6vw, 28px); }

  .rule { width: 32px; margin: 14px 0; }

  /* Footer links wrap to two columns */
  .footer-links { gap: 12px 20px; }
  .footer-copy  { font-size: 10px; }

  /* Stat boxes stack */
  .stat-box { padding: 24px 20px; }
  .stat-num  { font-size: 30px; }

  /* Client table becomes single column */
  .client-columns { grid-template-columns: 1fr !important; }
  .client-item    { border-right: none !important; }

  /* Contact form padding */
  .contact-form-wrap { padding: 28px 24px; }

  /* Home hero */
  .home-hero { height: auto; min-height: 360px; padding: 60px 0 48px; }
  .home-hero-content { padding: 0 20px; }
  .home-hero h1 { font-size: clamp(26px, 7vw, 38px); }
  .home-hero .hero-sub { font-size: 17px; }

  /* Sidebar box on home */
  .sidebar-box { padding: 24px 20px; }

  /* Service entries */
  .service-entry { padding: 36px 0; }
  .service-entry h2 { font-size: 22px; }
  .service-tag-row { gap: 6px; }
  .service-tag { font-size: 9px; padding: 4px 10px; }

  /* Form fields */
  .form-row input,
  .form-row select,
  .form-row textarea { font-size: 15px; padding: 10px 12px; }
  .form-submit { width: 100%; text-align: center; padding: 14px; }

  /* TEMU notice */
  .temu-notice { padding: 16px 18px; }
  .temu-notice p { font-size: 14px; }
}
