/* ============================================================
   Samuel J. O. & Associates — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:       #0d1f3c;
  --dark-green: #1a3a2a;
  --gold:       #c9a84c;
  --gold-light: #e0c06a;
  --white:      #ffffff;
  --light-bg:   #f7f7f5;
  --text-dark:  #1a1a2e;
  --text-muted: #5a6070;
  --border:     #e0e0e0;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.16);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Utility ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

.divider-center { margin-left: auto; margin-right: auto; }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.bg-navy   { background-color: var(--navy); }
.bg-light-custom { background-color: var(--light-bg); }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 2px solid var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-custom {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 2px solid var(--navy);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Header / Navbar ---------- */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand-logo .firm-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.navbar-brand-logo .firm-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  max-width: 220px;
  white-space: normal;
  line-height: 1.5;
}

.navbar-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 0.5rem 0.85rem !important;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-toggler { border: none; outline: none; box-shadow: none !important; }
.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='%230d1f3c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center 40% / cover no-repeat;
  opacity: 0.45;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 31, 60, 0.97) 0%,
    rgba(13, 31, 60, 0.88) 45%,
    rgba(13, 31, 60, 0.55) 75%,
    rgba(13, 31, 60, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-section .lead {
  color: rgba(255,255,255,0.92);
  max-width: 580px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ---------- Section Spacing ---------- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.service-card .icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--gold);
  transition: background var(--transition);
}

.service-card:hover .icon-wrap { background: rgba(201,168,76,0.2); }

.service-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.service-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Why Choose Us Cards ---------- */
.why-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow var(--transition);
}

.why-card:hover { box-shadow: var(--shadow-sm); }

.why-card .icon-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}

.why-card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.88rem; margin: 0; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-green) 100%);
  padding: 4.5rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-green) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.07;
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(255,255,255,0.78); max-width: 600px; }

.breadcrumb-custom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.breadcrumb-custom a { color: var(--gold); }
.breadcrumb-custom span { color: rgba(255,255,255,0.4); }

/* ---------- About Page ---------- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.value-card .icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--gold);
}

.value-card h4 { margin-bottom: 0.6rem; }

/* ---------- Services Page ---------- */
.service-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
}

.service-detail-card:hover { box-shadow: var(--shadow-md); }

.service-detail-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.service-detail-card .service-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-detail-card ul {
  list-style: none;
  padding: 0;
}

.service-detail-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}

.service-detail-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.65rem;
  top: 0.45rem;
}

/* ---------- Governance Page ---------- */
.governance-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow var(--transition);
}

.governance-feature:hover { box-shadow: var(--shadow-sm); }

.governance-feature .g-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
}

.governance-feature h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.governance-feature p  { font-size: 0.88rem; margin: 0; }

.why-gov-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(201,168,76,0.06);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}

.why-gov-item .check { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.why-gov-item p { margin: 0; font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }

/* ---------- Why Choose Us Page ---------- */
.strength-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.strength-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.strength-card .s-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.strength-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.strength-card p  { font-size: 0.9rem; margin: 0; }

/* ---------- Contact Page ---------- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  outline: none;
}

.form-control.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: 0.8rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .ci-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact-info-item h5 { font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--navy); }
.contact-info-item p  { font-size: 0.88rem; margin: 0; }

/* ---------- Alert / Success ---------- */
#form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
#main-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer-brand .firm-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .firm-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.15rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item i { color: var(--gold); margin-top: 0.15rem; flex-shrink: 0; }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---------- Scroll to Top ---------- */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-3px); }

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 991.98px) {
  .hero-stats { gap: 1.5rem; }
  .section-pad { padding: 3.5rem 0; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 70vh; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 1.5rem; }
  .section-pad { padding: 2.75rem 0; }
}

@media (max-width: 575.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
}

/* ---------- Navbar tagline — smaller on mobile ---------- */
@media (max-width: 575.98px) {
  .navbar-brand-logo .firm-tagline { font-size: 0.55rem; letter-spacing: 0.04em; }
}

/* ---------- In Chambers ---------- */
.chambers-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.chambers-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.chambers-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--dark-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.chambers-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.chambers-quals {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
