:root {
  --brand-gold: #c49a3c;
  --brand-deep: #2c2320;
  --brand-warm: #7d6342;
  --brand-cream: #f6f1ea;
  --brand-sand: #ebe3da;
  --text-main: #2b2a28;
  --text-muted: #6b635d;
  --border-soft: rgba(44, 35, 32, 0.08);
  --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--brand-cream);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}
/* remove default button focus artifacts */
button { outline: none; }
button::-moz-focus-inner { border: 0; }

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 8px 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--brand-deep);
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  color: var(--brand-gold);
}

/* removed the fixed CTA button */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  z-index: 15;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  filter: grayscale(24%) contrast(1.08) brightness(1.05);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  z-index: 2;
}

.edge-nav i { font-size: 18px; }

.edge-prev { left: 18px; }
.edge-next { right: 18px; }

/* Slide-level practicing button */
.slide-practicing {
  display: inline-block;
  margin-top: 18px;
  background: #c49a3c;
  color: #221c17;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(44,35,32,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slide-practicing:hover {
  opacity: 0.95;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(44,35,32,0.2);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(125,99,66,0.25) 0%, rgba(125,99,66,0.18) 40%, rgba(44,35,32,0.09) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}


.slide-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.slide-copy .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f1d59f;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 3.2vw, 4.2rem);
  margin: 0 0 18px;
  line-height: 1.08;
  text-shadow: 0 16px 30px rgba(0,0,0,0.22);
}

.slide-copy p {
  margin: 0 auto;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-shadow: 0 10px 20px rgba(0,0,0,0.16);
}

/* Hero controls (prev / dots / next) centered over slideshow */
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 22;
}

.hero-controls .hero-prev,
.hero-controls .hero-next {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-soft);
  color: var(--brand-deep);
  width: 40px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-dots { display: flex; gap: 10px; }

.dot {
  width: 36px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(44,35,32,0.18);
  background: transparent;
  cursor: pointer;
}

.dot.active { background: var(--brand-gold); border-color: var(--brand-gold); }

/* Hide slideshow UI per request (remove white prev/next boxes and gold sequence indicator) */
.hero-controls .hero-prev,
.hero-controls .hero-next,
.hero-dots { display: none !important; }

/* Firm summary card below slideshow */
.firm-summary {
  padding: 0;
  margin-top: -2rem;
  background: transparent;
}
.firm-summary-inner {
  background: transparent;
  padding: 18px 32px 28px;
  border-radius: 0;
  max-width: 1120px;
  margin: 0 auto;
  box-shadow: none;
  color: var(--text-main);
}
.firm-summary-inner h2 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.9rem;
}
.firm-summary-inner p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.section {
  padding: 70px 0;
}


.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-deep);
  padding: 10px 16px;
  font-size: 0.96rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #d1ad5f;
}

#email-status {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 20px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.section {
  padding: 100px 0;
}

/* Tighten spacing specifically for the Leadership Team section */
.team {
  margin-top: -2cm;
  padding-top: 0; /* remove default section top padding so gap is precise */
  padding-bottom: 32px;
}
.team .section-header { margin-bottom: 1cm; }

.section-header,
.section-header-center {
  text-align: center;
}

.section-header h2,
.section-header-center h2,
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.section-header p,
.section-header-center p {
  max-width: 760px;
  margin: 0 auto 1cm;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  background: rgba(255,255,255,0.98);
  padding: 30px 26px;
  border-radius: 34px;
  text-align: center;
  box-shadow: 0 26px 45px rgba(44,35,32,0.08);
  border: 1px solid rgba(196,154,60,0.14);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--brand-gold);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(44,35,32,0.12);
}

.team-card:hover .member-photo {
  box-shadow: 0 28px 60px rgba(44,35,32,0.14);
}

.member-photo {
  width: 190px;
  height: 220px;
  margin: 0 auto 18px;
  border: 2px solid var(--brand-gold);
  border-radius: 47% / 53%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(44,35,32,0.12);
}

.team-card h3 {
  margin-bottom: 10px;
}

