/* ============================================
   DoctorGREPrep.com — Complete Design System 2026
   Color: Emerald + Slate + Coral
   Fonts: Poppins + Inter
   ============================================ */

:root {
  --dm-emerald: #0d6b58;
  --dm-emerald-dark: #094d3f;
  --dm-emerald-light: #e6f5f0;
  --dm-slate: #1e293b;
  --dm-slate-light: #334155;
  --dm-coral: #a14500;
  --dm-coral-light: #fff7ed;
  --dm-white: #ffffff;
  --dm-offwhite: #f8fafb;
  --dm-gray-100: #f1f5f9;
  --dm-gray-200: #e2e8f0;
  --dm-gray-300: #cbd5e1;
  --dm-gray-400: #94a3b8;
  --dm-gray-500: #586677;
  --dm-gray-600: #475569;
  --dm-gray-700: #334155;
  --dm-text: #1e293b;
  --dm-text-light: #475569;
  --dm-text-muted: #586677;
  --dm-success: #10b981;
  --dm-error: #ef4444;
  --dm-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --dm-shadow: 0 4px 16px rgba(0,0,0,.1);
  --dm-shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --dm-shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --dm-radius: 12px;
  --dm-radius-sm: 8px;
  --dm-radius-lg: 20px;
  --dm-transition: .25s ease;
  --dm-font-heading: 'Poppins', sans-serif;
  --dm-font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0d6b58; text-decoration: none; transition: color .25s ease; }
a:hover, a:focus { color: #a14500 !important; text-decoration: none; }
p a, li a, .dm-accordion-body a, .dm-breadcrumbs a, .dm-info-card a { text-decoration: underline !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: #1e293b;
  line-height: 1.2 !important;
  margin: 0 0 .5em !important;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem) !important; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem) !important; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem) !important; }
h4 { font-size: 1.15rem !important; }

p { margin: 0 0 1rem; color: #475569; line-height: 1.75; }

.container { max-width: 1200px !important; margin: 0 auto !important; padding: 0 20px !important; width: 100% !important; }

.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--dm-gray-200);
  transition: box-shadow var(--dm-transition);
}
.dm-header.scrolled { box-shadow: var(--dm-shadow); }

.dm-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.dm-logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.dm-logo img { height: 52px; width: auto; }

.dm-header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.dm-header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dm-slate); font-family: var(--dm-font-heading);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: color var(--dm-transition); white-space: nowrap;
}
.dm-header-phone i { color: var(--dm-emerald); font-size: 1.1rem; }
.dm-header-phone:hover { color: var(--dm-emerald) !important; }

.dm-header-book {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dm-emerald); color: var(--dm-white);
  font-family: var(--dm-font-heading); font-weight: 700; font-size: .88rem;
  padding: .65rem 1.6rem; border-radius: 40px; text-decoration: none;
  transition: transform var(--dm-transition), background var(--dm-transition), box-shadow var(--dm-transition);
  white-space: nowrap; box-shadow: 0 2px 10px rgba(13,107,88,.2);
}
.dm-header-book:hover {
  background: var(--dm-emerald-dark); color: var(--dm-white) !important;
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,107,88,.35);
}
.dm-header-book i { font-size: .85rem; }

.dm-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; font-size: 1.5rem; color: var(--dm-slate); margin-left: auto;
}

/* Nav bar */
.dm-nav-bar {
  background: var(--dm-white);
  border-top: 1px solid var(--dm-gray-200);
  min-height: 48px;
}
.dm-nav-bar-inner {
  display: flex; align-items: center; justify-content: center;
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
}

.dm-nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dm-nav > li { position: relative; }
.dm-nav > li > a {
  font-family: var(--dm-font-heading); font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; color: var(--dm-slate);
  padding: 14px 18px; display: block; white-space: nowrap;
  transition: background var(--dm-transition), color var(--dm-transition);
}
.dm-nav > li > a:hover,
.dm-nav > li.active > a {
  background: var(--dm-emerald-light); color: var(--dm-emerald);
}

/* Dropdowns */
.dm-nav > li > ul {
  position: absolute; top: 100%; left: 0; background: var(--dm-white);
  border-radius: var(--dm-radius); box-shadow: var(--dm-shadow-lg);
  min-width: 240px; padding: 8px 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 100; border: 1px solid var(--dm-gray-200);
}
.dm-nav > li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.dm-nav > li > ul > li > a {
  display: block; padding: 10px 20px; font-size: .88rem;
  color: var(--dm-text-light);
  transition: background var(--dm-transition), color var(--dm-transition);
}
.dm-nav > li > ul > li > a:hover {
  background: var(--dm-emerald-light); color: var(--dm-emerald);
}

