/*
Theme Name:  Expat Global Medical
Theme URI:   http://viddl.online/
Author:      Hassan Baig
Author URI:  http://viddl.online/
Description: Premium international insurance theme with Tricolor design (White, Sky Blue, Red). Features full customizer support, responsive layout, and polished UI.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expatglobal
Tags:        custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, translation-ready, blog, business
*/

/* ═══════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — Tricolor Scene (White + Sky Blue + Red)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --eg-bg:          #ffffff;
  --eg-bg2:         #f2faff;
  --eg-bg3:         #e0f4fc;
  --eg-navy:        #022d52;
  --eg-navy-mid:    #085a9e;
  --eg-navy-light:  #daeeff;
  --eg-navy-pale:   #eef8ff;
  --eg-sky:         #0ea5e9;
  --eg-sky-light:   #bae6fd;
  --eg-sky-xlight:  #e0f4fc;
  --eg-red:         #dc2626;
  --eg-red-light:   #fee2e2;
  --eg-red-mid:     #b91c1c;
  --eg-white:       #ffffff;
  --eg-text:        #011a30;
  --eg-muted:       #3d647e;
  --eg-border:      #bbd8ee;
  --eg-card:        #ffffff;
  --eg-hero-bg:     linear-gradient(135deg, #022d52 0%, #085a9e 55%, #1272c8 100%);
  --eg-trust-bg:    #dc2626;
  --eg-dark-bg:     #022d52;
  --eg-footer-bg:   #010e1a;
  --eg-radius:      14px;
  --eg-radius-sm:   8px;
  --eg-shadow:      0 4px 24px rgba(2, 45, 82, 0.10);
  --eg-shadow-lg:   0 16px 48px rgba(2, 45, 82, 0.16);
  --eg-transition:  all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--eg-bg);
  color: var(--eg-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--eg-sky);
  text-decoration: none;
  transition: var(--eg-transition);
}

a:hover {
  color: var(--eg-red);
}

ul, ol {
  padding-left: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--eg-navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 900; }
h2 { font-size: clamp(26px, 3vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: clamp(17px, 1.8vw, 22px); }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin-bottom: 1.25rem; color: var(--eg-muted); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--eg-navy); }
em { font-style: italic; color: var(--eg-red); }

blockquote {
  border-left: 4px solid var(--eg-sky);
  padding: 1.25rem 1.75rem;
  background: var(--eg-bg2);
  border-radius: 0 var(--eg-radius-sm) var(--eg-radius-sm) 0;
  margin: 2rem 0;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--eg-navy);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--eg-muted);
}

code, pre {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875rem;
}

code {
  background: var(--eg-bg2);
  color: var(--eg-red);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--eg-border);
}

pre {
  background: var(--eg-navy);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--eg-radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--eg-sky), var(--eg-red));
  border-radius: 2px;
  margin: 2.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ═══════════════════════════════════════════════════════════════════ */
.eg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eg-container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eg-container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.eg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--eg-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--eg-transition);
  text-decoration: none;
}

.eg-btn--primary {
  background: var(--eg-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.eg-btn--primary:hover {
  background: var(--eg-red-mid);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.eg-btn--secondary {
  background: var(--eg-navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(2, 45, 82, 0.2);
}

.eg-btn--secondary:hover {
  background: var(--eg-navy-mid);
  color: #fff;
  transform: translateY(-2px);
}

.eg-btn--outline {
  background: transparent;
  color: var(--eg-navy);
  border: 2px solid var(--eg-navy);
}

.eg-btn--outline:hover {
  background: var(--eg-navy);
  color: #fff;
}

.eg-btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.eg-btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS (Global)
   ═══════════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--eg-border);
  border-radius: var(--eg-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--eg-text);
  background: var(--eg-bg2);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--eg-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eg-navy);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.eg-section {
  padding: 96px 0;
}

.eg-section--sm {
  padding: 64px 0;
}

.eg-section--dark {
  background: var(--eg-dark-bg);
}

.eg-section--bg2 {
  background: var(--eg-bg2);
}

.eg-section--bg3 {
  background: var(--eg-bg3);
}

.eg-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.eg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eg-sky);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eg-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--eg-red);
  border-radius: 2px;
}

.eg-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 900;
  color: var(--eg-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eg-section-title em {
  font-style: italic;
  color: var(--eg-red);
}

.eg-section--dark .eg-section-title {
  color: #fff;
}

.eg-section--dark .eg-eyebrow {
  color: var(--eg-sky);
}

.eg-section-subtitle {
  color: var(--eg-muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 520px;
  margin: 12px auto 0;
}

.eg-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--eg-sky), var(--eg-red));
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */
.eg-card {
  background: var(--eg-card);
  border: 1.5px solid var(--eg-border);
  border-radius: var(--eg-radius);
  padding: 32px 28px;
  transition: var(--eg-transition);
  position: relative;
  overflow: hidden;
}

.eg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--eg-shadow-lg);
  border-color: var(--eg-sky);
}

/* ═══════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════ */
.eg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eg-badge--sky {
  background: var(--eg-sky-light);
  color: var(--eg-navy-mid);
}

.eg-badge--red {
  background: var(--eg-red-light);
  color: var(--eg-red-mid);
}

.eg-badge--navy {
  background: var(--eg-navy-light);
  color: var(--eg-navy);
}

/* ═══════════════════════════════════════════════════════════════════
   SKIP LINK (Accessibility)
   ═══════════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  background: var(--eg-red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   SCREEN READER TEXT
   ═══════════════════════════════════════════════════════════════════ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ═══════════════════════════════════════════════════════════════════
   WORDPRESS ALIGNMENT CLASSES
   ═══════════════════════════════════════════════════════════════════ */
.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { width: calc(100% + 4rem); margin-left: -2rem; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE HELPERS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .eg-container,
  .eg-container--narrow,
  .eg-container--wide {
    padding: 0 1.25rem;
  }

  .eg-section {
    padding: 64px 0;
  }

  .eg-section--sm {
    padding: 40px 0;
  }
}
