/* ========================================================================
   Green Falcon responsive consistency layer
   Uses Bootstrap 3.3.7 breakpoints: xs <768, sm >=768, md >=992, lg >=1200.
   Loaded after theme.css so all pages follow one predictable scale/system.
   ======================================================================== */

:root {
  --container-gutter: 15px;
  --header-height: 70px;
  --section-y: 72px;
  --text-body: 16px;
  --text-sm: 15px;
  --text-xs: 13px;
  --text-display: 54px;
  --text-h1: 42px;
  --text-h2: 34px;
  --text-h3: 21px;
}

html { font-size: 16px; }
body { font-size: 16px; line-height: 1.65; overflow-x: hidden; }

/* Let Bootstrap's familiar container widths govern every page. */
.container {
  width: 100%;
  max-width: none;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Keep all text elements on one deliberate type scale. */
h1, h2, h3, h4, h5, h6, p { max-width: 100%; }
.section-heading h2,
.section-heading h1,
.section-title-s2 h2,
.page-header h1,
.hero h1,
.cta-section h2,
.feature-body h4,
.about-card h2,
.about-card h3,
.contact-info-card h3,
.discipline-intro h2 { line-height: 1.2; }

.section-heading p,
.page-header p,
.about-card p,
.feature-body p,
.contact-info-block p,
.form-field input,
.form-field textarea,
.site-footer .footer-links li,
.site-footer > .container > .footer-grid > div:first-child p { font-size: 15px; }

/* Header: Bootstrap md is the desktop/mobile nav switch. */
.site-header { height: 70px; }
.site-header .container { min-height: 70px; }
.brand-logo { height: 36px; max-width: 170px; }
.main-nav { gap: 24px; }
.main-nav > a,
.nav-item > .nav-link { font-size: 12px; line-height: 1.4; }
.lang-toggle-btn { font-size: 12px; min-height: 36px; padding: 7px 15px; }

/* Buttons/forms: same target sizes on every page. */
.btn {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 14px;
  line-height: 1.5;
}
.form-field input,
.form-field textarea { min-height: 44px; }
.form-field textarea { min-height: 130px; resize: vertical; }

/* Media/cards should not inherit accidental Bootstrap defaults. */
.about-card,
.contact-info-card,
.contact-form-card { height: 100%; }
.feature-media img,
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* Bootstrap xs: phones */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-y: 48px;
    --text-body: 15px;
    --text-sm: 14px;
    --text-xs: 12px;
    --text-display: 36px;
    --text-h1: 32px;
    --text-h2: 27px;
    --text-h3: 19px;
  }

  body { font-size: 15px; }
  .site-header { height: 64px; }
  .site-header .container { min-height: 64px; }
  .brand-logo { height: 31px; max-width: 145px; }
  .nav-toggle { display: flex; width: 42px; height: 42px; }

  .main-nav {
    top: 64px;
    padding: 10px 15px 28px;
  }
  .main-nav > a,
  .nav-item > .nav-link {
    min-height: 48px;
    padding: 14px 0;
    font-size: 14px;
    letter-spacing: .06em;
  }
  .nav-dropdown { padding-left: 12px; padding-right: 12px; }
  .nav-dropdown a { font-size: 14px; padding: 10px 8px; }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 56px;
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 36px; letter-spacing: -.015em; margin-bottom: 18px; }
  .hero p { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; white-space: normal; }

  .page-header { padding-top: 105px; padding-bottom: 28px; }
  .page-header h1 { font-size: 32px; }
  .page-header p { font-size: 14px; }

  .section-title-s2,
  .section-heading { margin-bottom: 30px; }
  .section-title-s2 h2,
  .section-heading h2 { font-size: 27px; }

  .about-lead,
  .feature-grid,
  .feature-row,
  .contact-grid { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-card,
  .contact-info-card,
  .contact-form-card { padding: 22px 18px; }
  .about-card h2,
  .about-card h3,
  .feature-body h4,
  .contact-info-card h3 { font-size: 19px; }

  .feature-row { padding-bottom: 30px; }
  .feature-media { max-width: 100%; aspect-ratio: 16 / 9; }
  .feature-count { width: 36px; height: 36px; font-size: 13px; margin-bottom: 12px; }

  .discipline-intro { margin-bottom: 36px; }
  .discipline-intro h2 { font-size: 19px; margin-top: 28px; }

  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form-row .form-field { margin-bottom: 18px; }
  .form-field { margin-bottom: 18px; }
  .submit-row { flex-wrap: wrap; }
  .submit-row .btn { width: 100%; }

  .cta-section h2 { font-size: 27px; margin-bottom: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .site-footer { padding-top: 48px; }
  .site-footer h4 { font-size: 12px; margin-bottom: 14px; }
  .site-footer .footer-links li { font-size: 14px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; font-size: 12px; }
  .footer-bottom .legal-links { gap: 10px 18px; }
}

/* Bootstrap sm: tablets */
@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --header-height: 68px;
    --section-y: 60px;
    --text-display: 46px;
    --text-h1: 37px;
    --text-h2: 31px;
    --text-h3: 20px;
  }

  .container { width: 750px; }
  .site-header { height: 68px; }
  .site-header .container { min-height: 68px; }
  .brand-logo { height: 34px; }

  .main-nav { top: 68px; padding-left: 24px; padding-right: 24px; }
  .main-nav > a,
  .nav-item > .nav-link { font-size: 14px; min-height: 48px; }
  .nav-dropdown a { font-size: 14px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 140px; padding-bottom: 72px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 16px; }

  .page-header { padding-top: 126px; }
  .page-header h1 { font-size: 37px; }
  .section-title-s2 h2,
  .section-heading h2 { font-size: 31px; }

  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bootstrap md: standard desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  .container { width: 970px; }

  .main-nav { display: flex; gap: 15px; }
  .main-nav > a,
  .nav-item > .nav-link { font-size: 11px; letter-spacing: .065em; }
  .lang-toggle-btn { padding-left: 12px; padding-right: 12px; }
  .nav-toggle { display: none; }

  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-lead { grid-template-columns: 1.2fr 1fr; }
  .feature-row { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse > * { direction: ltr; }
  [dir="rtl"] .feature-row.reverse > * { direction: rtl; }
  .contact-grid { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .footer-grid { grid-template-columns: 1.25fr .75fr .8fr 1.2fr; gap: 32px; }
}

/* Bootstrap lg: large desktops */
@media (min-width: 1200px) {
  .container { width: 1170px; }

  .main-nav { gap: 28px; }
  .main-nav > a,
  .nav-item > .nav-link { font-size: 12px; }
  .nav-toggle { display: none; }

  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-lead { grid-template-columns: 1.2fr 1fr; }
  .feature-row { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse > * { direction: ltr; }
  [dir="rtl"] .feature-row.reverse > * { direction: rtl; }
  .contact-grid { grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); }
  .footer-grid { grid-template-columns: 1.25fr .75fr .8fr 1.2fr; }
}

/* RTL alignment consistency across responsive modes. */
[dir="rtl"] .main-nav,
[dir="rtl"] .footer-grid,
[dir="rtl"] .contact-info-card,
[dir="rtl"] .contact-form-card,
[dir="rtl"] .feature-body,
[dir="rtl"] .discipline-intro { text-align: right; }

@media (max-width: 991px) {
  [dir="rtl"] .nav-dropdown { padding-right: 12px; padding-left: 0; }
}

/* Explicitly cancel the legacy 64rem mobile-nav rule at Bootstrap md+. */
@media (min-width: 992px) {
  .main-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }
  .main-nav > a,
  .nav-item > .nav-link {
    width: auto;
    min-height: 0;
    padding: 8px 0;
    border-bottom: 0;
    justify-content: flex-start;
  }
  .main-nav > a::after,
  .nav-item > .nav-link::after { display: block; }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: block;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
  }
  .nav-item:hover .nav-dropdown,
  .nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown a { color: var(--navy-700); }
  .lang-toggle-btn { width: auto; margin-top: 0; }
}