/* ============================================
   MOBILE BAR
   ============================================ */
.dm-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1001; background: var(--dm-white);
  border-top: 1px solid var(--dm-gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  padding: 10px 16px; gap: 10px;
}
.dm-mobile-bar a {
  flex: 1; text-align: center; padding: 14px 0; border-radius: 50px;
  font-family: var(--dm-font-heading); font-weight: 700; font-size: .9rem;
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: background var(--dm-transition), color var(--dm-transition);
}
.dm-mob-phone { background: var(--dm-emerald); color: var(--dm-white); }
.dm-mob-phone:hover { color: var(--dm-white) !important; background: var(--dm-emerald-dark); }
.dm-mob-cta { background: var(--dm-coral); color: var(--dm-white); }
.dm-mob-cta:hover { color: var(--dm-white) !important; background: #7a3500; }

/* ============================================
   PAGE HERO / BREADCRUMBS
   ============================================ */
.dm-breadcrumbs { background: var(--dm-gray-100); padding: 14px 0; font-size: .85rem; }
.dm-breadcrumbs a { color: var(--dm-emerald); text-decoration: underline !important; }
.dm-breadcrumbs span { color: var(--dm-text-muted); margin: 0 8px; }

.dm-page-hero {
  background: linear-gradient(135deg, var(--dm-slate) 0%, var(--dm-emerald-dark) 100%);
  padding: 50px 0 45px; text-align: center; position: relative; overflow: hidden;
}
.dm-page-hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.dm-page-hero h1 { color: #ffffff !important; position: relative; z-index: 1; margin-bottom: .3em !important; }
.dm-page-hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ============================================
   SECTIONS / LAYOUT
   ============================================ */
.dm-section { padding: 60px 0; }
.dm-section-alt { padding: 60px 0; background: var(--dm-gray-100); }
.dm-section-dark { padding: 60px 0; background: var(--dm-slate); color: var(--dm-white); }
.dm-section-emerald { padding: 60px 0; background: var(--dm-emerald); color: var(--dm-white); }

.dm-section-header { text-align: center; max-width: 800px; margin: 0 auto 40px; }

.dm-label {
  display: inline-block; background: var(--dm-emerald-light); color: var(--dm-emerald);
  font-family: var(--dm-font-heading); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 12px;
}

/* Grids */
.dm-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.dm-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.dm-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media(max-width:991px) { .dm-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:767px) { .dm-grid-2, .dm-grid-3, .dm-grid-4 { grid-template-columns: 1fr; } }

/* Feature blocks */
.dm-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dm-feature-img { border-radius: var(--dm-radius-lg); overflow: hidden; box-shadow: var(--dm-shadow-lg); }
.dm-feature-img img { width: 100%; display: block; }
.dm-feature-content p { margin-bottom: 1.5rem; }
.dm-feature.reverse .dm-feature-img { order: 2; }
.dm-feature.reverse .dm-feature-content { order: 1; }
@media(max-width:767px) {
  .dm-feature { grid-template-columns: 1fr; gap: 30px; }
  .dm-feature.reverse .dm-feature-img { order: 0; }
  .dm-feature.reverse .dm-feature-content { order: 0; }
}

/* ============================================
   CARDS
   ============================================ */
.dm-card {
  background: var(--dm-white); border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow-sm); padding: 30px;
  transition: transform var(--dm-transition), box-shadow var(--dm-transition);
  border: 1px solid var(--dm-gray-200);
}
.dm-card:hover { transform: translateY(-4px); box-shadow: var(--dm-shadow); }

.dm-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--dm-white);
  border-radius: var(--dm-radius); border: 1px solid var(--dm-gray-200);
}
.dm-info-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  background: var(--dm-emerald-light); color: var(--dm-emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ============================================
   REVIEWS
   ============================================ */
.dm-review {
  background: var(--dm-white); border-radius: var(--dm-radius);
  padding: 28px; box-shadow: var(--dm-shadow-sm);
  border: 1px solid var(--dm-gray-200); position: relative;
}
.dm-review::before {
  content: '\201C'; position: absolute; top: 16px; left: 20px;
  font-size: 3rem; color: var(--dm-emerald-light);
  font-family: Georgia, serif; line-height: 1;
}
.dm-review p { font-style: italic; margin-bottom: 1rem; padding-top: 20px; }
.dm-review-author { font-weight: 700; color: var(--dm-emerald); font-size: .9rem; }
.dm-review-stars { color: #f59e0b; font-size: .9rem; margin-bottom: 8px; }

/* ============================================
   BUTTONS
   ============================================ */
.dm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--dm-font-heading); font-weight: 700;
  border-radius: 50px; text-decoration: none; cursor: pointer;
  transition: transform var(--dm-transition), background var(--dm-transition), box-shadow var(--dm-transition);
  border: none; font-size: 1rem; padding: .85rem 2rem;
}
.dm-btn-primary {
  background: var(--dm-coral); color: var(--dm-white);
  box-shadow: 0 2px 10px rgba(161,69,0,.2);
}
.dm-btn-primary:hover {
  background: #7a3500; color: var(--dm-white) !important;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(161,69,0,.35);
}
.dm-btn-secondary {
  background: transparent; color: var(--dm-emerald);
  border: 2px solid var(--dm-emerald);
}
.dm-btn-secondary:hover {
  background: var(--dm-emerald); color: var(--dm-white) !important;
}
.dm-btn-white {
  background: var(--dm-white); color: var(--dm-emerald);
  box-shadow: var(--dm-shadow-sm);
}
.dm-btn-white:hover {
  background: var(--dm-gray-100); color: var(--dm-emerald) !important;
  transform: translateY(-2px);
}
.dm-btn-lg { font-size: 1.1rem; padding: 1rem 2.5rem; }
.dm-btn-sm { font-size: .85rem; padding: .6rem 1.4rem; }

