/*
Theme Name:   ShriMD Astra Child
Theme URI:    https://shrimd.com
Description:  Astra child theme for ShriMD – telehealth homepage. Locks in global typography, colors, spacing, and component styles for the Elementor page build.
Author:       ShriMD
Author URI:   https://shrimd.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  shrimd-astra-child
*/

/* ═══════════════════════════════════════════════════════════════
   1. GOOGLE FONTS IMPORT
   Playfair Display (headings) + DM Sans (body)
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');


/* ═══════════════════════════════════════════════════════════════
   2. DESIGN TOKENS (CSS Custom Properties)
   Single source of truth — change here, updates everywhere
═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand Colors */
  --shrimd-blue:        #0F4C81;
  --shrimd-blue-dark:   #0a3260;
  --shrimd-blue-light:  #1a6bb5;
  --shrimd-accent:      #5BC4F5;
  --shrimd-accent-dark: #3AA8DC;
  --shrimd-gold:        #FFD166;
  --shrimd-green:       #2ECC71;

  /* Neutrals */
  --shrimd-white:       #ffffff;
  --shrimd-off-white:   #F7FAFD;
  --shrimd-text:        #1a2840;
  --shrimd-text-muted:  #5a7090;
  --shrimd-border:      rgba(15, 76, 129, 0.12);

  /* Shadows */
  --shrimd-shadow:      0 4px 24px rgba(15, 76, 129, 0.10);
  --shrimd-shadow-lg:   0 12px 48px rgba(15, 76, 129, 0.15);
  --shrimd-shadow-blue: 0 8px 32px rgba(91, 196, 245, 0.35);

  /* Radii */
  --shrimd-radius:      12px;
  --shrimd-radius-lg:   20px;
  --shrimd-radius-pill: 100px;

  /* Spacing scale */
  --shrimd-section-pad: 96px;
  --shrimd-container:   1200px;
}


/* ═══════════════════════════════════════════════════════════════
   3. GLOBAL RESET & BASE
═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--shrimd-text);
  background-color: var(--shrimd-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════════════════════════
   4. TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */

/* — Headings — */
h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  color: var(--shrimd-blue-dark);
  line-height: 1.12;
}

h1 { font-size: clamp(42px, 5.5vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* Italic accent (used in hero headline) */
h1 em, h2 em {
  font-style: italic;
  color: var(--shrimd-accent);
}

/* — Body text — */
p {
  font-family: 'DM Sans', sans-serif;
  color: var(--shrimd-text-muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

/* — Links — */
a {
  color: var(--shrimd-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--shrimd-accent-dark);
}

/* — Section utility labels — */
.shrimd-section-label,
.elementor-widget-heading .section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shrimd-accent-dark);
  display: block;
  margin-bottom: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   5. ASTRA HEADER OVERRIDES
   Makes Astra's built-in header match ShriMD design
═══════════════════════════════════════════════════════════════ */

/* Sticky header base */
#masthead,
.site-header,
.ast-header-break-point .main-header-bar {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--shrimd-border) !important;
  box-shadow: 0 2px 16px rgba(15, 76, 129, 0.07) !important;
  transition: box-shadow 0.3s ease;
}

/* Header inner height */
.main-header-bar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ast-masthead-custom-menu-items,
.ast-header-custom-item {
  height: 70px;
  display: flex;
  align-items: center;
}

/* Site logo / title */
.site-title a,
.ast-site-identity .site-title a {
  font-family: 'Playfair Display', serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--shrimd-blue-dark) !important;
  letter-spacing: 0.3px;
  text-decoration: none !important;
}
/* The "MD" part — add class="accent" to the span in Astra logo HTML */
.site-title .accent {
  color: var(--shrimd-accent-dark);
}

/* Nav menu links */
.main-navigation .menu-item a,
.ast-nav-menu .menu-item > a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--shrimd-text-muted) !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: color 0.2s, background 0.2s !important;
}
.main-navigation .menu-item a:hover,
.ast-nav-menu .menu-item > a:hover {
  color: var(--shrimd-blue) !important;
  background: rgba(15, 76, 129, 0.05) !important;
}

