/* Newcomb & Harrell, P.A. — Attorneys at Law, Rockland, Maine */

:root {
  --navy: #152238;
  --navy-deep: #0e1726;
  --sage: #4B5D45;
  --sage-light: #6b8062;
  --gold: #C9A24B;
  --gold-deep: #A9822E;
  --cream: #FAF7F0;
  --ivory: #FFFFFF;
  --ink: #232323;
  --slate: #5b6470;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .font-head {
  font-family: var(--font-head);
}

a { color: inherit; }

/* ---------- Navbar ---------- */
.navbar-wfw {
  background: var(--navy);
  padding-top: .7rem;
  padding-bottom: .7rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

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

.navbar-brand .amp {
  color: var(--gold);
}

.navbar-brand .brand-suffix {
  font-size: .95rem;
  color: #c7cedb;
  font-weight: 400;
}

.navbar-wfw .nav-link {
  color: #dbe1eb !important;
  font-weight: 500;
  font-size: .95rem;
  margin: 0 .55rem;
  transition: color .2s ease;
}

.navbar-wfw .nav-link:hover {
  color: var(--gold) !important;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border-radius: 4px;
  margin-left: .75rem;
  white-space: nowrap;
  transition: background .2s ease;
}

.btn-nav-cta:hover {
  background: #dcb769;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- Hero (compact, curved bottom edge, centered text) ---------- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 600px;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('img/hero.webp') center 28% / cover no-repeat;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, rgba(14,23,38,0.55) 0%, rgba(14,23,38,0.18) 100%),
    linear-gradient(to bottom, rgba(14,23,38,0.55) 0%, rgba(14,23,38,0.25) 45%, rgba(14,23,38,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  background: rgba(14,23,38,0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
}

.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 1rem;
  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-weight: 700;
  color: var(--ivory);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  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-title .accent {
  color: var(--gold);
}

.hero-subtitle {
  color: #eef1f6;
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  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);
}

.btn-hero-primary, .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .98rem;
  transition: all .2s ease;
  text-decoration: none;
}

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

.btn-hero-primary:hover {
  background: #dcb769;
  color: var(--navy-deep);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(255,255,255,.65);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,.12);
  color: var(--ivory);
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-divider svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* ---------- Section basics ---------- */
.section-pad { padding: 5.5rem 0; }
.section-pad-alt { padding: 5.5rem 0; background: var(--ivory); }

.section-eyebrow {
  color: var(--sage);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: .6rem;
}

.section-title {
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 640px;
}

.section-sub.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- About / Region ---------- */
.section-about { background: var(--cream); }

.about-text p {
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.02rem;
}

.region-heading {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.3rem;
  margin: 3.5rem 0 1.5rem;
  text-align: center;
}

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

.region-grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21,34,56,.12);
}

.region-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.region-grid figure:hover img {
  transform: scale(1.04);
}

.region-grid figcaption {
  padding: .65rem .9rem;
  background: var(--ivory);
  color: var(--slate);
  font-size: .85rem;
  text-align: center;
}

/* ---------- Attorneys ---------- */
.section-attorneys { background: var(--ivory); }

.attorney-card {
  text-align: center;
  background: var(--cream);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(21,34,56,.08);
}

.attorney-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.4rem;
  border: 4px solid var(--ivory);
  box-shadow: 0 4px 16px rgba(21,34,56,.18);
}

.attorney-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}

.attorney-role {
  color: var(--sage);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.photo-credit {
  color: #9aa3ad;
  font-size: .8rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* ---------- Practice Areas ---------- */
.section-practice { background: var(--cream); }

.practice-card {
  background: var(--ivory);
  border-radius: 10px;
  padding: 2.1rem 1.8rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(21,34,56,.07);
  border-top: 3px solid var(--gold);
  transition: transform .25s ease, box-shadow .25s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(21,34,56,.14);
}

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

.practice-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
  font-family: var(--font-head);
}

.practice-card p {
  color: var(--slate);
  font-size: .96rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.section-contact { background: var(--ivory); }

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

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.contact-list li a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-list li a:hover {
  color: var(--sage);
  text-decoration: underline;
}

.contact-list i {
  color: var(--gold-deep);
  font-size: 1.15rem;
  margin-top: .18rem;
  flex-shrink: 0;
}

.map-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(21,34,56,.15);
  height: 100%;
  min-height: 360px;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c7cedb;
  padding: 3rem 0;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ivory);
  font-size: 1.25rem;
  margin-bottom: .3rem;
}

.footer-tagline {
  color: #9aa7ba;
  font-size: .9rem;
  margin-bottom: 0;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: #c7cedb;
  text-decoration: none;
  font-size: .92rem;
  padding: 0 .1rem;
}

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

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #c7cedb;
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: border-color .2s ease, color .2s ease;
}

.powered-by strong {
  color: var(--gold);
}

.powered-by:hover {
  border-color: var(--gold);
  color: var(--ivory);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--navy);
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
  }
  .btn-nav-cta {
    margin: .5rem 0 0;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero { height: auto; min-height: 640px; padding-top: 6rem; padding-bottom: 3rem; }
  .hero-content { padding: 2rem 1.4rem 2.4rem; }
  .region-grid { grid-template-columns: 1fr; }
  .section-pad, .section-pad-alt { padding: 3.5rem 0; }
  .footer-links, .site-footer .text-md-end { text-align: center !important; margin-top: 1rem; }
}
