/* ===========================================================
   Tejas Health Connect — shared stylesheet
   Soft maroon + gold on warm cream. Spectral + Mukta.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Mukta:wght@300;400;500;600;700&display=swap');

:root {
  /* brand */
  --maroon:       #7c2f38;
  --maroon-deep:  #5c2128;
  --maroon-soft:  #8d3b45;
  --gold:         #c0934a;
  --gold-soft:    #d8b873;
  --gold-deep:    #a87a32;

  /* neutrals */
  --cream:        #faf6ef;
  --cream-2:      #f4ece0;
  --paper:        #ffffff;
  --ink:          #2a221f;
  --muted:        #6f635c;
  --line:         #e8ddcd;

  /* utility */
  --whatsapp:     #1faa59;
  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(60,33,30,.05), 0 14px 34px -22px rgba(92,33,40,.32);
  --shadow-sm:    0 1px 2px rgba(60,33,30,.06), 0 6px 18px -14px rgba(92,33,40,.30);
  --maxw:         1160px;

  --font-head: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'Mukta', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  color: var(--maroon-deep);
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--gold-deep); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--cream { background: var(--cream-2); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.lead {
  font-size: 1.18rem;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--maroon-deep); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--maroon-deep); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #18934c; color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--maroon-deep); }
.btn-light:hover { background: var(--cream-2); transform: translateY(-2px); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,239,.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  flex: none;
}
.brand-logo--footer {
  height: 44px;
  max-width: 200px;
  border-radius: 8px;
  background: #fff;
}

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
}
.nav-links a:hover { background: var(--cream-2); color: var(--maroon); }
.nav-links a.active { color: var(--maroon); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--maroon-deep);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 1.05rem; }
  .nav-cta { margin: 14px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 420px) {
  .nav { height: 66px; }
  .brand-logo { height: 40px; max-width: min(190px, 48vw); }
  .brand-logo--footer { height: 38px; max-width: 175px; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(192,147,74,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 0%, rgba(124,47,56,.08), transparent 50%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 86px 0 90px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.06;
}
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }
.hero .lead { font-size: 1.24rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
}
.chip svg { width: 15px; height: 15px; color: var(--gold-deep); }

/* hero visual card */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute; inset: -14px -14px auto auto;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold));
  opacity: .25;
  z-index: -1;
}
.hero-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.hero-card .muted { color: var(--muted); font-size: .95rem; }
.journey { list-style: none; margin: 18px 0 0; padding: 0; }
.journey li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.journey li:first-child { border-top: none; padding-top: 4px; }
.journey .step-ic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--maroon);
  display: grid; place-items: center;
}
.journey .step-ic svg { width: 19px; height: 19px; }
.journey b { display: block; color: var(--maroon-deep); font-weight: 600; }
.journey span { font-size: .92rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding: 56px 0 64px; }
  .hero-card { order: 2; }
}

/* ===========================================================
   CARDS / SERVICES
   =========================================================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d2bd; }
.card .ic {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(124,47,56,.10), rgba(192,147,74,.16));
  color: var(--maroon);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* feature / check list */
.checks { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: 1.05rem; }
.checks .tick {
  flex: none; margin-top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(31,170,89,.12);
  color: var(--whatsapp);
  display: grid; place-items: center;
}
.checks .tick svg { width: 15px; height: 15px; }
.checks b { color: var(--maroon-deep); font-weight: 600; }

