/*
Theme Name: Medical Consulting - Airo Edition
Description: Custom WordPress theme converted from Airo React design.
Version: 3.4
Author: Gemini
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300&display=swap');

:root {
  --navy: #0a2342;
  --teal: #00788a;
  --teal-light: #e6f5f7;
  --teal-mid: #b3dde3;
  --text-dark: #1a2e3b;
  --text-grey: #5a7384;
  --bg-grey: #f7f9fb;
  --border: #d0dde5;
  --font-sans: 'DM Sans', sans-serif;
  --font-heading: 'Fraunces', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; transition: font-size 0.2s; }
body { font-family: var(--font-sans); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-animate-1 { animation: fadeUp 0.5s ease both; }
.hero-animate-2 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-animate-3 { animation: fadeUp 0.6s 0.2s ease both; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 5%; }
.site-brand-link { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.69rem; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; }
.site-logo-svg { display: inline-block; vertical-align: middle; margin-right: 8px; flex-shrink: 0; width: 55px; height: 55px; transition: all 0.2s; }
.header-right-desktop { display: flex; align-items: center; gap: 2rem; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.desktop-nav a { color: var(--text-grey); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--teal); }
.btn-primary { background: var(--teal); color: #fff !important; padding: 0.55rem 1.4rem; border-radius: 4px; transition: background 0.2s; border: none; cursor: pointer; text-align: center; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.9rem; font-weight: 500;}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.text-sizer { display: flex; align-items: center; gap: 0.4rem; background: var(--teal-light); border: 1.5px solid var(--teal); border-radius: 30px; padding: 0.3rem 0.8rem; margin-left: 1rem; }
.text-sizer button { background: var(--teal); color: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; font-weight: 700; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; line-height: 1;}
.text-sizer button:hover { background: var(--navy); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }
.mobile-menu { display: none; padding: 1rem 5%; border-top: 1px solid var(--border); position: absolute; top: 108px; left: 0; width: 100%; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 0.6rem 0; color: var(--text-grey); border-bottom: 1px solid #f0f4f7; font-weight: 500; }

/* Hero */
.hero-block { cursor: grab; transition: opacity 0.2s; user-select: none; width: 100%; }
.hero-heading { font-family: var(--font-heading); font-size: clamp(2.4rem, 5.5vw, 5.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-align: center; }
.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }

/* Trust Bar */
.trust-bar { background: var(--teal); padding: 1rem 5%; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; color: #fff; font-weight: 500; }

/* Sections */
.section { padding: 90px 5%; }
.section-label { font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 0.8rem; }
.section h2 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
.section p.lead { font-size: 1.2rem; color: var(--text-grey); max-width: 620px; line-height: 1.8; margin-bottom: 3rem; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--bg-grey); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--teal); border-radius: 4px 0 0 4px; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--navy); margin: 0.7rem 0; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 2px; margin-bottom: 0.7rem; text-transform: uppercase; }

/* Pillars */
.pillars-bg { background: var(--navy); color: #fff; }
.pillars-bg h2 { color: #fff; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
.pillar { padding: 2.5rem 2rem; background: var(--navy); transition: background 0.2s; }
.pillar:hover { background: rgba(0,120,138,0.12); }
.pillar .num { font-family: var(--font-heading); font-size: 3rem; font-weight: 600; color: rgba(0,120,138,0.3); line-height: 1; margin-bottom: 1rem; }

/* Boxes / Highlights */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.highlight-box { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 6px; padding: 2rem; transition: transform 0.2s, box-shadow 0.2s; }
.highlight-box:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }

/* Process Pathway */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 1rem; }
.process-line { position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--teal-mid); z-index: 0; }
.step { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal-mid); }
.step h4 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.4rem;}

/* Form & Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 2rem;}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.35rem; display: block; }
.form-input { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 4px; width: 100%; font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-dark); background: #fff; transition: border-color 0.2s; box-sizing: border-box; margin-bottom: 0; outline: none;}
.form-input:focus { border-color: var(--teal); }
.drop-zone { border: 2px dashed #b3dde3; border-radius: 6px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; background: #fafcfd; transition: all 0.2s; box-sizing: border-box; }
.drop-zone.dragover { border-color: var(--teal); background: #e6f5f7; }
.drop-zone.has-file { border-color: var(--teal); background: #f0fafb; }

/* Footer */
.site-footer { background: #061525; color: rgba(255,255,255,0.5); }
.footer-grid { padding: 3rem 5% 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; }
.footer-grid h3 { font-size: 0.75rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 600;}
.footer-grid ul { list-style: none; padding: 0;}
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid a { transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 5%; display: flex; justify-content: space-between; font-size: 0.8rem; }

/* Page Template */
.page-header { background: var(--bg-grey); padding: 60px 5%; border-bottom: 1px solid var(--border); }
.page-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 5%; font-size: 1.05rem; color: var(--text-dark); line-height: 1.8; }
.page-content h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.page-content p { margin-bottom: 1.5rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content .callout-box { background: var(--teal-light); border: 1px solid var(--teal-mid); border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.page-content address { font-style: normal; background: var(--teal-light); border: 1px solid var(--teal-mid); border-radius: 6px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }

/* Tablet (iPad) Overrides */
@media (max-width: 1100px) {
  .header-badge { display: none !important; }
}

@media (max-width: 900px) {
  .header-right-desktop { display: none !important; }
  .mobile-toggle { display: block; }
  .site-header { height: 70px !important; }
  .mobile-menu { top: 70px; }
  .hero-section { padding: 70px 5% 60px !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
  .process-line { display: none; }
}

/* Mobile Phone Overrides */
@media (max-width: 600px) {
  .site-brand-link { font-size: 1.3rem; }
  .site-logo-svg { width: 40px; height: 40px; }
  .hero-heading { font-size: 2.3rem !important; }
  .hero-stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 5%; }
  .contact-grid > div { padding: 0 !important; border: none !important; }
}