/* =============================================
   Connecticut Weight Loss Center — styles.css
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --bg-light:   #f5f5f5;
  --bg-mid:     #eeeeee;
  --text-dark:  #1a1a2e;
  --text-body:  #3a3a3a;
  --text-muted: #6b7280;
  --green:      #3dba58;
  --green-dark: #28a045;
  --navy:       #1e3a5f;
  --border:     #dde0e5;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: disc; padding-left: 22px; }
li { margin-bottom: 6px; line-height: 1.6; }
p { margin-bottom: 14px; }
h1,h2,h3,h4 { color: var(--text-dark); line-height: 1.25; }
h2 { font-size: 1.85rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.2rem;  font-weight: 700; margin-bottom: 10px; }
h4 { font-size: 1rem;    font-weight: 700; margin-bottom: 8px; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  padding: 8px 32px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.logo img { height: 56px; width: auto; }

/* Nav */
nav { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nav-row { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-row a, .nav-trigger {
  font-size: 13.5px; color: var(--text-dark);
  text-decoration: none; padding: 5px 12px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  cursor: pointer; background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit; white-space: nowrap;
}
.nav-row a:hover, .nav-row a.active { border-bottom-color: var(--green); color: var(--green-dark); }
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%); background: var(--white);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 260px;
  padding: 6px 0; z-index: 300;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 9px 20px; font-size: 13.5px;
  color: var(--text-dark); border-bottom: none !important;
  transition: background .15s;
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--green-dark); }
.phone-btn a {
  display: inline-block; padding: 9px 16px;
  border: 2px solid var(--text-dark); border-radius: 50px;
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  white-space: nowrap; transition: all .2s;
}
.phone-btn a:hover { background: var(--text-dark); color: var(--white); }

/* ===== PAGE BANNER ===== */
.page-banner {
  position: relative; overflow: hidden;
  background: var(--bg-light) no-repeat center center / cover;
  padding: 70px 40px;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(245,245,245,.86);
}
.page-banner-content { position: relative; max-width: 1200px; margin: 0 auto; }
.page-banner h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-banner h2 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; line-height: 1.4; }
.page-banner p  { max-width: 720px; }

/* ===== LAYOUT WRAPPERS ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 64px 0; }
.section-shaded { background: var(--bg-light); padding: 64px 40px; }
.section-mid    { background: var(--bg-mid);   padding: 64px 40px; }

/* ===== TWO COLUMN ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }

/* ===== CIRCULAR IMAGE FRAME ===== */
.img-wrap { display: flex; justify-content: center; align-items: center; }

.circle-img {
  width: 400px; height: 400px;
  border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
}
.circle-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.arch-img {
  width: 400px; height: 340px;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  overflow: hidden; flex-shrink: 0;
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ===== GREEN DOTS ===== */
.green-dots { display: flex; gap: 8px; margin-bottom: 18px; }
.green-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--green); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: 50px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: all .2s; border: 2px solid transparent; font-family: inherit;
}
.btn-outline { border-color: var(--text-dark); color: var(--text-dark); background: transparent; }
.btn-outline:hover { background: var(--text-dark); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ===== SERVICE LINKS ===== */
.service-links { list-style: none; padding: 0; margin: 14px 0 20px; }
.service-links li { margin-bottom: 6px; }
.service-links a { font-weight: 700; font-style: italic; color: var(--navy); text-decoration: underline; font-size: 15px; }

/* ===== PHOTO GRID (home page) ===== */
.photo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.photo-grid .cell { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.photo-grid .cell img { width: 100%; height: 100%; object-fit: cover; }

/* ===== PRICING CARD ===== */
.pricing-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 24px; margin-bottom: 20px; background: var(--white);
}
.pricing-card h3 { margin-bottom: 10px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); margin-top: 10px; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { font-weight: 700; font-style: italic; color: var(--text-dark); margin-bottom: 8px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.req { color: #e53e3e; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit; color: var(--text-body);
  background: var(--white); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* ===== RESOURCES ===== */
.resources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; margin-top: 32px; }
.resource-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.resource-card p  { font-size: 13.5px; color: var(--text-muted); }
.search-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 10px 20px; max-width: 520px; margin: 0 auto 40px;
  background: var(--white);
}
.search-wrap input  { flex: 1; border: none; outline: none; font-size: 14px; font-family: inherit; }
.search-wrap button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-muted); }

/* ===== SERVICE AREA ===== */
.area-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px; }
.area-cols li { font-size: 15px; }

/* ===== CONSENT ===== */
.consent-block { max-width: 840px; padding: 64px 0; }
.consent-block h1 { font-size: 1.9rem; margin-bottom: 20px; }

/* ===== FOOTER ===== */
footer { background: var(--bg-light); border-top: 1px solid var(--border); padding: 48px 40px 20px; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.footer-logo img { height: 58px; width: auto; }
.footer-address { font-size: 14px; color: var(--text-body); margin-bottom: 16px; }
.footer-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.footer-dots span { width: 7px; height: 7px; background: var(--text-dark); border-radius: 50%; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 20px; }
.footer-nav a { font-size: 13px; color: var(--text-body); transition: color .2s; }
.footer-nav a:hover { color: var(--green-dark); }
.footer-social { display: flex; justify-content: flex-end; gap: 20px; margin-bottom: 16px; }
.footer-social a { font-size: 15px; font-weight: 700; }
.footer-copy { font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; text-align: left; }

/* ===== CHAT BTN ===== */
.chat-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--text-dark); color: var(--white);
  padding: 12px 22px; border-radius: 8px; font-size: 13.5px;
  font-weight: 700; text-decoration: none; z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.chat-btn:hover { background: #333; color: var(--white); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px;  } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  header { padding: 10px 20px; }
  .header-inner { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip { direction: ltr; }
  .circle-img, .arch-img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; }
  .arch-img { aspect-ratio: 1/.8; }
  .photo-grid { grid-template-columns: repeat(2,1fr); }
  .resources-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .area-cols { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .section-shaded, .section-mid { padding: 48px 20px; }
  .page-banner { padding: 50px 20px; }
  footer { padding: 40px 20px 20px; }
  h2 { font-size: 1.45rem; }
  .page-banner h1 { font-size: 1.75rem; }
}

/* ===== DROPDOWN GROUPS ===== */
.dropdown-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  padding: 10px 20px 4px;
  cursor: default;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