/* ============================================
   FORMS
   ============================================ */
.dm-form-card {
  background: var(--dm-white); border-radius: var(--dm-radius-lg);
  box-shadow: var(--dm-shadow-lg); overflow: hidden;
  max-width: 600px; margin: 0 auto;
}
.dm-form-header {
  background: linear-gradient(135deg, var(--dm-emerald) 0%, var(--dm-emerald-dark) 100%);
  padding: 28px 32px; color: var(--dm-white);
}
.dm-form-header h2 { color: var(--dm-white) !important; margin-bottom: .2em !important; font-size: 1.4rem !important; }
.dm-form-header p { color: rgba(255,255,255,.85); margin: 0; font-size: .95rem; }
.dm-form-body { padding: 32px; }
.dm-form-body label {
  display: block; font-family: var(--dm-font-heading); font-weight: 600;
  font-size: .9rem; color: var(--dm-slate); margin-bottom: 6px;
}
.dm-req { color: var(--dm-error); }
.dm-opt { color: var(--dm-gray-400); font-weight: 400; font-size: .85rem; }
.dm-input, .dm-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--dm-gray-300);
  border-radius: var(--dm-radius-sm); font-family: var(--dm-font-body);
  font-size: 1rem; color: var(--dm-text);
  transition: border-color var(--dm-transition), box-shadow var(--dm-transition);
}
.dm-input:focus, .dm-textarea:focus {
  outline: none; border-color: var(--dm-emerald);
  box-shadow: 0 0 0 3px rgba(13,107,88,.12);
}
.dm-textarea { resize: vertical; min-height: 120px; }
.dm-form-result {
  padding: 16px 20px; border-radius: var(--dm-radius-sm);
  font-size: .95rem; display: none; margin-top: 16px;
}
.dm-form-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dm-form-err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.hp-wrap { position: absolute; left: -9999px; }

/* ============================================
   TRUST GRID / CREDENTIALS
   ============================================ */
.dm-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  text-align: center; padding: 30px 0;
}
.dm-trust-number {
  font-family: var(--dm-font-heading); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--dm-emerald); line-height: 1.1;
}
.dm-trust-label { font-size: .9rem; color: var(--dm-text-muted); margin-top: 6px; }
@media(max-width:767px) { .dm-trust-grid { grid-template-columns: repeat(2, 1fr); } }

.dm-cred-strip {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 20px 0;
}
.dm-cred-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--dm-font-heading); font-weight: 600;
  font-size: .95rem; color: var(--dm-slate);
}
.dm-cred-item i { color: var(--dm-emerald); font-size: 1.2rem; }

/* ============================================
   CTA BANNER
   ============================================ */
.dm-cta-banner {
  background: linear-gradient(135deg, var(--dm-slate) 0%, var(--dm-emerald-dark) 100%);
  padding: 60px 0; text-align: center;
}
.dm-cta-banner h2 { color: var(--dm-white) !important; }
.dm-cta-banner p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.dm-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   ACCORDION (FAQ)
   ============================================ */
