/* Hearts Enteral / NutriCare USA — Matched to original site styling */

:root {
  --purple: rgb(190, 146, 244);
  --purple-hover: rgb(144, 93, 207);
  --purple-active: rgb(102, 31, 157);
  --dark: rgb(22, 22, 22);
  --text-dark: rgb(27, 27, 27);
  --text-body: rgb(71, 71, 71);
  --text-muted: rgb(94, 94, 94);
  --white: rgb(255, 255, 255);
  --light-gray: rgb(246, 246, 246);
  --border: rgb(226, 226, 226);
  --footer-text: rgb(247, 247, 247);
}

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

body {
  font-family: 'Lato', arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: rgb(21, 21, 21);
  line-height: 1.3;
}

a {
  color: var(--purple-hover);
  text-decoration: none;
  transition: color 0.33s ease-in-out;
}

a:hover {
  color: var(--purple-active);
}

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

/* ===== HEADER ===== */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  font-family: 'Cabin', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--purple-hover);
}

.header-phone a {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  color: var(--purple-hover);
  font-weight: 700;
  transition: color 0.33s ease-in-out;
}

.header-phone a:hover {
  color: var(--purple-active);
}

/* ===== NAVIGATION ===== */
.nav {
  background-color: var(--dark);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Cabin', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.33s ease-in-out, color 0.33s ease-in-out;
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: var(--purple-hover);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  transition: transform 0.33s ease-in-out;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 56px 24px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
  text-transform: none;
}

.hero p {
  font-family: 'Lato', arial, sans-serif;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 300;
}

/* ===== SECTIONS ===== */
.section {
  padding: 56px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-gray {
  background-color: var(--light-gray);
}

.section-purple {
  background-color: var(--purple-hover);
  color: var(--white);
}

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

.section-full {
  max-width: 100%;
  padding: 56px 0;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgb(21, 21, 21);
}

.section-gray h2,
.section-purple h2,
.section-dark h2 {
  color: inherit;
}

.section p {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-purple p,
.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== CARDS ===== */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.card-grid .card {
  flex: 1 1 calc(50% - 12px);
  min-width: 280px;
}

.card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 3px 6px 3px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.33s ease-in-out;
}

.card:hover {
  box-shadow: 0 6px 12px 4px rgba(0, 0, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 0;
  padding-bottom: 50%; /* 2:1 aspect ratio */
  object-fit: cover;
  background-color: var(--light-gray);
  background-size: cover;
  background-position: center;
}

img.card-image {
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 2 / 1;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgb(21, 21, 21);
}

.card-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.33s ease-in-out;
  border: none;
}

.btn-purple {
  background-color: var(--purple-hover);
  color: var(--white);
}

.btn-purple:hover {
  background-color: var(--purple-active);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 500px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Lato', arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.33s ease-in-out;
  background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple-hover);
}

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

/* ===== PARTNERS / VENDORS ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.partner-logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  background-color: var(--light-gray);
  border-radius: 4px;
  padding: 10px;
}

/* ===== INSURANCE LIST ===== */
.insurance-list {
  list-style: none;
  padding: 0;
}

.insurance-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-body);
}

.insurance-list li:last-child {
  border-bottom: none;
}

.insurance-list li::before {
  content: '✓';
  color: var(--purple-hover);
  font-weight: 700;
  margin-right: 12px;
}

.non-participating li::before {
  content: '✗';
  color: #c0392b;
}

/* ===== DOWNLOAD LINKS ===== */
.download-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.download-list li {
  margin-bottom: 16px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.33s ease-in-out;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.download-link:hover {
  background-color: var(--purple-hover);
  color: var(--white);
  border-color: var(--purple-hover);
}

.download-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== EXPANDABLE / SHOW MORE ===== */
.expandable {
  position: relative;
}

.expandable-content {
  display: none;
  margin-top: 12px;
}

.expandable-content.open {
  display: block;
}

.show-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--purple-hover);
  font-family: 'Lato', arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.33s ease-in-out;
}

.show-more-btn:hover {
  color: var(--purple-active);
}

/* ===== ACCREDITATION BADGE ===== */
.accreditation {
  text-align: center;
  padding: 40px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--footer-text);
  text-align: center;
  padding: 56px 24px;
}

.footer p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--footer-text);
}

.footer a {
  color: var(--purple);
  transition: color 0.33s ease-in-out;
}

.footer a:hover {
  color: var(--purple-hover);
}

.footer-social {
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin: 0 4px;
  transition: background-color 0.33s ease-in-out;
}

.footer-social a:hover {
  background-color: var(--purple-hover);
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== CONTACT INFO ===== */
.contact-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
  margin-top: 20px;
  color: rgb(21, 21, 21);
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 4px;
  color: var(--text-body);
}

.contact-info .hours {
  margin-top: 24px;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background-color: var(--dark);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

/* ===== RESPONSIVE — 1280px+ ===== */
@media (min-width: 1280px) {
  .section,
  .section-inner,
  .header-top,
  .nav-list {
    max-width: 1280px;
  }
}

/* ===== RESPONSIVE — 1024px ===== */
@media (max-width: 1023px) {
  .section,
  .section-inner,
  .header-top,
  .nav-list {
    max-width: 984px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* ===== RESPONSIVE — 768px ===== */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .header-top {
    padding: 12px 16px;
  }

  .hero {
    min-height: 45vh;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .section {
    padding: 40px 16px;
  }

  .section-full {
    padding: 40px 0;
  }

  .section-inner {
    padding: 0 16px;
  }

  .section h2 {
    font-size: 24px;
  }

  .page-header {
    padding: 40px 16px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .card-grid {
    flex-direction: column;
  }

  .card-grid .card {
    flex: 1 1 100%;
  }

  .footer {
    padding: 40px 16px;
  }

  .download-link {
    font-size: 13px;
    padding: 14px 16px;
  }
}

/* ===== RESPONSIVE — 450px ===== */
@media (max-width: 450px) {
  .logo {
    font-size: 18px;
  }

  .header-phone a {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section h2 {
    font-size: 22px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