/* Active nav item */
.main-navigation .current-menu-item > a,
.ast-nav-menu .current-menu-item > a {
  color: var(--shrimd-blue) !important;
  background: rgba(15, 76, 129, 0.06) !important;
}

/* Nav: Sign In button */
.nav-btn-signin,
.ast-custom-button.signin {
  border: 1.5px solid var(--shrimd-border) !important;
  color: var(--shrimd-blue) !important;
  border-radius: 7px !important;
  padding: 8px 18px !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: border-color 0.2s, background 0.2s !important;
}
.nav-btn-signin:hover {
  border-color: var(--shrimd-blue) !important;
  background: rgba(15, 76, 129, 0.04) !important;
}

/* Nav: Get Started CTA button */
.nav-btn-cta,
.ast-custom-button.get-started {
  background: var(--shrimd-blue) !important;
  color: var(--shrimd-white) !important;
  border-radius: 7px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  transition: background 0.2s !important;
}
.nav-btn-cta:hover {
  background: var(--shrimd-blue-dark) !important;
  color: var(--shrimd-white) !important;
}


/* ═══════════════════════════════════════════════════════════════
   6. ASTRA FOOTER OVERRIDES
═══════════════════════════════════════════════════════════════ */
.site-footer,
#colophon {
  background-color: var(--shrimd-blue-dark) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
  padding: 24px 48px !important;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.45) !important;
  transition: color 0.2s !important;
}
.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}


/* ═══════════════════════════════════════════════════════════════
   7. ELEMENTOR SECTION GLOBAL STYLES
═══════════════════════════════════════════════════════════════ */

/* Consistent max-width container */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--shrimd-container) !important;
}

/* Section default padding */
.elementor-section {
  padding-top: var(--shrimd-section-pad);
  padding-bottom: var(--shrimd-section-pad);
}

/* Remove double spacing from nested sections */
.elementor-inner-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════
   8. BUTTON STYLES (global Elementor buttons)
═══════════════════════════════════════════════════════════════ */

/* Primary button */
.elementor-button.elementor-button-info,
.elementor-button.shrimd-btn-primary,
a.shrimd-btn-primary {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  background-color: var(--shrimd-accent) !important;
  color: var(--shrimd-blue-dark) !important;
  border-radius: 9px !important;
  padding: 16px 32px !important;
  border: none !important;
  box-shadow: var(--shrimd-shadow-blue) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.2px;
}
.elementor-button.elementor-button-info:hover,
.elementor-button.shrimd-btn-primary:hover,
a.shrimd-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(91, 196, 245, 0.45) !important;
}

/* Outline / ghost button */
.elementor-button.shrimd-btn-outline,
a.shrimd-btn-outline {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  background-color: transparent !important;
  color: var(--shrimd-blue) !important;
  border: 2px solid var(--shrimd-blue) !important;
  border-radius: 9px !important;
  padding: 14px 28px !important;
  transition: background 0.2s, color 0.2s !important;
}
.elementor-button.shrimd-btn-outline:hover,
a.shrimd-btn-outline:hover {
  background-color: var(--shrimd-blue) !important;
  color: var(--shrimd-white) !important;
}

/* White ghost (for dark sections) */
.elementor-button.shrimd-btn-ghost-white,
a.shrimd-btn-ghost-white {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 9px !important;
  padding: 14px 28px !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s !important;
}
.elementor-button.shrimd-btn-ghost-white:hover,
a.shrimd-btn-ghost-white:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: var(--shrimd-white) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}


/* ═══════════════════════════════════════════════════════════════
   9. CARD COMPONENT STYLES
   Applied automatically to Elementor widget containers
   with class="shrimd-card"
═══════════════════════════════════════════════════════════════ */
.shrimd-card,
.elementor-widget-wrap.shrimd-card {
  background: var(--shrimd-white);
  border-radius: var(--shrimd-radius-lg);
  border: 1.5px solid var(--shrimd-border);
  box-shadow: var(--shrimd-shadow);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.shrimd-card:hover,
.elementor-widget-wrap.shrimd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shrimd-shadow-lg);
  border-color: rgba(91, 196, 245, 0.4);
}