.dm-accordion { max-width: 800px; margin: 0 auto; }
.dm-accordion-item {
  border: 1px solid var(--dm-gray-200); border-radius: var(--dm-radius);
  margin-bottom: 12px; overflow: hidden;
}
.dm-accordion-btn {
  width: 100%; background: var(--dm-white); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; font-family: var(--dm-font-heading);
  font-size: 1.05rem; font-weight: 600; color: var(--dm-slate);
  transition: background var(--dm-transition);
  text-align: left;
}
.dm-accordion-btn:hover { background: var(--dm-gray-100); }
.dm-accordion-btn .dm-acc-icon {
  transition: transform .3s ease; font-size: .8rem; color: var(--dm-emerald);
}
.dm-accordion-btn.active .dm-acc-icon { transform: rotate(180deg); }
.dm-accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px;
}
.dm-accordion-body.open { max-height: 600px; padding: 0 24px 20px; }
.dm-accordion-body p { font-size: .95rem; }

/* ============================================
   BACK TO TOP
   ============================================ */
.dm-back-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; background: var(--dm-emerald);
  color: var(--dm-white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--dm-shadow);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dm-transition), visibility var(--dm-transition),
              transform var(--dm-transition), background var(--dm-transition);
  cursor: pointer; border: none; z-index: 900;
}
.dm-back-top.visible { opacity: 1; visibility: visible; }
.dm-back-top:hover { background: var(--dm-emerald-dark); transform: translateY(-3px); }

/* ============================================
   FOOTER
   ============================================ */
.dm-footer { background: var(--dm-slate); color: rgba(255,255,255,.8); padding: 60px 0 30px; }
.dm-footer h3 { color: var(--dm-white) !important; }
.dm-footer a { color: rgba(255,255,255,.7); }
.dm-footer a:hover { color: var(--dm-white) !important; }
.dm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.dm-footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.dm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px;
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; font-size: .85rem; flex-wrap: wrap; gap: 12px;
}
.dm-footer-partners { display: flex; gap: 16px; flex-wrap: wrap; }
.dm-footer-partners a { font-size: .85rem; }
@media(max-width:767px) {
  .dm-footer-grid { grid-template-columns: 1fr; }
  .dm-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media(max-width:991px) {
  .dm-header-top { padding: 10px 16px; }
  .dm-mobile-toggle { display: block; }
  .dm-header-phone span { display: none; }
  .dm-header-phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--dm-emerald-light); }
  .dm-header-phone i { font-size: 1.1rem; color: var(--dm-emerald); }
  .dm-header-book span { display: none; }
  .dm-header-book { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .dm-nav-bar { display: block; border-top: none; position: relative; }
  .dm-nav-bar-inner { display: block; }
  .dm-nav-wrap { display: none; background: var(--dm-white); border-bottom: 2px solid var(--dm-emerald); box-shadow: var(--dm-shadow-lg); padding: 16px; z-index: 999; }
  .dm-nav-wrap.open { display: block; }
  .dm-nav { flex-direction: column; gap: 2px; }
  .dm-nav > li > a { padding: 12px 16px; border-radius: var(--dm-radius-sm); }
  .dm-nav > li > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; background: var(--dm-gray-100); border-radius: var(--dm-radius-sm); margin-top: 2px; }
  .dm-nav > li.dropdown-open > ul { display: block; }
}

@media(max-width:767px) {
  .dm-mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .dm-section { padding: 40px 0; }
  .dm-section-alt { padding: 40px 0; }
  .dm-back-top { bottom: 90px; }
  .dm-trust-grid { gap: 20px; }
}

/* ============================================
   TABLE STYLES (for GRE scores, etc.)
   ============================================ */
.dm-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .95rem;
}
.dm-table th {
  background: var(--dm-emerald); color: var(--dm-white);
  padding: 12px 16px; text-align: left;
  font-family: var(--dm-font-heading); font-weight: 600;
}
.dm-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--dm-gray-200);
  color: var(--dm-text-light);
}
.dm-table tr:nth-child(even) td { background: var(--dm-gray-100); }
.dm-table tr:hover td { background: var(--dm-emerald-light); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.dm-mt-0 { margin-top: 0 !important; }
.dm-mb-0 { margin-bottom: 0 !important; }
.dm-mb-1 { margin-bottom: 1rem !important; }
.dm-mb-2 { margin-bottom: 2rem !important; }
.dm-pt-0 { padding-top: 0 !important; }
