:root {
  --teal: #003f40;
  --teal-2: #0b5a59;
  --gold: #be934e;
  --ink: #12211f;
  --muted: #667370;
  --paper: #fbf8f1;
  --line: rgba(0, 63, 64, 0.14);
  --shadow: 0 24px 70px rgba(0, 37, 38, 0.15);
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(190, 147, 78, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(0, 63, 64, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #f5efe4 100%);
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; top: -4rem; right: 1rem; z-index: 20; background: var(--teal); color: #fff; padding: .7rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 253, 248, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .8rem; margin-inline-end: auto; min-width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--teal), #002829);
  box-shadow: 0 10px 28px rgba(0, 63, 64, .28), inset 0 0 0 1px rgba(190, 147, 78, .5);
  font-weight: 900;
}
.brand strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.site-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; justify-content: center; }
.site-nav a { padding: .55rem .8rem; border-radius: 999px; color: #34413f; font-size: .92rem; transition: .2s ease; }
.site-nav a:hover, .site-nav a.active { background: rgba(0, 63, 64, .08); color: var(--teal); }
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta, .btn.primary { color: #fff; background: linear-gradient(135deg, var(--teal), #002c2d); box-shadow: 0 16px 36px rgba(0, 63, 64, .24); }
.btn.secondary { color: var(--teal); background: rgba(255, 255, 255, .72); border-color: rgba(0, 63, 64, .18); }
.btn:hover, .header-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 63, 64, .25); }
.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.nav-toggle span { display: block; width: 1.25rem; height: 2px; margin: 4px auto; background: var(--teal); }

.hero {
  min-height: calc(100vh - 5rem);
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(255, 253, 248, .96) 0%, rgba(255, 253, 248, .84) 38%, rgba(255, 253, 248, .22) 68%, rgba(0, 63, 64, .26) 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { max-width: 48rem; }
.eyebrow, .section-head span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: .7rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: 1.08; margin-bottom: 1.2rem; color: var(--teal); letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.22; margin-bottom: .8rem; color: var(--teal); letter-spacing: 0; }
h3 { font-size: 1.18rem; line-height: 1.45; margin-bottom: .45rem; }
.hero p, .page-hero p, .section-head p, .split-section p { color: #42504d; font-size: 1.08rem; max-width: 48rem; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }

.section, .split-section, .contact-band, .page-hero, .site-footer {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}
.section-head { max-width: 58rem; margin-bottom: 2rem; }
.product-grid, .service-grid, .area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card, .service-grid article, .area-grid article, .feature-list > div, .steps > div, .contact-form, .faq-list details {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1.3rem;
  box-shadow: 0 14px 40px rgba(0, 63, 64, .07);
}
.product-card { position: relative; overflow: hidden; min-height: 15rem; }
.product-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 8rem;
  background: radial-gradient(circle, rgba(190, 147, 78, .22), transparent 70%);
}
.card-icon { display: inline-flex; color: var(--teal); background: rgba(190, 147, 78, .15); border: 1px solid rgba(190,147,78,.25); border-radius: 999px; padding: .25rem .75rem; font-size: .86rem; font-weight: 900; margin-bottom: 1.1rem; }
.product-card p, .service-grid p, .area-grid p, .feature-list p, .steps p { color: var(--muted); font-size: .95rem; }
.product-card a { color: var(--gold); font-weight: 900; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dark {
  color: #fff;
  background: linear-gradient(135deg, #003f40 0%, #072b2b 62%, #14120d 100%);
}
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: rgba(255,255,255,.74); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps > div { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); box-shadow: none; }
.steps b { color: var(--gold); font-size: 2rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.portfolio-item { position: relative; min-height: 18rem; overflow: hidden; border-radius: .65rem; box-shadow: var(--shadow); background: var(--teal); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .35s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 29, 30, .78), transparent 62%); }
.portfolio-item div { position: absolute; z-index: 1; inset-inline: 1.2rem; bottom: 1.2rem; color: #fff; }
.portfolio-item span { color: var(--gold); font-weight: 900; }
.portfolio-item h3 { color: #fff; margin: .2rem 0 0; }

.faq-list { display: grid; gap: .8rem; max-width: 58rem; }
.faq-list summary { cursor: pointer; font-weight: 900; color: var(--teal); }
.faq-list p { color: var(--muted); margin: .6rem 0 0; }
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(18rem, .65fr);
  gap: 2rem;
  align-items: start;
  margin: clamp(1rem, 4vw, 3rem);
  border-radius: .9rem;
  background: linear-gradient(135deg, rgba(0,63,64,.96), rgba(0,37,38,.92)), radial-gradient(circle at 20% 0%, rgba(190,147,78,.5), transparent 22rem);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-band h2, .contact-band p { color: #fff; }
.contact-form { display: grid; gap: .9rem; color: var(--ink); }
.contact-form label { display: grid; gap: .35rem; font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid rgba(0,63,64,.18);
  border-radius: .45rem;
  padding: .75rem .85rem;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(190,147,78,.14); }

.page-hero {
  background:
    linear-gradient(135deg, rgba(0,63,64,.95), rgba(0,37,38,.9)),
    url("dekori-jeddah-hero.png") center/cover;
  color: #fff;
  min-height: 26rem;
  display: flex;
  align-items: center;
}
.page-hero h1, .page-hero p { color: #fff; }
.visual-panel { border-radius: .7rem; overflow: hidden; box-shadow: var(--shadow); }
.visual-panel img { width: 100%; height: 29rem; object-fit: cover; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: #061f20;
  color: #fff;
}
.site-footer p { color: rgba(255,255,255,.72); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.footer-links a { color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .45rem .8rem; }
.copyright { grid-column: 1 / -1; font-size: .9rem; }
.floating-whatsapp {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: 1rem;
  z-index: 12;
  color: #fff;
  background: #128c7e;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(18, 140, 126, .34);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .site-nav {
    position: absolute;
    inset: 100% 1rem auto 1rem;
    display: none;
    padding: .75rem;
    background: rgba(255,253,248,.98);
    border: 1px solid var(--line);
    border-radius: .8rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .product-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { padding: .7rem 1rem; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-top: 6rem; }
  .hero-media::after { background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(255,253,248,.78)); }
  .actions .btn { width: 100%; }
  .product-grid, .service-grid, .area-grid, .portfolio-grid, .feature-list, .steps, .split-section, .contact-band, .site-footer { grid-template-columns: 1fr; }
  .contact-band { margin: 1rem; padding: 2rem 1rem; }
  .site-nav.open { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .visual-panel img { height: 18rem; }
}
