/* Al Rubu Al Khali Bldg Cleaning — Beans Digital concept
   Palette: Empty Quarter desert at dusk — deep night indigo, dune amber, warm sand.
   Type: Fraunces (editorial serif) + Karla (humanist sans). */

@view-transition { navigation: auto; }

:root {
  --night: #211d3a;
  --night-deep: #171430;
  --dune: #c98a3b;
  --dune-bright: #e2a558;
  --sand: #f7efe2;
  --sand-deep: #efe2cc;
  --ink: #2b2438;
  --ink-soft: #5c5370;
  --white: #fffdf8;
  --radius: 14px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Concept banner */
.concept-banner {
  background: var(--night-deep);
  color: var(--sand);
  text-align: center;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: .55rem 1rem;
}
.concept-banner a { color: var(--dune-bright); }

/* Header */
.site-header {
  background: var(--night);
  color: var(--sand);
  position: sticky;
  top: 0;
  z-index: 50;
  view-transition-name: site-header;
  border-bottom: 1px solid rgba(226, 165, 88, .25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  view-transition-name: brand;
}
.brand .star { color: var(--dune-bright); flex: none; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dune-bright);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247, 239, 226, .4);
  color: var(--sand);
  border-radius: 8px;
  padding: .45rem .7rem;
  font: inherit;
  cursor: pointer;
}
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  opacity: .85;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; border-bottom-color: var(--dune-bright); }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--dune-bright); color: var(--dune-bright); }
.site-nav .nav-cta {
  background: var(--dune);
  color: var(--night-deep);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  border-bottom: none;
  opacity: 1;
}
.site-nav .nav-cta:hover { background: var(--dune-bright); border-bottom: none; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; padding-block: .6rem 1rem; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .55rem 0; border-bottom: none; }
  .site-nav a[aria-current="page"] { border-bottom: none; }
  .site-header .wrap { flex-wrap: wrap; }
}
/* No-JS fallback: keep nav visible when toggle never wired */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { display: block; }

/* Hero — desert night */
.hero {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(226, 165, 88, .22), transparent 60%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 70%, #35284a 100%);
  color: var(--sand);
  text-align: center;
  padding: 5rem 0 0;
  overflow: hidden;
}
.hero .eyebrow { color: var(--dune-bright); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.08;
  max-width: 18ch;
  margin: 1rem auto .5rem;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; color: var(--dune-bright); }
.hero p.lede {
  max-width: 54ch;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  opacity: .88;
}
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.dunes { display: block; width: 100%; height: auto; margin-top: -1px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--dune);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: .8rem 1.7rem;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dune); color: var(--night-deep); }
.btn-primary:hover { background: var(--dune-bright); }
.btn-ghost { border: 1.5px solid rgba(247, 239, 226, .55); color: var(--sand); }
.btn-ghost:hover { border-color: var(--dune-bright); color: var(--dune-bright); }
.btn-dark { background: var(--night); color: var(--sand); }
.btn-dark:hover { background: var(--night-deep); }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: .5rem 0 .8rem;
}
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: .5rem; }
.muted { color: var(--ink-soft); }

/* Stats band */
.stats {
  background: var(--night);
  color: var(--sand);
  padding: 2.6rem 0;
}
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--dune-bright);
  font-weight: 600;
  line-height: 1.1;
}
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* Cards */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dune), var(--dune-bright));
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover::before { opacity: 1; }
.card .glyph { font-size: 1.6rem; color: var(--dune); margin-bottom: .8rem; font-family: var(--font-display); }
.card ul { padding-left: 1.1rem; margin-top: .6rem; }
.card li { margin-bottom: .3rem; }

/* Review cards */
.review {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  font-size: .98rem;
}
.review .stars { color: var(--dune); letter-spacing: .15em; margin-bottom: .7rem; font-size: .9rem; }
.review footer { margin-top: .9rem; font-size: .82rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Alternating editorial rows */
.row { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }
.row .ornament {
  background: var(--night);
  border-radius: var(--radius);
  color: var(--dune-bright);
  display: grid;
  place-items: center;
  min-height: 220px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
}

/* CTA strip */
.cta-strip {
  background:
    radial-gradient(900px 400px at 20% 120%, rgba(226, 165, 88, .25), transparent 60%),
    var(--night-deep);
  color: var(--sand);
  text-align: center;
}
.cta-strip h2 { color: var(--sand); }

/* Tables */
table.hours { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-deep); }
table.hours th, table.hours td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--sand-deep); }
table.hours tr:last-child td, table.hours tr:last-child th { border-bottom: none; }
table.hours td:last-child { color: var(--dune); font-weight: 700; }
table.hours caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .6rem; }

/* Contact */
.contact-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); display: block; }

/* Footer */
.site-footer {
  background: var(--night-deep);
  color: var(--sand);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2rem; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--dune-bright); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .legal {
  border-top: 1px solid rgba(247, 239, 226, .18);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: .8;
  font-size: .82rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Reveal animation (JS-gated; visible without JS) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* Page intro header for inner pages */
.page-head {
  background: linear-gradient(180deg, var(--night-deep), var(--night));
  color: var(--sand);
  text-align: center;
  padding: 3.6rem 0 0;
}
.page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); margin: .8rem 0 .6rem; }
.page-head p { max-width: 56ch; margin: 0 auto 2.6rem; opacity: .88; }

.notice {
  background: var(--sand-deep);
  border-left: 4px solid var(--dune);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  font-size: .95rem;
  margin-top: 2rem;
}