/* ========================================================================
   RTL / Arabic polish and extra-large viewport support
   ======================================================================== */

/* Arabic uses a readable system Arabic stack and avoids Latin tracking rules. */
[dir="rtl"] body {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .hero h1,
[dir="rtl"] .section-title-s2 span,
[dir="rtl"] .section-title-s2 h2,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .page-header h1,
[dir="rtl"] .cta-section h2,
[dir="rtl"] .feature-body h4,
[dir="rtl"] .site-footer h4,
[dir="rtl"] .main-nav > a,
[dir="rtl"] .nav-item > .nav-link {
  letter-spacing: 0;
}

/* Keep the Arabic hero as one visually coherent RTL statement even though
   the source markup contains a BR and an accent span. */
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .hero h1 {
  text-transform: none;
  line-height: 1.32;
}
[dir="rtl"] .hero h1 .accent { display: inline; }
[dir="rtl"] .hero p { line-height: 1.85; }
[dir="rtl"] .hero-actions { direction: rtl; }
[dir="rtl"] .hero-actions .btn,
[dir="rtl"] .cta-section .btn { direction: rtl; }
[dir="rtl"] .dir-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .dir-arrow { transform: scaleX(-1) translateX(-3px); }

/* Prevent punctuation and mixed-script content from jumping to the opposite
   edge if an untranslated fragment ever remains. */
.cta-section h2,
.hero h1,
.hero p { unicode-bidi: plaintext; }

/* Comfortable Arabic navigation spacing. */
[dir="rtl"] .main-nav { gap: 30px; }
[dir="rtl"] .nav-dropdown { text-align: right; }

/* 4K / ultrawide extension on top of Bootstrap 3's lg breakpoint. */
@media (min-width: 1600px) {
  :root {
    --header-height: 82px;
    --section-y: 92px;
    --text-body: 18px;
    --text-sm: 16px;
    --text-xs: 14px;
    --text-display: 66px;
    --text-h1: 50px;
    --text-h2: 40px;
    --text-h3: 24px;
  }

  body { font-size: 18px; }
  .container { width: 1440px; }
  .site-header { height: 82px; }
  .site-header .container { min-height: 82px; }
  .brand-logo { height: 44px; max-width: 220px; }
  .main-nav { gap: 34px; }
  .main-nav > a,
  .nav-item > .nav-link,
  .lang-toggle-btn { font-size: 14px; }
  .lang-toggle-btn { min-height: 42px; padding: 9px 20px; }

  .hero {
    min-height: 660px;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 84px;
  }
  .hero .container { width: 1440px; }
  .hero-content { max-width: 760px; }
  .hero h1 { font-size: 66px; }
  .hero p { font-size: 18px; max-width: 680px; }
  .btn { min-height: 48px; padding: 12px 26px; font-size: 15px; }

  .section-heading p,
  .page-header p,
  .about-card p,
  .feature-body p,
  .contact-info-block p,
  .site-footer .footer-links li,
  .site-footer > .container > .footer-grid > div:first-child p { font-size: 16px; }

  .about-lead { gap: 64px; }
  .about-grid { gap: 28px; }
  .about-card { padding: 34px; }
  .footer-grid { gap: 54px; }
}

@media (min-width: 2400px) {
  :root {
    --header-height: 100px;
    --section-y: 120px;
    --text-body: 22px;
    --text-sm: 19px;
    --text-xs: 16px;
    --text-display: 86px;
    --text-h1: 64px;
    --text-h2: 52px;
    --text-h3: 30px;
  }

  body { font-size: 21px; }
  .container { width: min(2000px, calc(100vw - 160px)); }
  .site-header { height: 100px; }
  .site-header .container { min-height: 100px; }
  .brand-logo { height: 56px; max-width: 280px; }
  .main-nav { gap: 48px; }
  .main-nav > a,
  .nav-item > .nav-link,
  .lang-toggle-btn { font-size: 17px; }
  .lang-toggle-btn { min-height: 50px; padding: 12px 26px; }

  .hero {
    min-height: 900px;
    padding-top: calc(var(--header-height) + 110px);
    padding-bottom: 120px;
  }
  .hero .container { width: min(2000px, calc(100vw - 160px)); }
  .hero-content { max-width: 980px; }
  .hero-eyebrow { font-size: 17px; }
  .hero h1 { font-size: 86px; }
  .hero p { font-size: 22px; max-width: 820px; }
  .hero-actions { gap: 22px; }
  .btn { min-height: 58px; padding: 15px 34px; font-size: 18px; }

  .section-title-s2 h2,
  .section-heading h2 { font-size: 52px; }
  .about-card { padding: 46px; }
  .about-card h3 { font-size: 30px; }
  .about-card p,
  .feature-body p,
  .contact-info-block p,
  .site-footer .footer-links li,
  .site-footer > .container > .footer-grid > div:first-child p { font-size: 19px; }
  .footer-grid { gap: 72px; }
}