/* Trust icon boxes */
.shrimd-trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(15, 76, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   10. PRICING TABLE
═══════════════════════════════════════════════════════════════ */
.shrimd-pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--shrimd-radius-lg);
  overflow: hidden;
  box-shadow: var(--shrimd-shadow-lg);
}
.shrimd-pricing-table thead {
  background: var(--shrimd-blue);
  color: var(--shrimd-white);
}
.shrimd-pricing-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.shrimd-pricing-table tbody tr {
  border-bottom: 1px solid var(--shrimd-border);
  transition: background 0.15s;
}
.shrimd-pricing-table tbody tr:last-child {
  border-bottom: none;
}
.shrimd-pricing-table tbody tr:hover {
  background: rgba(15, 76, 129, 0.03);
}
.shrimd-pricing-table td {
  padding: 18px 24px;
  font-size: 15px;
  vertical-align: middle;
  font-family: 'DM Sans', sans-serif;
}
.shrimd-pricing-table td:first-child {
  font-weight: 600;
  color: var(--shrimd-blue-dark);
}
.shrimd-price-tag {
  font-weight: 700;
  color: var(--shrimd-accent-dark);
  font-size: 17px;
}
.shrimd-table-link {
  font-size: 13px;
  color: var(--shrimd-blue);
  font-weight: 600;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.shrimd-table-link:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   11. TESTIMONIAL CARDS
═══════════════════════════════════════════════════════════════ */
.shrimd-test-card {
  background: var(--shrimd-white);
  border-radius: var(--shrimd-radius-lg);
  padding: 36px;
  border: 1.5px solid var(--shrimd-border);
  box-shadow: var(--shrimd-shadow);
  position: relative;
}
.shrimd-test-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: rgba(15, 76, 129, 0.06);
  line-height: 1;
}
.shrimd-stars {
  color: var(--shrimd-gold);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.shrimd-test-text {
  font-size: 15px;
  color: var(--shrimd-text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}
.shrimd-test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shrimd-blue), var(--shrimd-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shrimd-white);
  font-weight: 700;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
}


/* ═══════════════════════════════════════════════════════════════
   12. HERO SECTION OVERRIDES
═══════════════════════════════════════════════════════════════ */

/* Hero badge pill */
.shrimd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(91, 196, 245, 0.1);
  border: 1px solid rgba(91, 196, 245, 0.3);
  border-radius: var(--shrimd-radius-pill);
  padding: 6px 18px;
  margin-bottom: 28px;
}
.shrimd-hero-badge span {
  font-size: 12.5px;
  color: var(--shrimd-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.shrimd-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shrimd-accent);
  animation: shrimdPulse 2s infinite;
}
@keyframes shrimdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Trust bar */
.shrimd-trust-bar {
  background: rgba(255, 255, 255, 0.055);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.shrimd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.shrimd-trust-item + .shrimd-trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}


/* ═══════════════════════════════════════════════════════════════
   13. HOW IT WORKS — STEP ITEMS
═══════════════════════════════════════════════════════════════ */
.shrimd-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--shrimd-border);
}
.shrimd-step:last-child {
  border-bottom: none;
}
.shrimd-step-num {
  flex: 0 0 48px;
  height: 48px;
  background: var(--shrimd-blue);
  color: var(--shrimd-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.25);
  flex-shrink: 0;
}
.shrimd-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--shrimd-blue-dark);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}
.shrimd-step-desc {
  font-size: 14px;
  color: var(--shrimd-text-muted);
  line-height: 1.6;
}

/* How it works — dark right panel */
.shrimd-how-panel {
  background: linear-gradient(135deg, var(--shrimd-blue-dark), var(--shrimd-blue));
  border-radius: var(--shrimd-radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shrimd-shadow-lg);
}
.shrimd-stat-box {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.shrimd-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--shrimd-white);
  font-family: 'Playfair Display', serif;
}
.shrimd-stat-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}


