:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f4f8fd;
  --surface-mint: #f4fbf7;
  --text: #162033;
  --muted: #5d6a7f;
  --line: #dfe8f2;
  --line-strong: #ccd9e8;
  --blue: #1f6fe5;
  --blue-strong: #1657c7;
  --green: #2fbe6c;
  --shadow: 0 18px 44px rgba(42, 79, 133, 0.12);
  --shadow-soft: 0 10px 26px rgba(54, 91, 144, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1386px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 229, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}

.page-shell {
  overflow-x: clip;
}

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

button,
input {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 28px), var(--container));
  margin: 0 auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(210, 223, 238, 0.8);
  box-shadow: 0 8px 20px rgba(102, 128, 168, 0.05);
}

.header-grid {
  min-height: 90px;
  display: grid;
  grid-template-columns: auto minmax(320px, 520px) minmax(340px, 1fr);
  grid-template-areas: "brand search nav";
  align-items: center;
  gap: 18px;
}

.header-brandline {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mobile-nav-toggle i {
  font-size: 1.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(42px, 4vw, 54px);
  object-fit: contain;
}

.header-nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-self: end;
}

.header-nav a {
  color: #2f3a4f;
  font-weight: 500;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.section-head a:hover,
.featured-content a:hover {
  color: var(--blue);
}

.header-tools {
  grid-area: search;
  width: 100%;
  max-width: 520px;
  justify-self: start;
  position: relative;
}

.header-search-shell {
  position: relative;
  width: 100%;
}

.header-search {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 10px 14px;
  color: var(--text);
}

.header-search button {
  height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 390px;
  overflow: auto;
  z-index: 60;
}

.hero-section {
  padding: 0 0 32px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background:
    linear-gradient(90deg, rgba(219, 234, 252, 0.28) 0%, rgba(245, 249, 255, 0.76) 42%, rgba(255, 255, 255, 0.96) 68%, rgba(255, 255, 255, 0.99) 100%),
    url("../images/hero-header-bg.png") left center / cover no-repeat,
    linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%);
  border: 1px solid rgba(214, 227, 242, 0.85);
  box-shadow: var(--shadow);
}

.hero-content {
  direction: rtl;
}

.hero-content {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 74px 32px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

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

.hero-summary {
  margin: 20px 0 28px;
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.search-hub {
  width: min(100%, 930px);
  max-width: 930px;
  margin-inline: auto;
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 227, 242, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(56, 94, 149, 0.12);
  overflow: hidden;
}

.search-mobile-picker {
  display: none;
  width: calc(100% - 36px);
  margin: 18px 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--text);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.search-mobile-picker-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: right;
}

.search-mobile-picker-caption {
  color: #7e8ca0;
  font-size: 0.8rem;
}

.search-mobile-picker-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
}

.search-mobile-picker-arrow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #edf4ff;
  flex-shrink: 0;
}

.search-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.search-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px 12px;
  border: 0;
  min-height: 70px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-tab i {
  font-size: 1.05rem;
}

.search-tab span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
}

.search-tab.is-active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
  background: #f8fbff;
}

.search-main-row {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 14px;
  padding: 18px;
}

.search-main-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 16px 18px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.search-main-row input::placeholder,
.header-search input::placeholder {
  color: #9aa8bb;
}

.search-main-row input:focus,
.header-search:focus-within {
  border-color: rgba(31, 111, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 111, 229, 0.08);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(31, 111, 229, 0.24);
}

.search-dropdown {
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  max-height: 390px;
  overflow: auto;
}

body.is-search-mobile-sheet-open {
  overflow: hidden;
}

.search-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.search-mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 28, 46, 0.42);
}

.search-mobile-sheet-panel {
  position: relative;
  width: min(100%, 560px);
  padding: 10px 16px 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 48px rgba(18, 43, 82, 0.18);
}

.search-mobile-sheet-handle {
  width: 54px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d8e4f1;
}

.search-mobile-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.search-mobile-sheet-caption {
  margin: 0 0 2px;
  color: #7e8ca0;
  font-size: 0.82rem;
}

.search-mobile-sheet-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.search-mobile-sheet-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.search-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-mobile-option {
  min-height: 92px;
  padding: 14px 12px;
  border: 1px solid #d9e5f3;
  border-radius: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.search-mobile-option i {
  font-size: 1.05rem;
}

.search-mobile-option span {
  line-height: 1.35;
  font-weight: 600;
}

.search-mobile-option.is-active {
  color: var(--blue);
  border-color: rgba(31, 111, 229, 0.34);
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  box-shadow: 0 12px 24px rgba(31, 111, 229, 0.12);
}

.dropdown-section + .dropdown-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.dropdown-section-title {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 2px 6px 8px;
}

.dropdown-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.dropdown-item:hover,
.dropdown-item.is-active {
  background: #f2f7fe;
}

.dropdown-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef5fd;
  color: var(--blue);
}

