/* =========================
   ALBAROON PREMIUM STYLE
   Clean + Compatible with current index.php (hero background video + services carousel)
   ========================= */

/* Brand tokens */
:root{
  --teal:#1D8A98;
  --teal2:#599AA1;
  --orange:#F19829;
  --orange2:#EB7020;

  --black:#0b0f14;
  --white:#ffffff;
  --text:#0c1116;
  --muted:#98a2b3;

  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.25);
  --max: 1120px;
}

/* Reset */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x:hidden;
}

/* Accessibility utility */
.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Fonts + RTL/LTR */
html[lang="ar"] body{font-family:"Cairo", system-ui, sans-serif}
html[lang="en"] body{font-family:"Inter", system-ui, sans-serif}

[dir="rtl"]{direction:rtl}
[dir="rtl"] .navlinks{flex-direction:row-reverse}
[dir="rtl"] .brand{flex-direction:row-reverse}

/* Layout container */
.container{
  width: min(100% - 32px, var(--max));
  margin-inline:auto;
}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:1000;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0; /* taller to fit bigger logo */
  position: relative;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:900;
  letter-spacing:-.02em;
  color: var(--teal);
  font-size: 20px;
}

.brand{
  text-decoration:none;
}

/* ✅ Bigger logo (desktop + mobile) */
.brand-logo{
  height: 54px;          /* bigger on desktop */
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display:block;
}

/* Phone: make it clearly larger */
@media (max-width: 520px){
  .navbar{ padding: 22px 0; }
  .brand-logo{
    height: 62px;
    max-width: 300px;
  }
}

/* Very small phones */
@media (max-width: 380px){
  .brand-logo{
    height: 58px;
    max-width: 260px;
  }
}

.brand:focus-visible{ outline: 3px solid rgba(241,152,41,.55); outline-offset: 3px; border-radius: 12px; }

.navlinks{
  display:flex;
  gap:18px;
  align-items:center;
}

/* Hamburger (mobile) */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  align-items:center;
  justify-content:center;
  gap: 4px;
  cursor:pointer;
  transition: .2s ease;
}
.nav-toggle:hover{ transform: translateY(-1px); }
.nav-toggle:active{ transform: translateY(0); }
.nav-toggle__bar{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(12,17,22,.92);
  border-radius: 999px;
  transition: .25s ease;
}

/* Toggle animation when open */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2){
  opacity:0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

.navlinks a{
  text-decoration:none;
  color: var(--text);
  font-weight:700;
  opacity:.85;
  transition: .25s ease;
}
.navlinks a:hover{
  opacity:1;
  color: var(--teal);
  transform: translateY(-1px);
}

.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  font-weight:900;
  opacity:1 !important;
}

/* Responsive Header */
@media (max-width: 920px){
  /* show hamburger on mobile */
  .nav-toggle{ display:inline-flex; }

  /* Turn nav into a dropdown panel */
  .navlinks{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 2000; /* above hero/video */
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(2,6,23,.14);
    padding: 10px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap: 4px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
  }

  .navlinks.is-open{
    max-height: 90vh;
    opacity: 1;
    pointer-events: auto;
  }

  .navlinks a{
    padding: 12px 12px;
    border-radius: 12px;
    transform: none;
  }
  .navlinks a:hover{ transform:none; }

  /* Make the CTA button fill width nicely */
  .navlinks .btn{
    width: 100%;
    justify-content:center;
    margin-top: 6px;
  }

  .navlinks .lang-btn{
    width: 100%;
    height: 44px;
    margin-top: 6px;
  }

  /* RTL fix for mobile menu: keep column */
  [dir="rtl"] .navlinks{
    flex-direction: column !important;
    text-align: right;
  }
  [dir="rtl"] .navlinks a{
    text-align: right;
  }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition: .25s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--teal), #0ea5b7);
  color:#fff;
  box-shadow: 0 12px 30px rgba(29,138,152,.28);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(29,138,152,.38);
}

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color:#fff;
}
.btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.32);
}

/* =========================
   HERO (Full background video)
   ========================= */
