/*
Theme Name: Hello Elementor — Dr. Syeda Madani
Theme URI: https://tervisdesign.com/drsyeda
Description: Child theme for Dr. Syeda Madani longevity practice. Overrides front-page with brief-accurate reference design.
Author: Dr. Madani Web Team
Author URI: https://tervisdesign.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-drsyeda
*/

/* =============================================================
   Dr. Syeda Madani — Longevity Medicine
   Reference build matching email brief
   ============================================================= */

:root {
  --bg:        #04101e;
  --bg-alt:    #07182b;
  --bg-soft:   #0c2440;
  --ink:       #ffffff;
  --ink-muted: #a9b8cc;
  --accent:    #2f7ef0;
  --accent-2:  #6aa6ff;
  --rule:      rgba(255,255,255,0.10);
  --serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:    4px;
  --radius-pill: 999px;
  --max:       1180px;
}

/* Scope reset to our home wrapper so we don't clobber other pages */
.drsm-home * { box-sizing: border-box; }
.drsm-home {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body.drsm-home-body { margin: 0; padding: 0; background: var(--bg); }
.drsm-home img { max-width: 100%; display: block; }
.drsm-home a { color: inherit; text-decoration: none; }
.drsm-home a:hover { color: var(--accent-2); }

/* Layout */
.drsm-home .container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.drsm-home .container--narrow { max-width: 760px; }

/* Utility bar */
.drsm-home .utility-bar { background: #02080f; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-muted); }
.drsm-home .utility-bar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.drsm-home .utility-bar__social { display: flex; gap: 14px; }
.drsm-home .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--rule); border-radius: 50%; font-size: 11px; color: var(--ink-muted); text-transform: lowercase; transition: all .2s ease; }
.drsm-home .social-icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Header */
.drsm-home .site-header { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.drsm-home .site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.drsm-home .logo { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.2px; color: var(--ink); }
.drsm-home .logo span { color: var(--accent-2); font-style: italic; }
.drsm-home .nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; }
.drsm-home .nav a { color: var(--ink-muted); }
.drsm-home .nav a:hover { color: var(--ink); }
.drsm-home .site-header__cta { display: flex; align-items: center; gap: 18px; }
.drsm-home .phone { font-size: 12px; color: var(--ink-muted); text-align: right; line-height: 1.25; }
.drsm-home .phone strong { color: var(--ink); font-size: 15px; font-weight: 600; }

/* Buttons */
.drsm-home .btn { display: inline-block; border: none; cursor: pointer; font-family: var(--sans); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; border-radius: var(--radius); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.drsm-home .btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(47,126,240,0.7); }
.drsm-home .btn--primary:hover { background: #1f6cdb; transform: translateY(-1px); color: #fff; }
.drsm-home .btn--sm  { padding: 10px 18px; font-size: 12px; }
.drsm-home .btn--lg  { padding: 16px 32px; font-size: 13px; }

/* Sections */
.drsm-home .section { padding: 110px 0; border-bottom: 1px solid var(--rule); }
.drsm-home .section--alt { background: radial-gradient(ellipse at top, rgba(47,126,240,0.10), transparent 60%), var(--bg-alt); }
.drsm-home .section--hero { padding: 130px 0 120px; background: radial-gradient(ellipse at 30% 20%, rgba(47,126,240,0.18), transparent 55%), var(--bg); }

/* Eyebrows */
.drsm-home .eyebrow { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent-2); margin: 0 0 6px; font-weight: 600; }
.drsm-home .eyebrow--name { color: var(--ink); font-weight: 600; letter-spacing: 2px; }
.drsm-home .eyebrow--muted { color: var(--ink-muted); font-weight: 500; letter-spacing: 2px; margin-bottom: 28px; }

/* Display */
.drsm-home .display { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 8vw, 104px); line-height: 0.96; letter-spacing: -1px; margin: 0 0 28px; color: var(--ink); }
.drsm-home .display em { font-style: italic; font-weight: 500; color: var(--accent-2); }
.drsm-home .display--md { font-size: clamp(36px, 5.2vw, 60px); }
.drsm-home .lede { font-size: 18px; color: var(--ink-muted); max-width: 560px; margin: 0 0 36px; line-height: 1.55; }
.drsm-home .microcopy { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.6px; color: var(--ink-muted); }
.drsm-home .tagline { margin-top: 32px; font-family: var(--serif); font-style: italic; color: var(--ink-muted); font-size: 18px; }

