/* ============================================================
   MARTIN & HALLER LTD — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  --navy:    #1f3354;
  --navy-mid:#2b4470;
  --gold:    #b8862f;
  --gold-lt: #d29f45;
  --ink:     #22252b;
  --muted:   #5b5e66;
  --border:  #e6dfd2;
  --light:   #faf6ef;
  --cream:   #fdfaf4;
  --sage:    #e8efe6;
  --white:   #ffffff;
  --danger:  #c0392b;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;
  --font-mono:    'Nunito Sans', 'Segoe UI', sans-serif;

  --nav-h: 72px;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(31,51,84,0.07);
  --shadow-lg: 0 8px 32px rgba(26,39,68,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

img { max-width: 100%; display: block; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 1px solid rgba(184,145,58,0.25);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand .firm-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-brand .firm-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-links .nav-portal {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 520px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(184,145,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 60%);
}

.hero-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
}

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 48px 56px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(184,145,58,0.10) 0%, transparent 70%);
}

.page-hero-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
}

.page-hero-content { position: relative; }

.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.page-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  margin-top: 12px;
  max-width: 560px;
}

/* ── NOTICE BANNER ───────────────────────────────────── */
.notice-banner {
  background: #f9f5ec;
  border-top: 3px solid var(--gold);
  padding: 26px 48px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
}

.notice-banner strong { color: var(--navy); }

/* ── SECTIONS ────────────────────────────────────────── */
.section {
  padding: 88px 48px;
}

.section-light { background: var(--light); }
.section-white { background: var(--cream); }
.section-navy  { background: var(--navy); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 18px;
}

.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 32px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  border-radius: 999px;
}

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

.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,145,58,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #f0ede6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

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

/* ── FORMS ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 5px;
}

.required { color: var(--danger); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 48px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.25fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand .firm-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand .tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

.footer-col address a {
  color: rgba(255,255,255,0.65);
}

.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 50%, var(--navy-mid) 100%);
}

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

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SUCCESS MESSAGE ─────────────────────────────────── */
.success-msg {
  display: none;
  background: #edf7ed;
  border: 1.5px solid #4caf50;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #2e7d32;
  font-size: 0.95rem;
  margin-top: 18px;
}

/* ── MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 22px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px 22px 32px;
    gap: 0;
    border-top: 1px solid rgba(184,145,58,0.2);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.95rem;
  }

  .nav-links .nav-portal {
    display: inline-block;
    margin-top: 16px;
    padding: 11px 22px;
    border-bottom: none;
  }

  .hamburger { display: flex; }

  .hero, .page-hero { padding-left: 22px; padding-right: 22px; }

  .section { padding: 60px 22px; }

  .notice-banner {
  padding: 16px 22px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  footer { padding: 48px 22px 0; }

  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── WARM REFRESH ADDITIONS ─────────────────────────── */
.section-label { font-weight: 800; letter-spacing: 0.14em; font-size: 0.74rem; }
.form-group label { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.notice-banner { border-top: none; background: var(--sage); color: #3d4a3b; }
.notice-banner strong { color: #2d3b2b; }

.doors { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.door {
  background: var(--white); border:1px solid var(--border); border-radius: 18px;
  padding: 40px 36px; box-shadow: var(--shadow); display:flex; flex-direction:column;
}
.door-client { border-top: 6px solid var(--navy); }
.door-new { border-top: 6px solid var(--gold); }
.door h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.75rem; line-height:1.2; margin: 6px 0 12px; }
.door p { color: var(--muted); font-size: 1rem; }
.door ul { list-style:none; margin: 18px 0 26px; display:flex; flex-direction:column; gap:10px; }
.door li a, .door li span { display:flex; gap:12px; align-items:center; color: var(--navy); font-weight:600; font-size:1rem; }
.door li .ic { width:34px; height:34px; border-radius:50%; background: var(--light); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; border:1px solid var(--border); }
.door .btn { margin-top:auto; align-self:flex-start; }

.info-strip { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-tile { background: var(--white); border:1px solid var(--border); border-radius: 16px; padding: 26px 26px; }
.info-tile h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.info-tile p, .info-tile a { color: var(--muted); font-size: 0.97rem; }
.info-tile a.big { color: var(--navy); font-weight:700; font-size:1.05rem; word-break: break-all; }
.hours-grid { display:grid; grid-template-columns: 96px 1fr; gap: 2px 8px; font-size:0.97rem; color: var(--ink); }
.hours-grid .d { color: var(--muted); }

@media (max-width: 768px) {
  .doors, .info-strip { grid-template-columns: 1fr; }
  .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  .door { padding: 30px 24px; }
}
.notice-banner .banner-link { color:#2d3b2b; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.notice-banner .banner-link:hover { color: var(--gold); }