.role {
  margin: 0 0 16px;
  color: var(--brand-warm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.team-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-copy h2 {
  margin-top: 0;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.about-highlights {
  display: grid;
  gap: 22px;
}

.about-highlights h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.about-highlights p {
  margin: 0;
  color: var(--text-main);
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-grid,
.team-grid,
.contact-grid {
  display: grid;
  gap: 32px;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Services tabs */
.services-tabs {
  background: linear-gradient(180deg, rgba(251,245,236,0.98), rgba(246,241,231,0.98));
  padding-top: 0.5cm;
  padding-bottom: 48px;
}
.services-tabs-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 0.5cm;
}
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tab-btn {
  background: #fff;
  border: 1px solid rgba(44,35,32,0.06);
  color: var(--brand-deep);
  padding: 10px 12px;
  text-align: left;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44,35,32,0.04);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.15s ease;
  font-size: 0.9rem;
}
.tab-btn:hover { transform: translateY(-3px); }
.tab-btn.active {
  background: linear-gradient(90deg, rgba(196,154,60,0.14), rgba(196,154,60,0.06));
  border-color: rgba(196,154,60,0.26);
  color: var(--brand-deep);
  box-shadow: 0 18px 40px rgba(44,35,32,0.06);
}
.tab-content {
  background: transparent;
  padding: 22px 28px;
  border-radius: 12px;
  min-height: 140px;
}
.service-title {
  font-family: 'Playfair Display', serif;
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--brand-deep);
}
.service-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .services-tabs-grid { grid-template-columns: 1fr; }
  .tab-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    gap: 10px;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 12px);
    min-width: 120px;
  }
  .tab-content { order: 2; }
}

.service-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 35, 32, 0.05);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  background: #fff;
  padding: 38px 28px;
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 35, 32, 0.06);
}

.member-photo {
  width: 180px;
  height: 230px;
  margin: 0 auto 18px;
  border: 2px solid var(--brand-gold);
  border-radius: 44% / 58%;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 8px;
}

.role {
  margin: 0 0 18px;
  color: var(--brand-warm);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.team-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-grid {
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start; /* prevent cards from stretching tall */
}

.contact-card {
  background: #fff;
  padding: 16px 18px; /* tighter padding */
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 35, 32, 0.06);
  align-self: start;
}

.contact-form-card h2,
.contact-info-card h3 {
  margin-top: 0;
}

.contact-form-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-form-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 500;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #f8f4ee;
  color: var(--text-main);
}

.contact-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
}

/* Reduce spacing in contact area overall */
.contact { padding: 48px 0; }

.contact-grid { gap: 18px; }

.contact-info-card {
  display: grid;
  gap: 12px; /* reduce vertical gaps between contact items */
  align-content: start;
}

.contact-info-card h3 {
  margin-bottom: 8px;
}

.contact-info-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}
.contact-info-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.05;
}

.contact-map-card {
  position: relative;
  background: linear-gradient(180deg, rgba(251,245,236,0.96), rgba(246,241,231,0.98));
  border: 1px solid rgba(196,154,60,0.16);
  border-radius: 24px;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  align-items: end;
}

.map-overlay {
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-deep);
  padding: 24px 28px;
}

.map-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-warm);
}

.map-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.map-info p strong {
  display: block;
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer {
  padding: 40px 0;
  border-top: none;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  height: 44px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--brand-gold);
}

@media (max-width: 1060px) {
  .about-grid,
  .services-grid,
  .team-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    text-align: center;
  }
}

@media (max-width: 780px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 8px 10px;
  }

  .brand-block {
    gap: 12px;
    justify-content: center;
  }

  .brand-logo img {
    height: 56px;
  }

  .brand-copy {
    text-align: center;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .main-nav a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 0 6px;
  }

  .hero {
    min-height: 300px;
    padding: 10px 0 6px;
  }

  .hero-slider {
    height: 300px;
  }

  .edge-nav { display: none; }

  .hero-controls { bottom: 14px; gap: 10px; }
  .hero-controls .hero-prev,
  .hero-controls .hero-next { width: 34px; height: 30px; border-radius: 6px; }
  .dot { width: 24px; height: 8px; }

  .slide-copy {
    padding: 0 16px;
    max-width: 100%;
  }

  .slide-copy h2 {
    font-size: clamp(1.85rem, 5vw, 2.3rem);
    line-height: 1.08;
  }

  .slide-copy p {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .slide-practicing { padding: 8px 14px; font-size: 0.92rem; }

  .firm-summary-inner {
    padding: 18px 16px 24px;
  }

  .firm-summary-inner h2 {
    font-size: 1.65rem;
  }

  .section {
    padding: 56px 0;
  }

  .team {
    margin-top: 0;
    padding-top: 0;
  }

  .team .section-header {
    margin-bottom: 30px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 24px;
  }

  .member-photo {
    width: 160px;
    height: 205px;
    margin-bottom: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 18px 16px;
  }

  .contact { padding: 40px 0; }

  .map-overlay {
    padding: 20px 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand-logo img {
    height: 50px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .main-nav {
    gap: 8px;
  }

  .slide-copy h2 {
    font-size: 1.9rem;
  }

  .slide-copy p,
  .service-desc,
  .team-card p,
  .contact-form-card p,
  .map-info p,
  .footer-brand p {
    font-size: 0.92rem;
  }

  .team-card {
    padding: 20px;
  }

  .tab-btn {
    flex: 1 1 100%;
  }

  .tab-content {
    padding: 18px 16px;
  }

  .contact-card {
    padding: 16px 14px;
  }

  .map-overlay {
    padding: 18px 16px;
  }
}
