/* ========================================
   Doctors to Dubai - Main Stylesheet
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0c5c8f;
  --color-primary-dark: #094a73;
  --color-primary-light: #e8f4fb;
  --color-accent: #d4a843;
  --color-accent-light: #faf3e0;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fb;
  --color-border: #dce4ec;
  --color-success: #27ae60;
  --color-warning: #e67e22;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --max-width: 960px;
  --sidebar-width: 240px;
  --header-height: 64px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-logo svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Inline CTA Box
   ======================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e6f5f1 100%);
  border: 1px solid #b0d4e4;
  border-left: 6px solid var(--color-primary);
  padding: 1.35rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 6px 16px rgba(12, 92, 143, 0.08);
}

.cta-banner p {
  margin-bottom: 0.5rem;
}

.cta-banner .cta-banner-button {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #e8721c 0%, #d4621a 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(232, 114, 28, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-banner .cta-banner-button:hover,
.cta-banner .cta-banner-button:focus {
  background: linear-gradient(135deg, #cf5f10 0%, #b85514 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 114, 28, 0.38);
}

/* ========================================
   Breadcrumbs
   ======================================== */

.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text-light);
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--color-text-light);
  margin-right: 0.1rem;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* ========================================
   Page Layout
   ======================================== */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  gap: 2.5rem;
}

.content-main {
  flex: 1;
  min-width: 0;
  max-width: var(--max-width);
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.sidebar-nav h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.15rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
  border-left-color: var(--color-primary);
}

.sidebar-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

/* ========================================
   Typography
   ======================================== */

.content-main h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.content-main h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.content-main h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.content-main p {
  margin-bottom: 1rem;
}

.content-main ul, .content-main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-main li {
  margin-bottom: 0.35rem;
}

.content-main strong {
  color: var(--color-text);
}

/* ========================================
   Cards & Boxes
   ======================================== */

.summary-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}

.summary-box h2,
.summary-box h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
  font-weight: 700;
}

.summary-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.checklist-box {
  background: var(--color-accent-light);
  border: 1px solid #e8dbb8;
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}

.checklist-box h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #8a6d1b;
  font-family: var(--font-body);
  font-weight: 700;
}

.checklist-box ul {
  list-style: none;
  padding-left: 0;
}

.checklist-box li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.checklist-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.info-box {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.warning-box {
  background: #fef9e7;
  border-left: 4px solid var(--color-warning);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.93rem;
}

/* ========================================
   Related Guides
   ======================================== */

.related-guides {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
}

.related-guides h2 {
  font-size: 1.2rem;
  margin-top: 0;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}

.related-guides ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.related-guides a {
  display: block;
  padding: 0.65rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.related-guides a:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* ========================================
   Homepage Specific
   ======================================== */

.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a7ab5 100%);
  color: #fff;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: #c19a3a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.section-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 244, 251, 0.45) 0%, rgba(255, 255, 255, 1) 46%),
    #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 6px 18px rgba(12, 92, 143, 0.05);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  opacity: 0.85;
}

.section-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  pointer-events: none;
}

.section-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.section-card:hover {
  border-color: rgba(12, 92, 143, 0.22);
  box-shadow: 0 10px 22px rgba(12, 92, 143, 0.08);
  transform: translateY(-2px);
}

.section-card-link:hover {
  text-decoration: none;
}

.section-card-link:focus-visible {
  outline: 2px solid rgba(12, 92, 143, 0.24);
  outline-offset: 3px;
  border-radius: 14px;
}

.section-card h2 {
  font-family: var(--font-heading);
  font-size: 1.26rem;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-primary-dark);
}

.section-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.section-card a.card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #1c2d3a;
  color: rgba(255,255,255,0.8);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom p {
  margin-bottom: 0.3rem;
}

.disclaimer {
  font-size: 0.78rem;
  max-width: 700px;
  margin: 0.5rem auto 0;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
}

.last-updated {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Table Styles
   ======================================== */

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
}

.content-main th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
}

.content-main td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.content-main tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

/* ========================================
   Forms
   ======================================== */

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  margin-bottom: 1rem;
}

.phone-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(12, 92, 143, 0.2);
  outline-offset: 0;
}

.form-submit {
  display: inline-block;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8721c 0%, #d4621a 100%);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(232, 114, 28, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-submit:hover,
.form-submit:focus {
  background: linear-gradient(135deg, #cf5f10 0%, #b85514 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(232, 114, 28, 0.32);
}

.form-submit:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .phone-fields {
    grid-template-columns: minmax(170px, 220px) 1fr;
  }
}

/* ========================================
   404 Page
   ======================================== */

.error-page {
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .page-wrapper {
    padding: 1.5rem 1rem;
  }

  .related-guides ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 4px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-main h1 {
    font-size: 1.7rem;
  }

  .content-main h2 {
    font-size: 1.3rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .content-main table {
    font-size: 0.85rem;
  }

  .content-main th, .content-main td {
    padding: 0.45rem 0.6rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .site-header, .sidebar, .site-footer, .breadcrumbs, .nav-toggle {
    display: none;
  }

  .page-wrapper {
    max-width: 100%;
    padding: 0;
  }

  .content-main {
    max-width: 100%;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
