/* =============================================
   Cable Team Lending - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --green-dark:   #2d5a3d;
  --green-mid:    #3d7a52;
  --green-light:  #e8f2ec;
  --green-accent: #4a9465;
  --navy:         #1a2b3c;
  --white:        #ffffff;
  --gray-light:   #f7f8f6;
  --gray-mid:     #e2e6e1;
  --gray-text:    #555f5a;
  --text-dark:    #1e2820;
  --shadow:       0 4px 20px rgba(45,90,61,0.10);
  --shadow-lg:    0 8px 40px rgba(45,90,61,0.15);
  --radius:       10px;
  --radius-lg:    18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { color: var(--gray-text); margin-bottom: 1rem; }

a { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }

/* ── REVIEW BANNER ── */
.review-banner {
  background: var(--navy);
  padding: 0.55rem 1.5rem;
  text-align: center;
}

.review-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.review-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity .2s;
}

.review-badge:hover { opacity: 0.85; }

.review-badge-logo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f5c518;
  font-size: 0.85rem;
}

.review-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.review-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.review-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

@media(max-width: 480px) {
  .review-divider { display: none; }
  .review-banner-inner { gap: 1rem; }
}

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--green-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--green-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text span:first-child {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.nav-logo-text span:last-child {
  font-size: 0.68rem;
  color: var(--gray-text);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-cta {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.2rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--green-mid) !important;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--gray-text);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 200;
  overflow: hidden;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--navy) !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--gray-mid);
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

@media(max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-mid);
    border-radius: 0;
    display: block;
  }
  .nav-dropdown > a::after { display: none; }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  color: white;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 { color: white; margin-bottom: 1rem; }

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(74,148,101,0.4);
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  color: white;
}

.btn-green {
  background: var(--green-dark);
  color: white;
}
.btn-green:hover {
  background: var(--green-mid);
  color: white;
  transform: translateY(-1px);
}

.hero-photo {
  width: 260px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--green-light);
  border-bottom: 1px solid var(--gray-mid);
  padding: 1rem 1.5rem;
}

.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
}

.trust-item i { font-size: 1rem; }

/* ── SECTIONS ── */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .25s;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p  { font-size: 0.92rem; margin-bottom: 0; }

/* ── ARTICLE CARDS ── */
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  box-shadow: var(--shadow);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.article-card-body {
  padding: 1.5rem;
}

.article-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.article-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.article-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--navy));
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-band h2 { color: white; margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 0.75rem; }

.footer-col h4 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--green-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}

.footer-compliance {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer-compliance a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
}

.footer-compliance a:hover {
  color: var(--green-accent);
}

.footer-ehl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.footer-ehl .ehl-icon {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  color: white;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 { color: white; margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── CONTACT FORM ── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74,148,101,0.12);
}

textarea { resize: vertical; min-height: 120px; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gray-bg { background: var(--gray-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--gray-mid);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open a { padding: 0.75rem 1rem; display: block; border-radius: 6px; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { width: 180px; height: 220px; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero p { margin: 0 auto 2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* ── MOBILE GRID OVERRIDES ── */

  /* About page: photo + bio side by side -> stacked */
  .about-bio-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why Rob / 2-col content grids -> stacked */
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Outside the Office 3-col -> single col */
  .three-col-grid {
    grid-template-columns: 1fr !important;
  }

  /* Inline grids used throughout local area pages */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Section padding tighter on mobile */
  .section { padding: 3rem 1rem; }
  .page-header { padding: 2.5rem 1rem 2rem; }

  /* Prevent text overflow on small screens */
  h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Cards full width on mobile */
  .card-grid { grid-template-columns: 1fr; }

  /* Local area hero badges wrap nicely */
  .va-hero, .fletc-hero, .gs-hero {
    padding: 3rem 1rem !important;
  }
}
