/* =========================================================
   Halaby Law Group, P.C.
   Color: Forest Green + Gold on Ivory
   Fonts: Cormorant Garamond (headings) / Raleway (body)
   ========================================================= */

:root {
  --forest:  #1b3d2f;
  --forest-dark: #122a20;
  --gold:    #c4943a;
  --gold-light: #d4a94e;
  --cream:   #f8f5ee;
  --ivory:   #fdfaf4;
  --charcoal:#2d2d2d;
  --mid-gray:#6b6b6b;
  --light-gray: #e8e4dc;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
}

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

img { max-width: 100%; height: auto; }

.section-padding { padding: 100px 0; }

/* ---- Section labels / eyebrows ---- */
.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow-light {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-dark);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.section-body {
  font-size: 1.02rem;
  color: #444;
  margin-bottom: 1rem;
  font-weight: 300;
}

.bg-cream { background-color: var(--cream); }

/* ---- Buttons ---- */
.btn-gold {
  background-color: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: 0;
  transition: background 0.25s, color 0.25s;
}
.btn-gold:hover {
  background-color: #a87c2f;
  border-color: #a87c2f;
  color: #fff;
}

.btn-forest {
  background-color: var(--forest);
  color: #fff;
  border: 2px solid var(--forest);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: 0;
  transition: background 0.25s, color 0.25s;
}
.btn-forest:hover {
  background-color: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #fff;
}

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 0;
  transition: all 0.22s;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--gold);
  color: #fff;
}

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(27, 61, 47, 0.92);
  backdrop-filter: blur(8px);
  padding: 1.1rem 0;
  transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}
#mainNav.scrolled {
  background: var(--forest-dark);
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  transition: color 0.2s;
}
#mainNav .nav-link:hover { color: var(--gold-light); }

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- HERO ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hingham-main-street.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(18, 42, 32, 0.78) 0%,
    rgba(18, 42, 32, 0.50) 55%,
    rgba(18, 42, 32, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

/* ---- TRUST BAR ---- */
#trust-bar {
  background: var(--forest);
}

.trust-item {
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.trust-item:last-child { border-right: none; }

.trust-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}
.trust-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ---- OUR FIRM ---- */
.firm-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.firm-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.firm-photo-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--gold);
  z-index: -1;
}

/* ---- PRACTICE AREAS ---- */
.practice-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--forest);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.practice-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.practice-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}
.practice-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.9rem;
}
.practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.practice-list li {
  font-size: 0.9rem;
  color: #555;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0ece5;
  font-weight: 400;
}
.practice-list li::before {
  content: '—';
  color: var(--gold);
  margin-right: 0.5rem;
  font-weight: 600;
}
.practice-list li:last-child { border-bottom: none; }

.practice-card-cta {
  background: var(--forest);
  border-color: var(--forest);
  border-top-color: var(--gold);
}
.practice-card-cta .practice-icon,
.practice-card-cta .practice-title {
  color: var(--gold-light);
}
.practice-cta-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

/* ---- SCENE DIVIDER ---- */
#hingham-scene {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-image: url('img/hingham-main-street-2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.scene-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 42, 32, 0.72);
}
.scene-content {
  position: relative;
  z-index: 2;
  padding: 70px 20px;
}
.scene-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.scene-attr {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
}

/* ---- ATTORNEYS ---- */
.attorney-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.25s;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.attorney-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); }

.attorney-card.shareholder { border-left: 4px solid var(--gold); }
.attorney-card.of-counsel { border-left: 4px solid var(--forest); }

.attorney-initials {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.attorney-card.shareholder .attorney-initials { background: var(--gold); }

.attorney-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.2rem;
}
.attorney-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.attorney-bio {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.65;
}

/* Staff row */
.staff-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-dark);
}
.staff-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 2px;
}

/* ---- WHY US ---- */
.bg-forest { background: var(--forest); }

.why-card {
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  height: 100%;
  transition: background 0.25s;
}
.why-card:hover { background: rgba(255,255,255,0.06); }

.why-icon {
  font-size: 2.2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1rem;
}
.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.65rem;
}
.why-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* ---- CONTACT ---- */
.contact-info-block {
  background: var(--cream);
  padding: 2.5rem;
  height: 100%;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.55;
}
.contact-item strong { display: block; font-weight: 600; color: var(--forest-dark); margin-bottom: 2px; }
.contact-item a { color: var(--forest); }
.contact-item a:hover { color: var(--gold); }
.contact-icon {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.social-links { display: flex; flex-direction: column; gap: 4px; }
.social-link {
  font-size: 0.88rem;
  color: var(--forest);
  font-weight: 500;
}
.social-link:hover { color: var(--gold); }

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

/* ---- FOOTER ---- */
#footer {
  background: var(--forest-dark);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
}
.footer-links li a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.footer-social a {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold-light); }

.footer-powered {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-powered a {
  color: var(--gold-light);
  font-weight: 600;
}
.footer-powered a:hover { color: #fff; }

.footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 40px 0 20px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .section-padding { padding: 70px 0; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .trust-item:last-child { border-bottom: none; }
  .firm-photo-accent { display: none; }
  #hingham-scene { background-attachment: scroll; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .section-padding { padding: 55px 0; }
  .hero-title { font-size: 2.5rem; }
  .contact-info-block { padding: 1.75rem; }
  .attorney-card { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 575px) {
  .trust-item { padding: 22px 15px; }
  .trust-number { font-size: 1.6rem; }
  .why-card { padding: 1.5rem; }
}