.dropdown-item-main strong {
  display: block;
  line-height: 1.5;
}

.dropdown-item-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.dropdown-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.dropdown-item-badge,
.dropdown-item-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #edf4ff;
  color: #2457a3;
}

.dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.primary-services-section,
.trust-section,
.articles-section,
.secondary-services-section {
  padding: 0 0 26px;
}

.primary-services-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.primary-service-card,
.secondary-service-card,
.featured-article,
.article-list-item {
  background: var(--surface);
  border: 1px solid rgba(221, 231, 242, 0.9);
  box-shadow: var(--shadow-soft);
}

.primary-service-card {
  min-height: 194px;
  border-radius: var(--radius-lg);
  padding: 24px 18px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-service-card:hover,
.secondary-service-card:hover,
.article-list-item:hover,
.featured-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.primary-service-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(var(--tone-rgb), 0.12);
  color: var(--tone-color);
}

.primary-service-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 1.45vw, 1.6rem);
  line-height: 1.35;
  text-wrap: balance;
}

.primary-service-card p,
.trust-item p,
.featured-content p,
.secondary-service-card p {
  margin: 0;
  color: var(--muted);
}

.primary-service-card p {
  font-size: 0.97rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f6fcf8, #f0fbf4);
  border: 1px solid #d6eee0;
  box-shadow: var(--shadow-soft);
}

.trust-item {
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.trust-item + .trust-item {
  border-right: 1px solid #d6eee0;
}

.trust-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: var(--green);
  background: rgba(47, 190, 108, 0.09);
}

.trust-item h3,
.secondary-service-card h3,
.featured-content h3,
.article-list-copy h4 {
  margin: 0 0 4px;
  line-height: 1.5;
}

.section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head a {
  color: var(--blue);
  font-weight: 700;
}

.articles-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
}

.featured-article {
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.featured-media {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 102, 150, 0.26), transparent 30%),
    linear-gradient(180deg, #ecf6ff, #d7e8ff);
  display: grid;
  place-items: center;
  color: var(--blue);
}

.featured-media.has-image {
  background: #e9f2fd;
}

.featured-media img,
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media i {
  font-size: 4.5rem;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff5c8d, #ff3f6f);
  font-size: 0.85rem;
  font-weight: 700;
}

.featured-content {
  padding: 28px 28px 24px;
}

.article-date {
  display: inline-block;
  color: #7a889b;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.featured-content h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.featured-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
}

.article-sidebar {
  display: grid;
  gap: 16px;
}

.article-list-item {
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 14px;
  align-items: center;
}

.article-list-copy h4 {
  font-size: 1.2rem;
}

.article-thumb {
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ecf4ff, #dce9ff);
  display: grid;
  place-items: center;
  color: var(--blue);
  overflow: hidden;
}

.article-thumb i {
  font-size: 1.9rem;
}

.secondary-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.secondary-service-groups {
  display: grid;
  gap: 24px;
}

.secondary-service-group {
  padding: 18px;
  border: 1px solid rgba(221, 231, 242, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(242, 247, 253, 0.78));
}

.secondary-service-group-head {
  margin-bottom: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.secondary-service-group-head h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.5;
}

.secondary-group-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(30, 120, 201, 0.1);
  font-size: 1.18rem;
}

.secondary-service-card {
  border-radius: 20px;
  padding: 20px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}

.secondary-service-card h4 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.secondary-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--tone-color);
  background: rgba(var(--tone-rgb), 0.12);
}