/* Pills */
.drsm-home .pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0 0 36px; }
.drsm-home .pill { border: 1px solid var(--accent); color: var(--ink); background: rgba(47,126,240,0.08); padding: 14px 28px; border-radius: var(--radius-pill); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; }

/* Bioage */
.drsm-home .section--bioage { text-align: left; }
.drsm-home .bioage__label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); margin: 24px 0 12px; font-weight: 600; }
.drsm-home .bioage__number { font-family: var(--serif); font-weight: 500; font-size: clamp(140px, 22vw, 280px); line-height: 0.9; margin: 0; color: var(--ink); letter-spacing: -4px; }
.drsm-home .bioage__compare { font-size: 14px; color: var(--ink-muted); letter-spacing: 1px; margin: 8px 0 4px; }
.drsm-home .bioage__note { font-size: 12px; color: var(--ink-muted); font-style: italic; margin: 0 0 36px; opacity: 0.7; }

/* Services */
.drsm-home .services { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; font-size: 19px; font-weight: 400; color: var(--ink); }
.drsm-home .services li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.drsm-home .services__bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* Pullquote */
.drsm-home .pullquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.18; color: var(--ink); margin: 18px 0 28px; max-width: 880px; border-left: 3px solid var(--accent); padding-left: 28px; }
.drsm-home .pullquote__attr { color: var(--ink-muted); font-size: 14px; letter-spacing: 1px; margin: 0 0 36px; line-height: 1.6; }
.drsm-home .pullquote__attr strong { color: var(--ink); font-weight: 600; }

/* Form */
.drsm-home .form { display: grid; gap: 18px; margin-top: 32px; }
.drsm-home .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.drsm-home .form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.drsm-home .form input, .drsm-home .form textarea { font-family: var(--sans); font-size: 15px; background: var(--bg-alt); border: 1px solid var(--rule); color: var(--ink); padding: 14px 16px; border-radius: var(--radius); outline: none; }
.drsm-home .form input:focus, .drsm-home .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,126,240,0.18); }
.drsm-home .form button { justify-self: start; }
.drsm-home .form__msg { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.drsm-home .form__msg--ok { background: rgba(47,126,240,0.15); border: 1px solid var(--accent); color: var(--ink); }
.drsm-home .form__msg--err { background: rgba(240,80,80,0.12); border: 1px solid #e35a5a; color: #ffd9d9; }

/* Footer */
.drsm-home .site-footer { background: #02080f; padding: 64px 0 24px; color: var(--ink-muted); font-size: 14px; }
.drsm-home .site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.drsm-home .logo--footer { margin: 0 0 10px; font-size: 22px; }
.drsm-home .footer-tag { margin: 0; line-height: 1.6; }
.drsm-home .nav--footer { flex-direction: column; gap: 10px; }
.drsm-home .site-footer__contact { display: grid; gap: 8px; }
.drsm-home .site-footer__contact strong { color: var(--ink); font-size: 16px; }
.drsm-home .site-footer__legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-muted); }

/* =============================================================
   Elementor compatibility — when drsm-home is a body class
   (added by Elementor page settings CSS classes field)
   rather than a wrapper div, all .drsm-home selectors above
   still work because body is an ancestor of everything.
   These rules handle Elementor-specific structure.
   ============================================================= */

/* Reset Elementor section/column defaults that conflict */
.drsm-home .elementor-section,
.drsm-home .elementor-top-section {
  border: none !important;
}
.drsm-home .elementor-widget-wrap {
  align-content: start;
}

/* Content width constraint for all Elementor sections */
.drsm-home .elementor-container {
  max-width: 720px;
}

/* Heading widget: our display class must override Elementor's inline font-size */
.drsm-home .elementor-widget.display .elementor-heading-title {
  font-family: var(--serif) !important;
  font-size: clamp(48px, 8vw, 104px) !important;
  font-weight: 500 !important;
  line-height: 0.96 !important;
  letter-spacing: -1px !important;
  color: var(--ink) !important;
}
.drsm-home .elementor-widget.display.display--md .elementor-heading-title {
  font-size: clamp(36px, 5.2vw, 60px) !important;
}
.drsm-home .elementor-widget.display .elementor-heading-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

/* Bioage number */
.drsm-home .elementor-widget.bioage__number .elementor-heading-title {
  font-family: var(--serif) !important;
  font-size: clamp(140px, 22vw, 280px) !important;
  font-weight: 500 !important;
  line-height: 0.9 !important;
  letter-spacing: -4px !important;
  color: var(--ink) !important;
}

/* Pullquote heading */
.drsm-home .elementor-widget.pullquote .elementor-heading-title {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: clamp(32px, 4.4vw, 54px) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  color: var(--ink) !important;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}
.drsm-home .elementor-widget.pullquote .elementor-heading-title em {
  font-style: italic;
  color: var(--ink);
}

/* Eyebrow widgets (html widget) */
.drsm-home .eyebrow {
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 6px;
  font-weight: 600;
}
.drsm-home .eyebrow--border {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* Blue horizontal rule (bioage divider) */
.drsm-home .drsm-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 0;
}

/* Services list via HTML widget */
.drsm-home .services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 14px;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
}
.drsm-home .services-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.drsm-home .services-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* Pullquote inline (2-col right column) */
.drsm-home .pullquote--inline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-2);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  margin: 0;
}