/* serve pills grid */
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.serve {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.serve .ic {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--maroon);
  display: grid; place-items: center;
}
.serve .ic svg { width: 26px; height: 26px; }
.serve h4 { font-size: 1.1rem; margin-bottom: 4px; }
.serve p { font-size: .9rem; color: var(--muted); margin: 0; }

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .panel {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  border-radius: 22px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow);
}
.split .panel h3 { color: #fff; }
.split .panel .checks li { color: rgba(255,255,255,.92); }
.split .panel .checks b { color: #fff; }
.split .panel .tick { background: rgba(255,255,255,.16); color: var(--gold-soft); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .serve-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band {
  background:
    radial-gradient(120% 130% at 85% 0%, rgba(192,147,74,.30), transparent 55%),
    linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.14rem; max-width: 38em; margin: 14px auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ===========================================================
   PAGE HEADER (interior pages)
   =========================================================== */
.page-head {
  background:
    radial-gradient(110% 120% at 92% -20%, rgba(192,147,74,.16), transparent 55%),
    var(--cream-2);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.page-head .lead { max-width: 42em; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--gold-deep); }

/* ===========================================================
   TEAM
   =========================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  transition: transform .18s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  width: 88px; height: 88px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, var(--maroon-soft), var(--maroon-deep));
  box-shadow: inset 0 0 0 3px rgba(216,184,115,.45);
}
.member h3 { font-size: 1.2rem; margin-bottom: 2px; }
.member .role { color: var(--gold-deep); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   BLOG
   =========================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb {
  height: 158px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.92);
  position: relative;
}
.post-thumb svg { width: 46px; height: 46px; opacity: .92; }
.post-thumb.t1 { background: linear-gradient(150deg, #7c2f38, #5c2128); }
.post-thumb.t2 { background: linear-gradient(150deg, #a87a32, #c0934a); }
.post-thumb.t3 { background: linear-gradient(150deg, #8d3b45, #a87a32); }
.post-thumb.t4 { background: linear-gradient(150deg, #5c2128, #8d3b45); }
.post-thumb.t5 { background: linear-gradient(150deg, #c0934a, #8d3b45); }
.post-thumb.t6 { background: linear-gradient(150deg, #6a4a8a, #5c2128); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.tag {
  background: var(--cream-2);
  color: var(--maroon);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post h3 { font-size: 1.22rem; margin-bottom: 8px; }
.post p { color: var(--muted); font-size: .96rem; margin: 0 0 16px; }
.read-more {
  margin-top: auto;
  font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--maroon);
}
.read-more svg { width: 15px; height: 15px; transition: transform .15s ease; }
.post:hover .read-more svg { transform: translateX(3px); }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 16px; list-style: none; margin: 0 0 26px; padding: 0; }
.info-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.info-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  background: var(--cream-2); color: var(--maroon);
  display: grid; place-items: center;
}
.info-list .ic svg { width: 21px; height: 21px; }
.info-list b { display: block; color: var(--maroon-deep); font-weight: 600; }
.info-list span, .info-list a { color: var(--muted); font-size: .98rem; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ===========================================================
   FORMS
   =========================================================== */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--maroon-deep);
  margin-bottom: 7px;
}
.field label .req { color: var(--maroon); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon-soft);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124,47,56,.10);
}
.field input::placeholder, .field textarea::placeholder { color: #b3a89e; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none;
  text-align: center;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(31,170,89,.10);
  border: 1px solid rgba(31,170,89,.3);
  color: #15803d;
  font-weight: 500;
  margin-bottom: 22px;
}
.form-success.show { display: block; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--maroon-deep);
  color: rgba(255,255,255,.78);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.site-footer h4 {
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-about p { color: rgba(255,255,255,.7); font-size: .96rem; margin-top: 16px; max-width: 30em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .96rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact .row { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: rgba(255,255,255,.78); }
.footer-contact .row svg { width: 18px; height: 18px; flex: none; color: var(--gold-soft); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.78); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-credit { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.footer-credit a { color: var(--gold-soft); font-weight: 600; }
.footer-credit a:hover { color: #fff; }
.footer-credit svg { width: 14px; height: 14px; color: var(--gold); }
.footer-mark { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .eyebrow { align-items: flex-start; gap: 8px; line-height: 1.45; letter-spacing: .12em; }
  .eyebrow::before { width: 16px; flex: none; margin-top: .58em; }
}

/* small helpers */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .6s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  * { scroll-behavior: auto; }
}