/* ═══════════════════════════════════════════════════════════════
   14. SECTION BACKGROUND UTILITIES
═══════════════════════════════════════════════════════════════ */
.shrimd-bg-white     { background-color: var(--shrimd-white) !important; }
.shrimd-bg-off-white { background-color: var(--shrimd-off-white) !important; }
.shrimd-bg-blue      { background-color: var(--shrimd-blue) !important; }
.shrimd-bg-dark      { background-color: var(--shrimd-blue-dark) !important; }
.shrimd-bg-gradient  {
  background: linear-gradient(135deg, var(--shrimd-blue-dark) 0%, var(--shrimd-blue) 50%, var(--shrimd-blue-light) 100%) !important;
}


/* ═══════════════════════════════════════════════════════════════
   15. TEXT COLOUR UTILITIES
═══════════════════════════════════════════════════════════════ */
.shrimd-text-white   { color: var(--shrimd-white) !important; }
.shrimd-text-blue    { color: var(--shrimd-blue) !important; }
.shrimd-text-accent  { color: var(--shrimd-accent) !important; }
.shrimd-text-muted   { color: var(--shrimd-text-muted) !important; }
.shrimd-text-dark    { color: var(--shrimd-blue-dark) !important; }

/* White text paragraphs (hero / dark sections) */
.shrimd-text-white p,
.elementor-section.shrimd-bg-gradient p,
.elementor-section.shrimd-bg-dark p,
.elementor-section.shrimd-bg-blue p {
  color: rgba(255, 255, 255, 0.75) !important;
}


/* ═══════════════════════════════════════════════════════════════
   16. RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --shrimd-section-pad: 72px;
  }

  .shrimd-how-panel {
    padding: 32px;
  }

  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}


/* ═══════════════════════════════════════════════════════════════
   17. RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --shrimd-section-pad: 56px;
  }

  /* Astra mobile header */
  #masthead,
  .site-header {
    padding: 0 24px !important;
  }

  /* Typography scale down */
  h1 { font-size: clamp(36px, 9vw, 52px); }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  h3 { font-size: 24px; }

  /* Trust bar stacks */
  .shrimd-trust-bar {
    padding: 16px 24px;
    gap: 12px;
  }
  .shrimd-trust-item {
    padding: 6px 16px;
    font-size: 12px;
  }
  .shrimd-trust-item + .shrimd-trust-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
    justify-content: center;
  }

  /* Cards stack to 1 column */
  .shrimd-how-panel {
    padding: 28px 20px;
    margin-top: 40px;
  }

  /* Pricing table horizontal scroll */
  .shrimd-pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Buttons full width on mobile */
  .elementor-button.elementor-button-info,
  .elementor-button.shrimd-btn-primary {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer CTA padding */
  .site-footer,
  #colophon {
    padding: 20px 24px !important;
    text-align: center;
    flex-direction: column;
  }
}


/* ═══════════════════════════════════════════════════════════════
   18. ANIMATIONS
   Fade-up on scroll (add .shrimd-animate to any Elementor widget)
═══════════════════════════════════════════════════════════════ */
.shrimd-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.shrimd-animate.shrimd-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.shrimd-delay-1 { transition-delay: 0.1s; }
.shrimd-delay-2 { transition-delay: 0.2s; }
.shrimd-delay-3 { transition-delay: 0.3s; }
.shrimd-delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════════════════
   19. ASTRA CUSTOMIZER VARIABLE OVERRIDES
   Overrides Astra's own CSS variables to stay in sync
═══════════════════════════════════════════════════════════════ */
:root {
  /* Astra theme color variables → map to ShriMD palette */
  --ast-global-color-0: var(--shrimd-blue);
  --ast-global-color-1: var(--shrimd-blue-dark);
  --ast-global-color-2: var(--shrimd-accent);
  --ast-global-color-3: var(--shrimd-text);
  --ast-global-color-4: var(--shrimd-text-muted);
  --ast-global-color-5: var(--shrimd-off-white);

  /* Astra typography variables */
  --ast-body-font-family:    'DM Sans', sans-serif;
  --ast-heading-font-family: 'Playfair Display', serif;
  --ast-body-font-size:      16px;
  --ast-body-font-weight:    400;
  --ast-body-line-height:    1.65;
}