/* Footer inside html widget */
.drsm-home .site-footer,
.drsm-home .elementor-widget-html .site-footer {
  text-align: left;
  color: var(--ink-muted);
  font-size: 14px;
}
.drsm-home .footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.drsm-home .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  font-size: 14px;
}
.drsm-home .footer-links__sep { color: var(--ink-muted); }
.drsm-home .footer-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 560px;
}

/* Bioage caption */
.drsm-home .bioage__caption {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  margin: 8px 0 0;
}

/* Form: override Elementor widget margins */
.drsm-home .elementor-widget-html .form {
  margin-top: 0;
}
.drsm-home .form__label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.drsm-home .form__input {
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius);
  outline: none;
  width: 100%;
}
.drsm-home .form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,126,240,0.18);
}
.drsm-home .form__textarea { resize: vertical; }

/* Inline button links (html widget CTAs) */
.drsm-home .elementor-widget-html .btn {
  display: inline-block;
  text-align: center;
}

/* Spacer widget: remove Elementor's default spacer border */
.drsm-home .elementor-widget-spacer { background: transparent !important; }

/* Pullquote attr */
.drsm-home .pullquote__attr {
  color: var(--ink-muted);
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0 0 8px;
  line-height: 1.6;
}
.drsm-home .pullquote__attr strong { color: var(--ink); font-weight: 600; }

/* Bio photo (2-col section 6) */
.drsm-home .bio-photo { height: 100%; min-height: 420px; }
.drsm-home .bio-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  display: block;
}

/* Map embed (2-col section 7) */
.drsm-home .drsm-map-wrap {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
}
.drsm-home .drsm-map-wrap iframe { width: 100%; height: 100%; border: 0; }
.drsm-home .drsm-address {
  color: var(--ink-muted);
  font-size: .92rem;
  line-height: 1.7;
}
.drsm-home .drsm-address strong { color: var(--ink); }

@media (max-width: 900px) {
  .drsm-home .site-header__inner { height: auto; padding: 16px 0; flex-wrap: wrap; gap: 12px; }
  .drsm-home .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .drsm-home .section { padding: 80px 0; }
  .drsm-home .section--hero { padding: 90px 0 80px; }
  .drsm-home .form__row { grid-template-columns: 1fr; }
  .drsm-home .site-footer__inner { grid-template-columns: 1fr; }
  .drsm-home .pullquote { padding-left: 18px; }
}
@media (max-width: 540px) {
  .drsm-home { font-size: 16px; }
  .drsm-home .display { font-size: clamp(40px, 12vw, 64px); }
  .drsm-home .bioage__number { font-size: clamp(120px, 36vw, 200px); }
  .drsm-home .pill { padding: 12px 20px; font-size: 11px; letter-spacing: 1.8px; }
  .drsm-home .lede { font-size: 16px; }
  .drsm-home .utility-bar { display: none; }
}