.hero{
  position:relative;
  min-height: 82vh;
  display:grid;
  align-items:center;
  overflow:hidden;
  background:
    url("../images/hero-poster.jpg") center / cover no-repeat,
    var(--black);
}

.hero .hero-bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
  z-index:0;
  background:#000;
}

.hero .hero-bg-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(1200px 500px at 15% 20%, rgba(241,152,41,.14), transparent 55%),
    radial-gradient(900px 600px at 85% 25%, rgba(29,138,152,.18), transparent 55%),
    linear-gradient(180deg, rgba(11,15,20,.54), rgba(11,15,20,.62));
}

.hero-content{
  position:relative;
  z-index:2;
  padding: 90px 0 64px;
  color:#fff;
  text-align:center;
}
.hero h1{
  margin:0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing:-.03em;
}
.hero p{
  margin: 14px auto 26px;
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-cta{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero .scroll-hint{
  position:absolute;
  left:50%;
  right:auto;
  bottom:22px;
  transform: translateX(-50%);
  z-index:3;

  width: 36px;
  height: 56px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 999px;

  background: rgba(0,0,0,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}

.hero .scroll-hint::after{
  content:"";
  position:absolute;
  left:50%;
  top:12px;
  width:6px;
  height:6px;
  border-radius:50%;
  background: rgba(255,255,255,.95);
  transform: translateX(-50%);
  animation: scrollDotStrong 1.4s infinite;
}

@keyframes scrollDotStrong{
  0%   { transform: translate(-50%, 0); opacity: 1; }
  70%  { transform: translate(-50%, 18px); opacity: .2; }
  100% { transform: translate(-50%, 22px); opacity: 0; }
}

.hero-gap{
  height: 18px;
  background: #fff;
}

/* Sections */
.section{ padding: 84px 0; }
.section.black{ background: var(--black); color:#fff; }
.section.white{ background: #fff; color: var(--text); }

.section-title{
  text-align:center;
  margin-bottom: 34px;
}
.section-title h2{
  margin:0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing:-.02em;
}
.section-title p{
  margin: 10px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,.72);
}
.section.white .section-title p{ color: rgba(12,17,22,.65); }

/* Grid & cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card{
  grid-column: span 4;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 22px;
  transition:.25s ease;
}
.section.white .card{
  background: #fff;
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 10px 30px rgba(2,8,23,.06);
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(241,152,41,.25);
}
.card h3{
  margin: 10px 0 8px;
  font-size: 18px;
}
.card p{
  margin:0 0 14px;
  color: rgba(255,255,255,.75);
}
.section.white .card p{ color: rgba(12,17,22,.68); }

.badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:900;
  font-size: 12px;
  background: rgba(29,138,152,.14);
  color: #8ee7f1;
}
.section.white .badge{
  background: rgba(29,138,152,.10);
  color: var(--teal);
}

/* Modal (Compatible with index.php: class "open") */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  z-index:3000;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.modal.open{display:flex}

.modal-content{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  position:relative;
  animation: modalUp .22s ease;
}
@keyframes modalUp{
  from{transform: translateY(14px); opacity:0}
  to{transform: translateY(0); opacity:1}
}
.close-modal{
  position:absolute;
  top:14px;
  inset-inline-end:14px;
  font-size: 24px;
  cursor:pointer;
  user-select:none;
}

/* Form */
form label{
  display:block;
  margin: 14px 0 8px;
  font-weight:800;
}
form input, form textarea, form select{
  width:100%;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  font: inherit;
  outline:none;
}
form input:focus, form textarea:focus, form select:focus{
  border-color: rgba(29,138,152,.45);
  box-shadow: 0 0 0 4px rgba(29,138,152,.12);
}
textarea{resize: vertical}
#formStatus{min-height: 22px}

/* Responsive */
@media (max-width: 980px){
  .card{grid-column: span 6;}
}
@media (max-width: 720px){
  .navlinks{gap:12px}
}
@media (max-width: 620px){
  .card{grid-column: span 12;}
  .hero-content{padding-top:72px}
}
