/* =====================================================
   Future Air Conditioning — brand styles
   Colors extracted from the company logo:
   red #E4002B  ·  blue #219CD8
   ===================================================== */

:root {
  --red: #E4002B;
  --red-dark: #C00024;
  --blue: #219CD8;
  --blue-text: #17709F; /* contrast-safe blue for text (≥4.5:1 on white & soft-blue) */
  --blue-soft: #EAF6FD;
  --navy: #0A2E45;
  --navy-2: #123B57;
  --ink: #10344C;
  --text: #587286;
  --line: #E3EDF4;
  --bg: #FFFFFF;
  --bg-soft: #F5FAFD;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(10, 46, 69, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 46, 69, 0.14);
  --font-latin: "Manrope", system-ui, -apple-system, sans-serif;
  --font-arabic: "Tajawal", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

[dir="rtl"] body,
html[dir="rtl"] body { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 800; }

section[id], main[id] { scroll-margin-top: 90px; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* Keep phone numbers/emails readable inside RTL text */
.ltr-text { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ltr-text { text-align: right; }

/* Arabic script must not be letter-spaced (breaks letter joining) */
[dir="rtl"] :is(.hero h1, .section-head h2, .about-body h2, .brand-name strong, .brand-name small) {
  letter-spacing: 0;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer :focus-visible,
.brands :focus-visible,
.cta-band :focus-visible {
  outline-color: #fff;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  z-index: 100;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus-visible { transform: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: inherit;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(228, 0, 43, 0.28);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  border-color: var(--blue);
  color: var(--blue-text);
  background: #fff;
}
.btn-outline:hover { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--blue-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 46, 69, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong {
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand-name small {
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}
.brand--light .brand-name strong { color: #fff; }

.main-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--blue-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  font-family: var(--font-latin);
  transition: border-color .15s ease, background .15s ease;
}
html[dir="ltr"] .lang-toggle { font-family: var(--font-arabic); }
html[dir="rtl"] .lang-toggle { font-family: var(--font-latin); }
.lang-toggle:hover { border-color: var(--blue); background: var(--blue-soft); }
.lang-toggle svg { width: 17px; height: 17px; color: var(--blue); }

.header-cta { padding: 11px 22px; font-size: 14.5px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--blue-soft) 78%, #DDF0FB 100%);
  padding-block: 70px 0;
  overflow: hidden;
}
.hero-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-text);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  letter-spacing: -1px;
}
.hero-side p {
  font-size: 17.5px;
  margin-bottom: 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media {
  position: relative;
  margin-bottom: -2px;
}
.hero-media > img {
  width: 100%;
  height: clamp(300px, 46vw, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  inset-inline-start: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px;
  padding-inline-end: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-card img { width: 46px; height: 46px; object-fit: contain; }
.hero-card strong { display: block; color: var(--navy); font-size: 15.5px; }
.hero-card span { font-size: 13.5px; color: var(--text); }

/* ===== Brands strip ===== */
.brands {
  background: var(--navy);
  padding-block: 34px;
}
.brands-label {
  text-align: center;
  color: #9FC4DC;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
[dir="rtl"] .brands-label { letter-spacing: 0; }
.brands-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 48px;
}
.brand-word {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 1.5px;
  font-family: var(--font-latin);
}
.brand-word--rheem {
  color: #fff;
  background: var(--red);
  padding: 6px 20px;
  border-radius: 10px;
  letter-spacing: .5px;
  font-style: italic;
}

/* ===== Sections ===== */
.section { padding-block: 96px; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.5px;
}
.section-head p { font-size: 16.5px; }

.chip {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ===== Services ===== */
.services { background: var(--bg); padding-top: 88px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-media { position: relative; }
.service-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,46,69,0) 30%, rgba(10,46,69,0.72) 100%);
}
.service-media h3 {
  position: absolute;
  z-index: 1;
  inset-inline-start: 24px;
  bottom: 18px;
  color: #fff;
  font-size: 26px;
}
.service-body { padding: 24px 24px 28px; }
.service-body p { font-size: 15.5px; margin-bottom: 18px; }

.text-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform .18s ease; display: inline-block; }
.text-link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .text-link .arrow { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ===== Why us ===== */
.why { background: var(--bg-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 34px;
}
.why-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.why-item:nth-child(even) .why-icon { background: var(--blue); }
.why-icon svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { font-size: 15.5px; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.about-body h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.about-body > p { margin-bottom: 22px; }
.about-list {
  list-style: none;
  margin-bottom: 30px;
  display: grid;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-inline-start: 34px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
}
.about-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Ccircle cx='12' cy='12' r='11' fill='white' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Ccircle cx='12' cy='12' r='11' fill='white' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.about-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 8px;
  width: 10px;
  height: 6px;
  border: 2.4px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

/* ===== Contact ===== */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
a.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 17.5px; margin-bottom: 6px; }
.contact-card p { font-size: 15px; word-break: break-word; }

.cta-band {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 55%, #17547C 100%);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,156,216,0.35), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.cta-band p { color: #B9D6E8; }
.cta-band .btn { position: relative; z-index: 1; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #A9C6D9;
  padding-top: 78px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p {
  margin-top: 20px;
  font-size: 15px;
  max-width: 380px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-col a {
  color: #A9C6D9;
  text-decoration: none;
  font-size: 15px;
  transition: color .15s ease;
  width: fit-content;
}
.footer-col a:hover { color: #fff; }
.footer-phone {
  font-size: 24px !important;
  font-weight: 800;
  color: #fff !important;
}
.footer-contact p { font-size: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  font-size: 14px;
}

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  inset-inline-end: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(228, 0, 43, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 40;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 22px; height: 22px; }
.back-top:hover { background: var(--red-dark); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { height: 380px; }
  .header-cta { display: none; }
}

@media (max-width: 820px) {
  .hero-top { grid-template-columns: 1fr; gap: 26px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }

  .main-nav {
    position: fixed;
    top: 76px;
    inset-inline: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    display: none;
    z-index: 60;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .main-nav a:hover { background: var(--blue-soft); }
  .nav-burger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding-block: 68px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .brand-name strong { font-size: 18px; }
  .brands-list { gap: 14px 28px; }
  .brand-word { font-size: 17px; }
  .hero { padding-top: 46px; }
  .hero-card { padding: 10px; padding-inline-end: 16px; }
  .hero-card img { width: 38px; height: 38px; }
}
