/* ==========================================================================
   Theragon Healthcare — shared stylesheet
   ========================================================================== */

:root {
  --navy: #16213e;
  --navy-deep: #101a33;
  --teal: #4fc6c0;
  --teal-soft: #d9f0ee;
  --blue-accent: #2f6f9e;
  --ink: #1c2b45;
  --gray: #5b6472;
  --gray-light: #f5f7f9;
  --border: #e4e8ee;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1280px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
}

.logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo .logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--blue-accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-accent);
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page title bar (used on inner pages) ---------- */
.page-title {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border);
}

.page-title h1 {
  font-size: 1.6rem;
  margin: 0;
}

/* ---------- Hero (plain full-width picture, no overlay text) ---------- */
.hero-picture {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-picture img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* TEDCare hero: show full image, no cropping */
body[data-page="tedcare"] .hero-picture img {
  max-height: none;
  object-fit: contain;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

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

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 760px;
  margin: 0 auto 40px;
}

/* ---------- Expertise / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
}

.feature-card img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 14px;
}

.feature-card span {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Partners grid ---------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding: 40px 0;
}

.partner-logo {
  width: 300px;

  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* ---------- TEDCare page ---------- */
.shop-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.shop-links a {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.shop-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px !important;
}

.shop-logo-link img {
  height: 32px;
  width: auto;
  display: block;
}

.tedcare-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.tedcare-logo-block {
  text-align: center;
}

.tedcare-logo-block img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.vm-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto 40px;
}

.vm-icon {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--blue-accent);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-row-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}

.product-row-item .product-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-row-item .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-row-item h3 {
  color: var(--blue-accent);
  font-size: 1.3rem;
}

/* ---------- Map embed ---------- */
.map-embed {
  position: relative;
  width: 100%;
  padding-top: 66%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Contact page ---------- */
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 48px 0 0;
}

.contact-method {
  text-align: center;
}

.contact-method .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

.locate-us {
  background: var(--gray-light);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-form {
  background: var(--gray-light);
  padding: 32px;
  border-radius: var(--radius);
}

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

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--blue-accent);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group label .req { color: #d64545; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover { background: var(--blue-accent); }

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 14px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 14px 0 0;
  min-height: 1.2em;
}

.form-status.success { color: #1a7a4c; }
.form-status.error { color: #d64545; }

/* ---------- Career page ---------- */
.career-list { max-width: 900px; margin: 0 auto; }

.job-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.job-toggle {
  width: 100%;
  text-align: left;
  background: var(--gray-light);
  border: none;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-toggle .icon-sym {
  color: var(--blue-accent);
  font-weight: 800;
}

.job-body {
  padding: 24px;
  display: none;
}

.job-item.open .job-body { display: block; }

.job-body h3 {
  color: var(--blue-accent);
  font-size: 1.1rem;
  margin-top: 24px;
}

.job-body h3:first-child { margin-top: 0; }

.job-body ul, .job-body ol { padding-left: 20px; }
.job-body li { margin-bottom: 6px; }

.hashtags {
  margin-top: 20px;
  color: var(--blue-accent);
  font-size: 0.9rem;
}

.apply-cta { text-align: center; margin: 32px 0; }

/* ---------- About page ---------- */
.about-values {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-values .value-icon {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-values .value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-values ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-values li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.about-values li:last-child { border-bottom: none; }

.about-values li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--blue-accent);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-grid p { margin: 0 0 10px; font-size: 0.92rem; }

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li { margin-bottom: 10px; }

.footer-grid ul a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.footer-grid ul a:hover { color: var(--teal); }

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tedcare-intro { grid-template-columns: 1fr; text-align: center; }
  .product-row-item { grid-template-columns: 1fr; }
  .product-row-item .product-photo { max-width: 220px; margin: 0 auto; }
  .vm-block { grid-template-columns: 1fr; text-align: center; }
  .vm-icon { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; text-align: center; }
  .about-values .value-icon { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links li { border-top: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 14px 32px;
    border-bottom: none !important;
  }

  .nav-toggle { display: flex; }

  .hero-picture img { max-height: 220px; }

  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .contact-methods { gap: 32px; }

  .form-row { grid-template-columns: 1fr; }

  .partner-grid { flex-direction: column; gap: 24px; }
  .partner-logo { width: 100%; max-width: 280px; height: auto; padding: 20px; }
}

@media (max-width: 480px) {
  .container, .nav-wrap, .page-title { padding-left: 18px; padding-right: 18px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
}
