/*
Theme Name: HealthyLifeNY 2026
Author: Codex
Description: New York health and wellness portal design with curated expert video resources.
Version: 1.0.0
*/

:root {
  --navy: #0a2b5f;
  --navy-2: #061b3e;
  --green: #159b68;
  --green-2: #0f7f57;
  --cyan: #38a9d8;
  --sky: #eef6fb;
  --mint: #e9f8f1;
  --ink: #13233d;
  --muted: #64748b;
  --line: #dfe8f2;
  --white: #ffffff;
  --soft: #f7fafc;
  --shadow: 0 22px 60px rgba(6, 27, 62, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  background: #eef4fa;
  color: #1d3558;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.topbar .wrap,
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar .wrap {
  min-height: 34px;
}

.topbar-right,
.lang-row,
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.flag {
  font-size: 14px;
  margin-right: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 232, 242, 0.9);
  box-shadow: 0 10px 24px rgba(6, 27, 62, 0.04);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background:
    radial-gradient(circle at 68% 25%, #8bdc88 0 13%, transparent 14%),
    radial-gradient(circle at 33% 36%, #4bb5e7 0 16%, transparent 17%),
    conic-gradient(from 220deg, #2f87d9, #25b07f, #7ed86a, #2f87d9);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(21, 155, 104, 0.24);
}

.brand-name {
  display: block;
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--green);
}

.brand-tagline {
  color: #51617a;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 720;
}

.main-nav a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heart-link {
  color: var(--navy);
  font-weight: 720;
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.video-card:hover {
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--green-2);
  background: var(--white);
  border-color: rgba(21, 155, 104, 0.42);
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.25) 74%),
    url("https://images.unsplash.com/photo-1518391846015-55a9cc003b25?auto=format&fit=crop&w=1800&q=80") center right / cover;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  position: relative;
  display: grid;
  align-content: center;
  padding: 56px 0 74px;
}

.hero-copy {
  width: min(620px, 100%);
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.lead {
  color: #263b5c;
  width: min(560px, 100%);
  margin: 18px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-panel {
  width: min(860px, 100%);
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 232, 242, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.search-tabs span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #53657f;
  font-size: 13px;
  font-weight: 750;
  border-bottom: 2px solid transparent;
}

.search-tabs span:first-child {
  color: var(--green-2);
  border-bottom-color: var(--green);
}

.search-fields {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.8fr auto;
  gap: 12px;
  padding: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field strong {
  color: var(--navy-2);
  font-size: 13px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 18px 16px;
  border-left: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 1px solid var(--line);
}

.trust-icon,
.cat-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  border: 1px solid rgba(21, 155, 104, 0.18);
  border-radius: 50%;
  font-weight: 900;
}

.trust-icon {
  width: 38px;
  height: 38px;
}

.trust-item strong {
  color: var(--navy-2);
  display: block;
  font-size: 13px;
}

.trust-item p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 12px;
}

.section {
  padding: 46px 0;
}

.section.alt {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}

.view-link {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.category-card,
.provider-card,
.article-card,
.location-card,
.service-card,
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-card {
  min-height: 126px;
  padding: 18px 10px;
  text-align: center;
}

.cat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  font-size: 22px;
}

.category-card strong,
.service-card strong,
.provider-card strong,
.article-card strong {
  color: var(--navy-2);
  display: block;
  font-size: 14px;
}

.category-card span,
.service-card span,
.provider-card span,
.article-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.location-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: center;
}

.location-grid,
.service-grid,
.provider-grid,
.article-grid {
  display: grid;
  gap: 14px;
}

.location-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.location-card img,
.service-card img,
.provider-card img,
.article-card img {
  width: 100%;
  height: 106px;
  object-fit: cover;
}

.card-pad {
  padding: 12px;
}

.service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.service-card img {
  height: 122px;
}

.provider-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.provider-card img {
  height: 190px;
}

.rating {
  color: #f5a300;
  font-size: 13px;
  margin-top: 8px;
}

.video-feature {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: stretch;
}

.video-player {
  min-height: 390px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-copy {
  padding: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.video-copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.video-copy p {
  color: #cfe0f3;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.source-list span {
  display: block;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.video-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  box-shadow: 0 18px 40px rgba(6, 27, 62, 0.11);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dbe7f2;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.video-meta {
  color: var(--green-2);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 7px;
}

.article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insurance-band {
  padding: 22px 0 26px;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.insurance-band h2 {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: 18px;
}

.logo-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  color: #30435f;
  font-size: 24px;
  font-weight: 850;
}

.site-footer {
  color: #c9d8e8;
  background:
    radial-gradient(circle at 92% 18%, rgba(21, 155, 104, 0.28), transparent 20%),
    linear-gradient(135deg, #061b3e 0%, #05345b 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h3,
.site-footer strong {
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: #c9d8e8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.map-box {
  min-height: 128px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.88) 0 2px, transparent 2px 100%),
    linear-gradient(0deg, rgba(255,255,255,0.88) 0 2px, transparent 2px 100%),
    #d8e5ee;
  background-size: 34px 34px;
  border-radius: var(--radius);
  color: var(--navy);
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #afc4d8;
  font-size: 13px;
}

@media (max-width: 980px) {
  .main-nav,
  .heart-link {
    display: none;
  }

  .search-fields,
  .location-layout,
  .video-feature {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-grid,
  .provider-grid,
  .article-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar .wrap,
  .site-header .wrap,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right {
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 24px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 100%),
      url("https://images.unsplash.com/photo-1518391846015-55a9cc003b25?auto=format&fit=crop&w=1200&q=80") center / cover;
  }

  .hero .wrap {
    padding-top: 40px;
  }

  .search-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-fields {
    padding: 14px;
  }

  .category-grid,
  .location-grid,
  .service-grid,
  .provider-grid,
  .article-grid,
  .video-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .video-player {
    min-height: 230px;
  }
}
