/* ============ Coastal Virginia Counseling & Mediation ============ */

:root {
  --cyan: #2bc0de;
  --cyan-dark: #1ba8c4;
  --ink: #1c1e21;
  --body: #54595f;
  --blue-tint: #eff4fb;
  --gray-tint: #f2f3f5;
  --blush-bg: #fdeee8;
  --blush-icon: #edb2a3;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}

.btn:hover { background: var(--cyan-dark); }

.btn-lg { padding: 15px 32px; }

.btn-icon { width: 18px; height: 18px; }

/* ============ Header ============ */

.site-header {
  width: 100%;
  z-index: 100;
  padding: 14px 0;
}

.site-header.on-hero {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}

.site-header.solid {
  position: static;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img { width: 140px; }

.main-nav { margin-left: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav > ul > li > a {
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.site-header.solid .main-nav > ul > li > a { color: var(--ink); }

.main-nav a:hover { color: var(--cyan); }

.caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
}

.has-dropdown { position: relative; }

.main-nav ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 6px;
  padding: 8px 0 !important;
  display: none;
  flex-direction: column;
  gap: 0 !important;
  z-index: 50;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: flex; }

.dropdown li { width: 100%; }

.dropdown a {
  display: block;
  padding: 9px 20px;
  color: var(--ink);
  font-size: 15px;
}

.dropdown a:hover { background: var(--blue-tint); color: var(--cyan); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.site-header.solid .nav-toggle span { background: var(--ink); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(20, 30, 40, .35), rgba(20, 30, 40, .35)),
    url('../assets/img/hero.jpg') center / cover no-repeat;
  clip-path: ellipse(80% 100% at 50% 0%);
  padding: 120px 0 140px;
}

/* TEMP: reusing the homepage beach photo until the real group-therapy hero
   (couch room photo) is added — then point this at that file. */
.hero-group {
  background:
    linear-gradient(rgba(20, 30, 40, .45), rgba(20, 30, 40, .45)),
    url('../assets/img/hero.jpg') center / cover no-repeat;
}

.hero-inner { max-width: 900px; }

.hero-lede {
  color: #fff;
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: 17px;
}

.hero h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-sub {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 36px;
}

/* ============ Intro ============ */

.intro-text h2 {
  font-size: 32px;
  margin-bottom: 22px;
}

.intro-text > p { margin-bottom: 32px; }

.feature {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
}

.feature-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blush-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blush-icon);
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ============ About ============ */

.about-text h2 {
  font-size: 30px;
  margin-bottom: 22px;
}

.about-text p { margin-bottom: 18px; }

/* ============ Services ============ */

.services { background: var(--blue-tint); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.service {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 44px;
  height: 44px;
  color: var(--cyan);
}

.service-card {
  background: #fff;
  padding: 32px 28px 40px;
  flex: 1;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ============ Locations ============ */

.locations { background: var(--gray-tint); }

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.location-card {
  background: var(--cyan);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
}

.info-block {
  display: flex;
  gap: 16px;
}

.info-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #fff;
  margin-top: 4px;
}

.info-block h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.info-block p { color: #fff; }

.info-block a { color: #fff; text-decoration: underline; }

.location-map {
  width: 100%;
  height: 370px;
  border: 0;
  display: block;
  background: #dfe7ee;
}

.location-wide { margin-top: 56px; }

.location-map-wide { height: 340px; }

/* ============ Footer ============ */

.site-footer { padding: 72px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img { width: 210px; margin-bottom: 18px; }

.social {
  display: flex;
  gap: 18px;
}

.social a { color: var(--ink); }

.social a:hover { color: var(--cyan); }

.social svg { width: 22px; height: 22px; }

.footer-address h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 10px;
}

.footer-address p { font-size: 15px; }

.footer-rights {
  text-align: center;
}

.footer-rights strong { color: var(--ink); }

.footer-rights a { color: var(--ink); }

.footer-credit {
  text-align: center;
  padding: 40px 0 32px;
}

.footer-credit a { font-weight: 500; }

/* ============ Inner pages / forms ============ */

.page-hero {
  background: var(--blue-tint);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 { font-size: 40px; margin-bottom: 12px; }

.page-hero p { max-width: 640px; margin: 0 auto; }
.page-hero p + p { margin-top: 12px; }

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

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

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #d7dde3;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43,192,222,.15);
}

.form-note {
  font-size: 14px;
  color: var(--body);
  margin-top: 16px;
}

.form-success {
  display: none;
  background: #e6f8ee;
  border: 1px solid #7fd6a4;
  color: #1e6b40;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 20px;
}

.form-success.show { display: block; }

.crisis-note {
  background: var(--blush-bg);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 32px;
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-rights { text-align: left; }
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }

  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    margin: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
  .main-nav > ul > li > a { color: var(--ink); padding: 12px 24px; display: flex; justify-content: space-between; }
  .dropdown {
    position: static;
    box-shadow: none;
    display: none;
    background: var(--blue-tint);
    border-radius: 0;
  }
  .has-dropdown.open .dropdown { display: flex; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown { display: flex; }

  .hero { clip-path: ellipse(140% 100% at 50% 0%); min-height: 540px; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .location-info { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .intro-text h2, .about-text h2 { font-size: 26px; }
}