.tone-emerald { --tone-color: #1e78c9; --tone-rgb: 30, 120, 201; }
.tone-teal { --tone-color: #6d62ff; --tone-rgb: 109, 98, 255; }
.tone-blue { --tone-color: #2fbe6c; --tone-rgb: 47, 190, 108; }
.tone-navy { --tone-color: #0288d1; --tone-rgb: 2, 136, 209; }
.tone-plum { --tone-color: #438ae8; --tone-rgb: 67, 138, 232; }
.tone-purple { --tone-color: #59a2ff; --tone-rgb: 89, 162, 255; }
.tone-mint { --tone-color: #26a69a; --tone-rgb: 38, 166, 154; }
.tone-amber { --tone-color: #4caf50; --tone-rgb: 76, 175, 80; }
.tone-steel { --tone-color: #607d8b; --tone-rgb: 96, 125, 139; }
.tone-rose { --tone-color: #ff5f88; --tone-rgb: 255, 95, 136; }
.tone-leaf { --tone-color: #35a853; --tone-rgb: 53, 168, 83; }
.tone-sun { --tone-color: #f4a62a; --tone-rgb: 244, 166, 42; }
.tone-ink { --tone-color: #3366cc; --tone-rgb: 51, 102, 204; }
.tone-sky { --tone-color: #039be5; --tone-rgb: 3, 155, 229; }
.tone-coral { --tone-color: #ef6c57; --tone-rgb: 239, 108, 87; }

.site-footer {
  margin-top: 22px;
  padding: 34px 0 38px;
  background:
    linear-gradient(180deg, rgba(233, 243, 255, 0.82), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at top left, rgba(47, 190, 108, 0.08), transparent 28%);
  border-top: 1px solid rgba(214, 227, 242, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand,
.footer-services,
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(218, 229, 241, 0.92);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer-copyright,
.footer-contact,
.footer-disclaimer p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer-contact a {
  color: var(--blue);
  font-weight: 700;
}

.footer-services h2,
.footer-disclaimer h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.footer-service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.footer-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-service-list a {
  color: #2f3a4f;
  font-weight: 500;
}

.footer-service-list a:hover,
.footer-contact a:hover {
  color: var(--blue);
}


/* Food services split: 7 primary cards on desktop */
@media (min-width: 1221px) {
  .primary-services-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .primary-service-card {
    padding: 22px 14px 18px;
  }

  .primary-service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.85rem;
  }

  .primary-service-card h2 {
    font-size: clamp(1.1rem, 1.16vw, 1.42rem);
  }

  .primary-service-card p {
    font-size: 0.91rem;
    line-height: 1.85;
  }
}

@media (max-width: 1220px) {
  .header-grid {
    grid-template-columns: auto minmax(280px, 440px) minmax(240px, 1fr);
    gap: 14px;
  }

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

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

  .articles-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .header-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "nav";
    gap: 14px;
    padding: 14px 0 18px;
  }

  .header-brandline {
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-tools {
    max-width: none;
  }

  .header-nav {
    width: 100%;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  .header-nav.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0;
  }

  .header-nav a {
    padding: 12px 18px;
  }

  .header-nav a + a {
    border-top: 1px solid var(--line);
  }

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

  .hero-stage {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(245, 249, 255, 0.7) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.98) 100%),
      url("../images/hero-header-bg.png") center top / cover no-repeat,
      linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%);
  }

  .hero-content {
    width: 100%;
    margin: 0 auto;
    padding: 42px 24px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-disclaimer {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 18px), var(--container));
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-logo {
    height: 46px;
  }

  .header-tools {
    width: 100%;
  }

  .header-search-dropdown {
    position: static;
    margin-top: 10px;
  }

  .primary-services-grid,
  .trust-strip,
  .secondary-services-grid,
  .footer-service-columns {
    grid-template-columns: 1fr;
  }

  .search-hub {
    overflow: visible;
  }

  .search-mobile-picker {
    display: flex;
  }

  .search-mobile-sheet:not([hidden]) {
    display: flex;
  }

  .search-tabs {
    display: none;
  }

  .search-main-row,
  .featured-article,
  .article-list-item,
  .secondary-service-card,
  .trust-item {
    grid-template-columns: 1fr;
  }

  .search-tab,
  .search-submit {
    min-height: 56px;
  }

  .search-main-row {
    padding-top: 14px;
  }

  .search-tab {
    padding: 14px 10px;
    font-size: 0.95rem;
  }

  .search-tab span {
    white-space: normal;
  }

  .primary-service-card {
    min-height: 0;
  }

  .trust-item + .trust-item {
    border-right: 0;
    border-top: 1px solid #d6eee0;
  }

  .featured-media {
    min-height: 220px;
  }

  .article-thumb {
    height: clamp(168px, 44vw, 210px);
    border-radius: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .header-grid {
    padding-bottom: 14px;
  }

  .brand-logo {
    height: 40px;
  }

  .search-main-row {
    padding: 14px;
  }

  .header-search input {
    padding: 10px 12px;
  }

  .search-mobile-picker {
    width: calc(100% - 28px);
    margin: 14px 14px 0;
    padding: 13px 14px;
  }

  .search-mobile-sheet-panel {
    padding: 10px 14px 16px;
  }

  .search-mobile-grid {
    gap: 10px;
  }

  .search-mobile-option {
    min-height: 84px;
    padding: 12px 10px;
  }

  .site-footer {
    padding: 26px 0 30px;
  }

  .footer-brand,
  .footer-services,
  .footer-disclaimer {
    padding: 20px 18px;
  }
}


/* Food cards update: keep the two food-related services visible and readable on desktop. */
.primary-service-card[href*="/Foods-Diseases/"] {
  border-color: rgba(38, 166, 154, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f5fffc 100%);
}

.primary-service-card[href*="/diseases/foods"] {
  border-color: rgba(53, 168, 83, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f8fff9 100%);
}

@media (min-width: 1221px) {
  .primary-services-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
