/**
 * Messrs. Kevin & Co. - Modern Law Firm Design System
 * Executive Palette: Midnight Navy (#081225), Royal Blue (#0d1b2a), Warm Champagne Gold (#c5a059)
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #081225;
  --primary-rgb: 8, 18, 37;
  --primary-light: #0f1e36;
  --secondary: #16243d;
  --accent-gold: #c5a059;
  --accent-gold-light: #dfc287;
  --accent-gold-dark: #a8833e;
  --accent-gold-rgb: 197, 160, 89;
  --dark-bg: #050b17;
  --light-bg: #f8fafc;
  --surface-white: #ffffff;
  --text-main: #2b3445;
  --text-muted: #a0aec0;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-gold: rgba(197, 160, 89, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(8, 18, 37, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 18, 37, 0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-heading: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--surface-white);
  line-height: 1.62;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.28;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }
h5 { font-size: 0.98rem; }
h6 { font-size: 0.84rem; }

p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.brand-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold-dark);
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
.top-bar {
  background: #040913;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: var(--accent-gold);
}

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020;
  background: rgba(8, 18, 37, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  transition: var(--transition);
  padding: 12px 0;
}

.main-header.scrolled {
  background: rgba(5, 11, 23, 0.98);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(197, 160, 89, 0.35);
}

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.nav-link {
  font-weight: 500;
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* ----------------------------------------------------
   BUTTONS & BADGES
---------------------------------------------------- */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: 4px;
  border: 1px solid var(--accent-gold-light);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1.5px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #081225 !important;
  transform: translateY(-2px);
}

.gold-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 10px;
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 18, 37, 0.72) 0%, rgba(5, 11, 23, 0.78) 100%),
              url('../img/home_cover.png') center center / cover no-repeat;
  color: #ffffff;
  padding: 100px 0 80px;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.45rem;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.hero-title span {
  color: var(--accent-gold);
  font-style: italic;
}

.hero-lead {
  font-size: 0.98rem;
  color: #f1f5f9;
  max-width: 650px;
  margin-bottom: 28px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

.hero-stats-row {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-card {
  text-align: left;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ----------------------------------------------------
   SECTION HEADINGS & LAYOUT
---------------------------------------------------- */
.section-padding {
  padding: 65px 0;
}

.section-title-wrap {
  margin-bottom: 40px;
  text-align: center;
}

.section-title-wrap.text-start {
  text-align: left;
}

.section-subtitle {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.section-title-wrap.text-start .section-desc {
  margin: 0;
}

.gold-divider {
  width: 45px;
  height: 2px;
  background: var(--accent-gold);
  margin: 12px auto 16px;
  border-radius: 2px;
}

.section-title-wrap.text-start .gold-divider {
  margin: 12px 0 16px;
}

/* ----------------------------------------------------
   ABOUT & HERITAGE
---------------------------------------------------- */
.about-quote-box {
  border-left: 3px solid var(--accent-gold);
  padding: 15px 20px;
  background: var(--light-bg);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--primary);
  font-style: italic;
  margin: 20px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 40px;
  height: 40px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto 10px;
}

.value-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.image-stack-container {
  position: relative;
  padding-bottom: 30px;
}

.image-stack-main {
  width: 90%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.image-stack-badge {
  position: absolute;
  bottom: 0;
  right: 5%;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--accent-gold);
  padding: 20px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.image-stack-badge .badge-year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 800;
  line-height: 1;
}

.image-stack-badge .badge-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-top: 4px;
}

/* ----------------------------------------------------
   PRACTICE AREAS CARDS
---------------------------------------------------- */
.practice-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-lg);
}

.practice-card:hover::before {
  background: var(--accent-gold);
}

.practice-icon {
  width: 56px;
  height: 56px;
  background: rgba(8, 18, 37, 0.04);
  color: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(8, 18, 37, 0.08);
  transition: var(--transition);
}

.practice-card:hover .practice-icon {
  background: var(--primary);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.practice-title {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.practice-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 16px;
  line-height: 1.55;
}

.practice-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.practice-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* ----------------------------------------------------
   TEAM SECTION
---------------------------------------------------- */
.team-nav-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.team-nav-pills .nav-link {
  background: #ffffff;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 10px 28px !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-nav-pills .nav-link.active {
  background: var(--primary);
  color: var(--accent-gold) !important;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.team-nav-pills .nav-link::after {
  display: none;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 250px;
  margin: 0 auto;
}

.managing-partner-card {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.team-img-wrap {
  position: relative;
  width: 100%;
  height: 180px; /* Reduced by 50% from original tall container */
  overflow: hidden;
  background: #f1f5f9;
}

.team-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.06);
}

.team-info {
  padding: 16px 14px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--primary);
  font-weight: 700;
}

.team-role {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold-dark);
  margin-bottom: 6px;
}

.team-creds {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.35;
  min-height: 32px;
}

.team-btn-view {
  margin-top: auto;
  background: rgba(8, 18, 37, 0.04);
  color: var(--primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.team-btn-view:hover {
  background: var(--primary);
  color: var(--accent-gold);
  border-color: var(--primary);
}

/* ----------------------------------------------------
   MULTI-BRANCH OFFICE LOCATOR
---------------------------------------------------- */
.branch-switcher-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.branch-pill-btn {
  flex: 1 1 auto;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.branch-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.branch-pill-btn .branch-pill-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.branch-pill-btn.active .branch-pill-title {
  color: var(--accent-gold);
}

.branch-pill-btn .branch-pill-state {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.branch-pill-btn.active .branch-pill-state {
  color: #cbd5e1;
}

.branch-display-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.branch-info-panel {
  padding: 26px 24px;
}

.branch-info-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 8px;
}

.branch-detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.branch-detail-icon {
  width: 34px;
  height: 34px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--accent-gold);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.branch-detail-text h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.branch-detail-text p {
  font-size: 0.84rem;
  margin-bottom: 0;
  color: var(--text-main);
}

.branch-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.branch-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------
   CONSULTATION FORM SECTION
---------------------------------------------------- */
.consultation-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  position: relative;
}

.consultation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
  border-radius: 8px 8px 0 0;
}

.form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.form-control, .form-select {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.84rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.main-footer {
  background: #040913;
  color: #94a3b8;
  border-top: 3px solid var(--accent-gold);
  padding: 70px 0 25px;
  font-size: 0.92rem;
}

.footer-logo {
  height: 46px;
  margin-bottom: 20px;
}

.footer-lead {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--accent-gold);
  color: #081225;
  border-color: var(--accent-gold);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* ----------------------------------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------------------------------- */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .image-stack-container {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-section {
    padding: 80px 0 60px;
  }
  .section-padding {
    padding: 60px 0;
  }
  .consultation-card {
    padding: 24px 18px;
  }
}
