/* ============================================================
   SABELLA & MARSHALL CPAs PLLC — Main Stylesheet
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --navy:      #0d2b5e;
  --navy-dark: #081d40;
  --navy-light:#1a4080;
  --gold:      #7A8899;
  --gold-light:#9AAABB;
  --white:     #ffffff;
  --off-white: #f8f8f8;
  --light-gray:#eaeaea;
  --text-dark: #222222;
  --text-mid:  #555555;
  --text-light:#888888;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --radius:    8px;
  --transition:all 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }

/* ---- Utility ---- */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.bg-navy     { background: var(--navy); color: var(--white); }
.bg-off-white{ background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title.white { color: var(--white); }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.divider.left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122,136,153,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  line-height: 1.1;
}

.navbar-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.brand-slogan {
  font-size: 0.62rem;
  font-style: italic;
  color: var(--text-light);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
  font-weight: 400;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--navy);
  background: var(--off-white);
}

.navbar-portal {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
}

.navbar-portal:hover {
  background: var(--navy-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,43,94,0.3);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 120px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(201,168,76,0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-desc p { color: rgba(255,255,255,0.82); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-card .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* ============================================================
   TOP BAR (above nav)
   ============================================================ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 8px 24px;
}

.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   SERVICES SECTION (homepage)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { font-size: 0.92rem; margin-bottom: 16px; }

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-us-features { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

.feature-text h4 { color: var(--navy); margin-bottom: 4px; }
.feature-text p  { font-size: 0.9rem; margin: 0; }

.why-us-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  position: relative;
}

.why-us-image img { width: 100%; height: 480px; object-fit: cover; }

.why-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.industry-pill {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 40px;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
}

.industry-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px;
}

.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.author-info .name  { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.author-info .title { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   PORTAL CTA BANNER
   ============================================================ */
.portal-banner {
  background: linear-gradient(135deg, #4a5a6a 0%, var(--gold) 100%);
  padding: 60px 24px;
}

.portal-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.portal-banner h2 { color: var(--white); font-size: 1.9rem; }
.portal-banner p  { color: rgba(255,255,255,0.85); margin: 0; }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 80px 24px 64px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }

.page-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.page-breadcrumb a { color: var(--gold); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.team-photo {
  background: linear-gradient(135deg, #dde4ed, #edf1f7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px 24px 20px;
}

.team-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: block;
  filter: grayscale(100%);
  transform: scale(1.08);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.team-photo img:hover {
  filter: grayscale(0%);
  transform: scale(1.12);
}

.team-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.team-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.team-info { padding: 28px; }
.team-info h3 { color: var(--navy); margin-bottom: 4px; }

.team-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-bio { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

.team-bio-toggle {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.team-bio-toggle:hover { color: var(--gold); }

.team-bio-full { display: none; margin-top: 8px; font-size: 0.9rem; color: var(--text-mid); }
.team-bio-full.open { display: block; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-hero-detail {
  max-width: 700px;
  margin: 0 auto;
}

.services-detail-grid {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

.service-detail-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-detail-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.service-detail-header:hover { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }

.service-detail-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.service-detail-header h3 { color: var(--white); flex: 1; }

.service-detail-header .toggle-icon {
  color: var(--gold);
  font-size: 1.4rem;
  transition: var(--transition);
  font-weight: 300;
}

.service-detail-header.open .toggle-icon { transform: rotate(45deg); }

.service-detail-body {
  display: none;
  padding: 32px;
}

.service-detail-body.open { display: block; }

.service-detail-body p { margin-bottom: 20px; }

.service-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.bullet-check {
  color: var(--gold);
  font-weight: 700;
  margin-top: 1px;
  min-width: 16px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info-block { display: flex; flex-direction: column; gap: 28px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 { color: var(--navy); margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-item p  { margin: 0; font-size: 0.9rem; }
.contact-info-item a  { color: var(--navy); transition: var(--transition); }
.contact-info-item a:hover { color: var(--gold); }

.hours-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
}

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-card h3 { color: var(--navy); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,43,94,0.08);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success .checkmark {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-story-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.about-story-image img { width: 100%; height: 420px; object-fit: cover; }

.about-image-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); }

.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.value-card h4 { color: var(--navy); margin-bottom: 10px; }
.value-card p  { font-size: 0.88rem; margin: 0; }

/* ============================================================
   AI CHATBOT
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'Open Sans', sans-serif;
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(13,43,94,0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(13,43,94,0.5);
}

.chat-window {
  display: none;
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  flex-direction: column;
}

.chat-window.open { display: flex; }

.chat-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy-dark);
  font-weight: 700;
}

.chat-header-info .chat-name  { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.chat-header-info .chat-status{ font-size: 0.75rem; color: rgba(255,255,255,0.65); }

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  background: var(--off-white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble a { color: var(--gold); text-decoration: underline; }

.chat-quick-replies {
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
}

.quick-reply {
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Open Sans', sans-serif;
}

.quick-reply:hover {
  background: var(--navy);
  color: var(--white);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus { border-color: var(--navy); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover { background: var(--navy-light); }

.chat-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.65rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand-main { color: var(--white); font-size: 1.3rem; }
.footer-brand .brand-sub  { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; margin-top: 14px; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-stats       { grid-template-columns: repeat(4, 1fr); }
  .why-us-grid      { grid-template-columns: 1fr; }
  .why-us-image     { order: -1; }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-links   { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .navbar-links.open { display: flex; }
  .hamburger      { display: flex; }
  .navbar         { position: relative; }
  .hero-stats     { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .service-bullets{ grid-template-columns: 1fr; }
  .top-bar-left   { display: none; }
  .chat-window    { width: 300px; }
  .footer-inner   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .team-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 56px 0; }
  .hero { padding: 80px 20px 72px; }
}
