/* ==========================================================================
   Muscat Self Storage — landing page styles
   Layout inspired by makhzny.com; colours are 100% our own brand.
   Tokens mirror /02_colours_and_tokens/brand-tokens.css (source of truth).
   ========================================================================== */

:root {
  /* Approved brand colours */
  --mss-deep-navy: #031939;
  --mss-security-orange: #FD7629;
  --mss-warm-off-white: #F4F1EC;
  --mss-soft-grey: #B8BFCA;
  --mss-charcoal-slate: #35435D;

  /* Semantic roles */
  --mss-text-primary: var(--mss-deep-navy);
  --mss-text-secondary: var(--mss-charcoal-slate);
  --mss-background: var(--mss-warm-off-white);
  --mss-accent: var(--mss-security-orange);
  --mss-accent-hover: #e9641a;

  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 22px 60px rgba(3, 25, 57, 0.12);
  --shadow-card: 0 10px 30px rgba(3, 25, 57, 0.07);

  --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-latin);
  color: var(--mss-text-secondary);
  background: var(--mss-background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir='rtl'] body { font-family: var(--font-arabic); line-height: 1.9; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--mss-text-primary); line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; letter-spacing: .2px; font-family: inherit;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--primary { background: var(--mss-accent); color: #fff; box-shadow: 0 12px 26px rgba(253, 118, 41, .30); }
.btn--primary:hover { background: var(--mss-accent-hover); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--block { width: 100%; margin-top: 8px; }

/* ---------- Announcement bar ---------- */
.announce {
  position: sticky; top: 0; z-index: 40;
  background: var(--mss-charcoal-slate); color: var(--mss-warm-off-white);
  font-size: .86rem; letter-spacing: .2px;
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mss-security-orange); flex: none;
  box-shadow: 0 0 0 0 rgba(253,118,41,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(253,118,41,.55)} 70%{box-shadow:0 0 0 8px rgba(253,118,41,0)} 100%{box-shadow:0 0 0 0 rgba(253,118,41,0)} }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 40px; z-index: 30;
  background: rgba(3, 25, 57, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__name { color: #fff; font-weight: 700; letter-spacing: .3px; font-size: 1.02rem; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; color: var(--mss-warm-off-white);
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; cursor: pointer; font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-toggle:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(253,118,41,.20), transparent 58%),
    linear-gradient(180deg, var(--mss-deep-navy) 0%, #062350 100%);
  padding: clamp(60px, 9vw, 110px) 0 clamp(72px, 11vw, 120px);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__text { max-width: 600px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.6px;
  font-size: .76rem; font-weight: 700; color: var(--mss-security-orange); margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.3rem, 5.6vw, 4rem); color: #fff; font-weight: 800; letter-spacing: -.5px; }
.hero__subtitle { margin: 20px 0 32px; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(244,241,236,.86); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 30px 0 0; }
.hero__trust li { position: relative; padding-inline-start: 24px; font-size: .95rem; color: rgba(244,241,236,.9); }
.hero__trust li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--mss-security-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero__visual { display: grid; place-items: center; }
.hero__badge {
  width: min(360px, 78%); aspect-ratio: 1; border-radius: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.hero__badge img { width: 58%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.35)); }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--light { background: var(--mss-warm-off-white); }
.section--soft  {
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(253,118,41,.16), transparent 60%),
    linear-gradient(180deg, var(--mss-deep-navy) 0%, #062350 100%);
  color: #fff;
}
.section--navy  { background: var(--mss-deep-navy); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__title { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -.4px; }
.section__title--light { color: #fff; }
.section__lead { margin: 16px 0 0; font-size: 1.1rem; color: var(--mss-charcoal-slate); }
.section--soft .section__title { color: #fff; }
.section--soft .section__lead { color: rgba(244,241,236,.85); }
.section__lead--light { color: rgba(244,241,236,.85); }

/* ---------- Category cards (makhzny-style grid) ---------- */
.cats { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.cat {
  background: #fff; border: 1px solid rgba(184,191,202,.5); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(253,118,41,.4); }
.cat__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(253,118,41,.12); color: var(--mss-security-orange); margin-bottom: 18px;
}
.cat h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cat p { margin: 0; font-size: 1rem; color: var(--mss-charcoal-slate); }

/* ---------- Feature cards (on navy) ---------- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: 28px 24px;
}
.feature__icon {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(253,118,41,.18); color: var(--mss-security-orange); margin-bottom: 16px;
}
.feature h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: .95rem; color: rgba(244,241,236,.78); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  background: #fff; border: 1px solid rgba(184,191,202,.5); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-card); position: relative;
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--mss-deep-navy); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--mss-charcoal-slate); font-size: .98rem; }

/* ---------- Form ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; }
.form {
  margin-top: 8px; text-align: start;
  background: #fff; border: 1px solid rgba(184,191,202,.5);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > span { font-weight: 600; color: var(--mss-deep-navy); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--mss-charcoal-slate);
  padding: 13px 15px; border: 1.5px solid var(--mss-soft-grey);
  border-radius: 10px; background: var(--mss-warm-off-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mss-security-orange);
  box-shadow: 0 0 0 3px rgba(253,118,41,.18); background: #fff;
}
.field textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: var(--mss-charcoal-slate); margin: 4px 0 8px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--mss-security-orange); flex: none; }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-success { color: #1f7a44; }
.form__status.is-error { color: #b23b1e; }

/* ---------- Footer ---------- */
.footer { background: var(--mss-deep-navy); color: rgba(244,241,236,.8); padding: 56px 0; }
.footer__inner { text-align: center; display: grid; gap: 10px; }
.footer__brand { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-weight: 700; }
.footer__mark { width: 30px; height: 30px; object-fit: contain; }
.footer__line { margin: 4px 0 0; }
.footer__copy { font-size: .85rem; opacity: .7; margin: 6px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .hero__badge { width: min(260px, 64%); }
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cats { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 480px) {
  .brand__name { display: none; }
  .hero__actions .btn { width: 100%; }
}
