/* ============================================
   Martin Legal Services — Design Tokens
   ============================================ */
:root {
  --navy: #0f2340;
  --navy-deep: #0a1830;
  --ivory: #f8f5ee;
  --ivory-dim: #efe9db;
  --brass: #b3903f;
  --brass-light: #d4b06a;
  --slate: #2b3542;
  --slate-soft: #5b6472;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}

a { text-decoration: none; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-pad { padding: 5.5rem 0; }

@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
}

/* ============================================
   Navbar
   ============================================ */
.navbar-rml {
  background: var(--navy);
  padding: 0.85rem 0;
  transition: box-shadow 0.2s ease;
}

.navbar-rml.scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.navbar-rml .navbar-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff !important;
  letter-spacing: 0.01em;
}

.navbar-rml .navbar-brand span {
  color: var(--brass-light);
}

.navbar-rml .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.6rem;
  padding: 0.4rem 0.2rem !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.navbar-rml .nav-link:hover {
  color: var(--brass-light) !important;
  border-bottom-color: var(--brass-light);
}

.navbar-rml .btn-call {
  background: var(--brass);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  white-space: nowrap;
}

.navbar-rml .btn-call:hover {
  background: var(--brass-light);
}

.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ============================================
   Hero — compact, curved bottom edge, centered
   ============================================ */
.hero-section {
  position: relative;
  height: 78vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center 30%/cover no-repeat;
  clip-path: ellipse(140% 100% at 50% 0%);
  margin-top: -1px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(10,24,48,0.55) 0%, rgba(10,24,48,0.15) 100%),
    linear-gradient(to bottom, rgba(10,24,48,0.55) 0%, rgba(10,24,48,0.30) 45%, rgba(10,24,48,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  padding: 2.25rem 2rem;
  margin: 0 1rem;
  background: rgba(10,24,48,0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
}

.hero-eyebrow {
  color: var(--brass-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  margin: 0.6rem 0;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #f1ece0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 1.6rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-cta .btn {
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  border-radius: 4px;
  margin: 0.25rem;
}

.btn-brass {
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--navy-deep);
}
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy-deep); }

.btn-outline-ivory {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-ivory:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ============================================
   Vision band
   ============================================ */
.vision-band {
  background: var(--navy);
  color: #f1ece0;
  padding: 4rem 0;
  position: relative;
}

.vision-band::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 6rem;
  color: var(--brass);
  opacity: 0.5;
  line-height: 1;
  display: block;
}

.vision-quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  max-width: 780px;
  line-height: 1.5;
}

.vision-sub {
  color: rgba(241,236,224,0.75);
  max-width: 700px;
  margin-top: 1.25rem;
  font-size: 0.98rem;
}

/* ============================================
   Practice Areas grid (8 cards, 4x2)
   ============================================ */
.practice-card {
  background: #fff;
  border: 1px solid rgba(15,35,64,0.08);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,35,64,0.12);
}

.practice-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ivory-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--brass);
  font-size: 1.4rem;
}

.practice-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.practice-card p {
  font-size: 0.92rem;
  color: var(--slate-soft);
  margin-bottom: 0;
}

/* ============================================
   About Attorney
   ============================================ */
.about-section { background: #fff; }

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  border: 6px solid var(--ivory);
  box-shadow: 0 18px 40px rgba(15,35,64,0.18);
}

.about-credentials {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-credentials li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15,35,64,0.08);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
}

.about-credentials li i {
  color: var(--brass);
  margin-top: 0.15rem;
}

/* ============================================
   Cape Cod region gallery (3-up)
   ============================================ */
.region-section {
  background: var(--ivory-dim);
}

.region-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
}

.region-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.region-photo .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(10,24,48,0.8), rgba(10,24,48,0));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */
.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(15,35,64,0.1);
  background: transparent;
}

.accordion-button {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  font-size: 1.05rem;
  padding: 1.15rem 0.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--brass);
  background: transparent;
  box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

.accordion-button::after {
  filter: sepia(1) saturate(3) hue-rotate(0deg);
}

.accordion-body {
  padding: 0 0.25rem 1.25rem;
  color: var(--slate-soft);
}

/* Glossary chip list */
.glossary-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.glossary-chip {
  background: #fff;
  border: 1px solid rgba(15,35,64,0.12);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ============================================
   Contact
   ============================================ */
.contact-section { background: #fff; }

.contact-card {
  background: var(--navy);
  color: #f1ece0;
  border-radius: 10px;
  padding: 2.5rem;
  height: 100%;
}

.contact-card h3 { color: #fff; }

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.contact-list li i {
  color: var(--brass-light);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.contact-list a { color: #f1ece0; }
.contact-list a:hover { color: var(--brass-light); }

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  box-shadow: 0 18px 40px rgba(15,35,64,0.15);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer-rml {
  background: var(--navy-deep);
  color: rgba(241,236,224,0.75);
  padding: 3rem 0 1.5rem;
}

.footer-rml .footer-brand {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-rml a {
  color: rgba(241,236,224,0.75);
}

.footer-rml a:hover { color: var(--brass-light); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(241,236,224,0.3);
  color: #f1ece0 !important;
  margin-right: 0.5rem;
}

.footer-social:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy-deep) !important;
}

.footer-divider {
  border-color: rgba(241,236,224,0.15);
  margin: 2rem 0 1.5rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(241,236,224,0.6);
}

.powered-by a {
  color: var(--brass-light);
  font-weight: 600;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section { clip-path: ellipse(180% 100% at 50% 0%); }
}

@media (max-width: 575.98px) {
  .vision-band::before { font-size: 4rem; }
  .contact-card { padding: 1.75rem; }
}
