/* Court Street Insurance Agency — Wicked Fast Web redesign */

:root {
  --navy: #274b6a;
  --navy-deep: #14263a;
  --navy-mid: #1d3a54;
  --gold: #9c8354;
  --gold-bright: #b8985f;
  --cream: #faf7f0;
  --cream-dark: #f0ead9;
  --ink: #1f2a35;
  --slate: #5b6b78;
  --line: rgba(39, 75, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

a {
  text-decoration: none;
}

.section-eyebrow {
  font-family: "Public Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 1rem;
}

.section-pad {
  padding: 5.5rem 0;
}

.section-pad-sm {
  padding: 3.5rem 0;
}

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

/* ===== Navbar ===== */
.navbar-csi {
  background: var(--navy-deep);
  padding: 0.65rem 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.navbar-csi .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
}

.navbar-csi .navbar-brand img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

.navbar-csi .navbar-brand .brand-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.1;
  color: #fff;
}

.navbar-csi .navbar-brand .brand-text small {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

.navbar-csi .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem !important;
}

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

.navbar-csi .btn-nav-cta {
  background: var(--gold);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700;
  margin-left: 0.4rem;
}

.navbar-csi .btn-nav-cta:hover {
  background: var(--gold-bright);
  color: #fff !important;
}

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

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

/* ===== Hero (split-panel) ===== */
.hero {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

.hero-panel {
  flex: 1 1 54%;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  padding: 7.5rem 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(156,131,84,0.16) 0%, rgba(156,131,84,0) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
  display: block;
  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-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.4rem;
  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-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.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);
}

.hero-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-top: 1.8rem;
  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.9);
}

.hero-actions .btn {
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.95rem;
}

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #fff;
}

.btn-outline-cream {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}

.btn-outline-cream:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.hero-photo {
  flex: 1 1 46%;
  min-height: 340px;
  background: url('img/hero.webp') 78% 28%/cover no-repeat;
  position: relative;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,38,58,0.35) 0%, rgba(20,38,58,0) 18%);
}

.hero-photo-caption {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(20,38,58,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
  }
  .hero-panel {
    padding: 6.5rem 1.75rem 3rem;
    flex: 1 1 100%;
  }
  .hero-photo {
    flex: 1 1 100%;
    min-height: 280px;
  }
}

/* ===== About ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  text-align: center;
}

.stat-card .stat-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 600;
}

.about-photo img {
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(20,38,58,0.18);
}

/* ===== Local gallery strip ===== */
.local-strip {
  background: var(--navy-deep);
  padding: 3.2rem 0;
}

.local-strip .local-heading {
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.local-strip .local-heading span {
  color: var(--gold-bright);
}

.local-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ===== Coverage cards ===== */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.coverage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20,38,58,0.12);
}

.coverage-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.coverage-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.coverage-card p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 0;
}

.coverage-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.8rem;
}

.chip {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
}

.bg-navy-section {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.9);
}

.bg-navy-section .section-title,
.bg-navy-section h3, .bg-navy-section h4 {
  color: #fff;
}

.bg-navy-section .coverage-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.bg-navy-section .coverage-card p {
  color: rgba(255,255,255,0.68);
}

.bg-navy-section .coverage-icon {
  background: rgba(156,131,84,0.22);
  color: var(--gold-bright);
}

.bg-navy-section .chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
}

.bg-navy-section .text-slate-light {
  color: rgba(255,255,255,0.72);
}

/* ===== Providers grid ===== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.provider-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.provider-card img {
  max-width: 100%;
  max-height: 60px;
}

.provider-card.filler {
  flex-direction: column;
  text-align: center;
  background: var(--cream-dark);
  border-style: dashed;
}

.provider-card.filler .filler-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy);
}

.provider-card.filler .filler-text {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.25rem;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.team-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card .team-info {
  padding: 1.25rem 1rem 1.5rem;
}

.team-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.team-card .team-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-card .team-bio {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.team-card .team-email {
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 600;
}

/* ===== Support / Pay bill ===== */
.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.2rem;
  height: 100%;
}

.pay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.pay-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.pay-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.pay-btn small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.75;
}

/* ===== Learn ===== */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.learn-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.learn-card i {
  font-size: 1.4rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.learn-card h5 {
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.learn-card p {
  color: rgba(255,255,255,0.68);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===== Contact / Location ===== */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.2rem;
}

.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.contact-row i {
  color: var(--gold);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.contact-row .contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-row a, .contact-row span.value {
  color: var(--navy-deep);
  font-weight: 600;
}

.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 380px;
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.site-footer .footer-logo {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.site-footer .footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer h6 {
  color: #fff;
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

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

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

.site-footer li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 2.5rem 0 1.5rem;
}

.powered-by {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.powered-by a {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .navbar-csi .container {
    flex-wrap: nowrap;
  }
  .navbar-csi .navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0.5rem;
  }
  .navbar-csi .navbar-brand .brand-text {
    font-size: 0.98rem;
    white-space: normal;
    line-height: 1.15;
  }
  .navbar-csi .navbar-brand .brand-text small {
    font-size: 0.55rem;
  }
  .navbar-csi .navbar-brand img {
    height: 32px;
    flex-shrink: 0;
  }
  .section-pad { padding: 3.5rem 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: repeat(1, 1fr); }
  .coverage-grid-4 { grid-template-columns: repeat(1, 1fr); }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(1, 1fr); }
  .learn-grid { grid-template-columns: repeat(1, 1fr); }
  .local-grid img { height: 190px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
