/* ============================================================
   Ceramica Expo — ceramica-expo.com
   International Exhibition for Ceramics, Sanitaryware, Marble
   & Building Materials. Single stylesheet (LTR + RTL ready).
   ============================================================ */

:root {
  --red-700: #9e1b1b;
  --red-600: #c0252b;
  --red-500: #d8363c;
  --navy-900: #16243a;
  --navy-800: #1f3354;
  --blue-600: #2e6db4;
  --blue-500: #478ac9;
  --steel: #5b6b80;
  --ink: #1b2330;
  --ink-soft: #51607a;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --line: #e2e8f1;
  --gold: #d9a13b;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(22, 36, 58, 0.12);
  --font-en: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-en);
}
html[lang="ar"] { --font: var(--font-ar); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

h1,h2,h3,h4 { line-height: 1.22; color: var(--navy-900); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--red-600);
  margin-bottom: .6rem;
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 48em; }

.section { padding-block: 4.5rem; }
.section.alt { background: var(--mist); }
.section.navy { background: var(--navy-900); }
.section.navy h2, .section.navy h3, .section.navy p, .section.navy .lead { color: #fff; }
.section.navy .lead { color: rgba(255,255,255,.82); }
.section-head { margin-bottom: 2.4rem; max-width: 52em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  cursor: pointer; box-shadow: 0 6px 18px rgba(16,24,40,.12);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16,24,40,.22); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px rgba(192,37,43,.34); }
.btn-primary:hover { background: var(--red-700); color: #fff; box-shadow: 0 14px 30px rgba(192,37,43,.4); }
.btn-blue { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(46,109,180,.32); }
.btn-blue:hover { background: var(--navy-800); color: #fff; box-shadow: 0 14px 30px rgba(46,109,180,.4); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; box-shadow: none;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.btn-outline { border-color: var(--red-600); color: var(--red-600); box-shadow: none; }
.btn-outline:hover { background: var(--red-600); color: #fff; box-shadow: 0 12px 26px rgba(192,37,43,.3); }
/* Nav chips get a subtle glass feel */
.nav .lang-switch { background: rgba(255,255,255,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Floating liquid-glass header */
html { scroll-padding-top: 92px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border: none;
  padding-top: 14px; padding-bottom: 4px;
  transition: padding .3s ease;
}
.site-header .header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .45rem .55rem .45rem 1.3rem;
  border-radius: 999px;
  isolation: isolate;
  background: rgba(255,255,255,.66);
  box-shadow: 0 10px 30px rgba(16,24,40,.16);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header .header-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}
html.lg-svg .site-header .header-inner::before {
  backdrop-filter: url(#cx-glass) blur(2px) saturate(1.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}
.site-header .header-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -2px 3px rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.4);
}
.site-header.scrolled { padding-top: 8px; }
.site-header.scrolled .header-inner { background: rgba(255,255,255,.86); box-shadow: 0 8px 26px rgba(16,24,40,.22); }
@media (prefers-reduced-transparency: reduce) {
  .site-header .header-inner { background: #fff; }
  .site-header .header-inner::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red-600); }
.nav a.active { color: var(--red-600); border-bottom-color: var(--red-600); }
.nav .btn { padding: .55rem 1.2rem; }
.nav .btn-primary { color: #fff; border-bottom: none; }
.lang-switch {
  border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem 1rem;
  font-weight: 700; font-size: .85rem; color: var(--navy-800); background: var(--mist); white-space: nowrap;
}
.lang-switch:hover { border-color: var(--red-600); }
.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: all .25s; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(15,24,40,.93) 22%, rgba(15,24,40,.6) 58%, rgba(158,27,27,.35)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .tagline { color: var(--blue-500); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; margin-bottom: 1rem; }
html[lang="ar"] .hero .tagline { letter-spacing: 0; font-size: 1rem; }
.hero .when { display: inline-flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; font-size: 1.12rem; font-weight: 700; }
.hero .when span { display: inline-flex; align-items: center; gap: .5rem; }
.hero .when .dot { color: var(--red-500); }
.hero p.sub { margin-top: 1.1rem; max-width: 40em; color: rgba(255,255,255,.86); font-size: 1.12rem; }
.hero-cta { margin-top: 2.1rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats / countdown */
.stats { background: var(--red-600); color: #fff; padding-block: 2.4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1.6rem; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; }
.stat .lbl { color: #fff; font-size: .9rem; margin-top: .2rem; }

.countdown { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.countdown .unit { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 1rem 1.3rem; text-align: center; min-width: 84px; }
.countdown .u-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.countdown .u-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-top: .4rem; }

/* Cards / grids */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card h3 { color: var(--navy-900); }
.card .ico { width: 46px; height: 46px; color: var(--red-600); }
.card.accent { border-top: 4px solid var(--red-600); }

.badge { display: inline-block; background: var(--gold); color: #1d2a16; font-size: .75rem; font-weight: 800; padding: .25rem .8rem; border-radius: 999px; width: fit-content; }
.badge.red { background: var(--red-600); color: #fff; }
.badge.blue { background: var(--blue-600); color: #fff; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }

/* Field / category tiles */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; }
.field { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1rem; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: .7rem; transition: transform .2s, border-color .2s; }
.field:hover { transform: translateY(-3px); border-color: var(--red-600); }
.field svg { width: 40px; height: 40px; color: var(--blue-600); }
.field span { font-weight: 700; font-size: .95rem; color: var(--navy-900); }

/* Check list */
.checks { display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: var(--red-600); font-weight: 900; flex-shrink: 0; margin-top: .1rem; }

/* Plain list w/ markers */
.dot-list { display: grid; gap: .55rem; }
.dot-list li { display: flex; gap: .7rem; color: var(--ink-soft); }
.dot-list li::before { content: "▪"; color: var(--blue-600); flex-shrink: 0; }

/* Geo / chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips span { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; font-weight: 600; color: var(--navy-800); }

/* Page hero */
.page-hero { background: linear-gradient(115deg, var(--navy-900), var(--navy-800) 60%, var(--blue-600)); color: #fff; padding-block: 4rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.84); max-width: 46em; margin-top: .8rem; font-size: 1.1rem; }

/* Contact */
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: .8rem; }
.contact-card ul { display: grid; gap: .55rem; color: var(--ink-soft); }
.contact-card a { font-weight: 600; }
.ltr-inline { direction: ltr; unicode-bidi: embed; }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--red-700), var(--red-600)); color: #fff; border-radius: var(--radius); padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-block: 3.4rem 0; margin-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.4rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--blue-500); }
.site-footer ul { display: grid; gap: .5rem; }
.footer-brand img { height: 58px; width: auto; margin-bottom: 1rem; }
.footer-socials { margin-top: 1rem; display: flex; gap: .6rem; }
.footer-socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.footer-socials a:hover { background: var(--red-600); color: #fff; }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.2rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.72); }

/* Focus */
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .stats :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* Reveal */
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; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 940px) {
  .nav {
    position: fixed; inset-block-start: 76px; inset-inline: 4%;
    width: 92%; box-sizing: border-box;
    background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
    flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem; gap: .8rem;
    border-radius: 22px; box-shadow: 0 18px 40px rgba(16,24,40,.22), inset 0 0 0 1px rgba(255,255,255,.5);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav .btn { justify-content: center; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 78vh; }
}
