/*
Theme Name:  Doctorna
Theme URI:   https://doctorna.com
Description: A modern, professional WordPress theme for Doctorna – Dubai's leading Healthcare CRM. Features a full landing page, Gutenberg block support, responsive layout, and a complete template hierarchy.
Version:     1.0.0
Author:      Doctorna Team
Author URI:  https://doctorna.com
Text Domain: doctorna
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:        healthcare, crm, landing-page, responsive, full-width-template, block-styles, editor-style
*/

/* ─── Base Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #191919;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:      #2899E5;
  --primary-dark: #1a7cc7;
  --accent:       #334155;
  --dark-navy:    #1e3a5f;
  --text:         #191919;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-light:     #f8fafc;
  --bg-hero:      #f0f8ff;
  --border:       #e5e7eb;
  --radius:       0.5rem;
  --radius-lg:    1rem;
  --radius-full:  9999px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.12);
  --transition:   all .2s ease;
  --container:    1280px;
  --gap:          2rem;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }
.text-center { text-align: center; }
.section-header { max-width: 48rem; margin-inline: auto; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(40,153,229,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: rgba(40,153,229,.06); }
.btn-white {
  background: #fff;
  color: var(--dark-navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: #f3f4f6; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card__body { padding: 2rem; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .5rem;
}
.form-label span { color: #ef4444; }
.form-control {
  width: 100%;
  height: 3rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(40,153,229,.35);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,153,229,.15);
}
textarea.form-control {
  height: auto;
  min-height: 7.5rem;
  resize: vertical;
}

/* ─── WordPress Alignment Blocks ─────────────────────────── */
.alignwide  { max-width: 110%; margin-inline: -5%; }
.alignfull  { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-block-image { margin-bottom: 1.5rem; }
.wp-block-image img { border-radius: var(--radius); }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.entry-content ul, .entry-content ol { padding-left: 1.5rem; list-style: revert; }

/* ─── Gutenberg Block Styles ─────────────────────────────── */
.wp-block-button__link {
  border-radius: var(--radius-full) !important;
  font-weight: 600;
}
.is-style-fill .wp-block-button__link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.is-style-outline .wp-block-button__link {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ─── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: .5rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ─── Screen-reader text ─────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
