/* =====================================================
   EnglishTeacherHub — Main Stylesheet
   Brand: Navy #0A1931 · Gold #C9A24B
   Type: Cormorant Garamond (display) · DM Sans (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --navy:        #0A1931;
  --navy-mid:    #112347;
  --navy-dark:   #070F1E;
  --gold:        #C9A24B;
  --gold-light:  #E0BA74;
  --gold-pale:   #F5EDD9;
  --cream:       #F7F5F1;
  --cream-mid:   #F0EDE8;
  --white:       #FFFFFF;
  --text:        #1C1C1C;
  --text-mid:    #444444;
  --text-muted:  #777777;
  --border:      #E0DDD8;
  --border-mid:  #D0CCC4;
  --green:       #2D7A4F;
  --green-bg:    #E8F5E9;
  --red:         #9B2335;
  --red-bg:      #FDECEA;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;

  --shadow-sm:   0 1px 3px rgba(10,25,49,0.08);
  --shadow-md:   0 4px 16px rgba(10,25,49,0.10);

  --max-w:       1140px;
  --section-pad: 72px 24px;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
.display { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; line-height: 1.1; }
.display em { font-style: italic; color: var(--gold); }

h1, h2, h3, h4 { font-weight: 500; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
}

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

/* === NAVIGATION === */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: var(--white);
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-signin {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  padding: 4px;
  margin-left: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* === CARDS === */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-transform: uppercase;
}
.badge-verified { background: var(--green-bg); color: var(--green); }
.badge-featured { background: var(--gold-pale); color: #7A5C1A; }
.badge-new { background: #EEF2FF; color: #4338CA; }
.badge-online { background: #E8F5E9; color: #1B5E20; }

/* === STARS === */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars-count { font-size: 13px; color: var(--text-muted); margin-left: 4px; }

/* === TAGS === */
.tag {
  display: inline-block;
  font-size: 11px;
  background: var(--cream-mid);
  color: var(--text-mid);
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  white-space: nowrap;
}

/* === AVATAR === */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
  background: var(--navy);
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.avatar-sm  { width: 36px; height: 36px; font-size: 14px; }
.avatar-md  { width: 52px; height: 52px; font-size: 18px; }
.avatar-lg  { width: 80px; height: 80px; font-size: 26px; }
.avatar-xl  { width: 120px; height: 120px; font-size: 38px; }

/* === FORMS === */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,25,49,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }

/* Checkbox & Radio */
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.form-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text); }

/* Fieldset */
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.fieldset legend {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  padding: 0 8px;
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
}
.section-header h2 em { font-style: italic; color: var(--gold); }
.section-link {
  font-size: 13px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { color: #7A5C1A; }

/* === HERO SEARCH BAR === */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 0;
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.search-bar-fields { display: flex; flex: 1; }
.search-bar-field {
  flex: 1;
  padding: 8px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.search-bar-field:last-child { border-right: none; }
.search-bar-field label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
  cursor: pointer;
}
.search-bar-field select,
.search-bar-field input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  width: 100%;
  appearance: none;
}

/* === SUBJECT PILL NAV === */
.pill-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 24px;
  border: 1px solid var(--border-mid);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  background: var(--white);
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.pill:hover { border-color: var(--gold); color: var(--navy); }
.pill.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.pill svg { width: 15px; height: 15px; }

/* === TEACHER CARD === */
.teacher-card { cursor: pointer; }

.teacher-card-head {
  background: var(--navy);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.teacher-card-head .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin: 12px 0 4px;
}
.teacher-card-head .specialism {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.teacher-card-body { padding: 16px 20px; }

.teacher-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.teacher-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.teacher-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.teacher-card-price { font-size: 15px; font-weight: 500; color: var(--navy); }
.teacher-card-price span { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* === EXAM CARD === */
.exam-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.exam-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.exam-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.exam-card:hover::after { transform: scaleX(1); }

.exam-card-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.exam-card-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.exam-card h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.exam-card p { font-size: 12px; color: var(--text-muted); }

/* === TESTIMONIAL CARD === */
.testi-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 12px 0 18px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.testi-detail { font-size: 12px; color: var(--text-muted); }
.testi-result {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  background: var(--gold-pale);
  color: #7A5C1A;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* === STEPS (How it works) === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-style: italic;
  color: rgba(201,162,75,0.2);
  line-height: 1;
  margin-bottom: 12px;
}
.step-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(201,162,75,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.step h3 { font-size: 16px; color: var(--white); font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* === CTA BANNER === */
.cta-banner {
  background: var(--gold);
  padding: 48px 24px;
}
.cta-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}
.cta-banner p { font-size: 15px; color: rgba(10,25,49,0.7); }
.cta-banner-btns { display: flex; gap: 12px; flex-shrink: 0; }

/* === FOOTER === */
.footer { background: var(--navy-dark); padding: 64px 24px 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); font-style: italic; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.7; margin-bottom: 20px; }
.footer-trust { display: flex; align-items: center; gap: 12px; }
.footer-trust-badge {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(201,162,75,0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: 12px;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }

/* === FILTER SIDEBAR === */
.filter-sidebar {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 84px;
}
.filter-sidebar h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.filter-range { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.filter-range input { flex: 1; accent-color: var(--navy); }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--white);
  font-size: 14px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.page-btn.arrow { font-size: 18px; }

/* === STAT CARDS === */
.stat-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.stat-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

/* === ALERT / NOTICE === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #A7F3D0; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* === PROGRESS BAR === */
.progress-bar { background: var(--cream-mid); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 99px; }

/* === TABS === */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  cursor: pointer;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === STICKY ENQUIRY BOX === */
.enquiry-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-md);
}
.enquiry-box .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.enquiry-box .price span { font-size: 15px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.enquiry-box .rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.enquiry-box .divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy-mid); }

/* === INLINE SVG ICONS === */
.icon { display: inline-block; vertical-align: middle; }

/* === UTILITY === */
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-500 { font-weight: 500; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 52px 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-mid);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-inner { position: relative; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .search-bar { flex-direction: column; padding: 12px; gap: 12px; }
  .search-bar-fields { flex-direction: column; width: 100%; }
  .search-bar-field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .search-bar-field:last-child { border-bottom: none; }
  .search-bar .btn { width: 100%; justify-content: center; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

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

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-btns { justify-content: center; }

  .enquiry-box { position: static; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; }
}
