/* ==========================================================================
   Sorouh Real Estate — main stylesheet
   Every brand colour is a custom property in :root. To apply an updated
   identity guide, change the values below; nothing else needs to move.
   ========================================================================== */

:root {
  /* Brand palette — sampled from the Sorouh logo and social media posts */
  --color-primary: #4C192C;       /* logo wine: header, primary buttons, headings */
  --color-primary-dark: #33101E;  /* hover states, footer background */
  --color-plum: #7D3253;          /* soft glow on dark brand surfaces */
  --color-accent: #E6BCA6;        /* rose gold: text and lines on dark backgrounds only */
  --color-accent-deep: #9A6A57;   /* rose gold for thin lines/icons on light backgrounds (decoration only) */
  --color-cream: #F7F2DE;         /* logo cream: main text on dark backgrounds */
  --color-cream-muted: #D9C7C4;   /* secondary text on dark backgrounds */
  --color-sand: #F3EAE4;          /* section backgrounds, icon tiles */
  --color-bg: #FBF8F5;            /* page background */
  --color-surface: #FFFFFF;       /* cards */
  --color-text: #241419;          /* main text */
  --color-muted: #6A5A60;         /* secondary text */
  --color-line: rgba(76, 25, 44, 0.12);
  --color-line-dark: rgba(230, 188, 166, 0.22);

  --font-sans: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(36, 20, 25, 0.05);
  --shadow: 0 1px 2px rgba(36, 20, 25, 0.04), 0 14px 36px -18px rgba(76, 25, 44, 0.28);

  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: clamp(64px, 9vw, 112px);
  --focus-ring: var(--color-primary);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body {
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

address {
  font-style: normal;
}

a[href^="tel:"] {
  white-space: nowrap;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark {
  --focus-ring: var(--color-accent);
}

/* Letter-spacing breaks Arabic letter joining; only ever apply it to Latin text */
html[lang="en"] .eyebrow,
html[lang="en"] .footer-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* A block written in the other language keeps its own text direction
   but still lines up with the page (Arabic mode: right, English mode: left). */
html[dir="rtl"] [dir="ltr"] {
  text-align: right;
}

html[dir="ltr"] [dir="rtl"] {
  text-align: left;
}

/* Shown only in English mode (English equivalents beside the Arabic legal details) */
.only-en {
  display: none !important;
}

html[lang="en"] .only-en {
  display: block !important;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--light {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--light:hover {
  background: var(--color-cream);
}

.btn--ghost {
  border-color: rgba(230, 188, 166, 0.5);
  color: var(--color-cream);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  background: rgba(230, 188, 166, 0.1);
}

.btn--wine {
  background: var(--color-primary);
  color: var(--color-cream);
}

.btn--wine:hover {
  background: var(--color-primary-dark);
}

.btn--outline {
  border-color: rgba(76, 25, 44, 0.35);
  color: var(--color-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-sand);
}

/* ---------- Brand surface (wine gradient, soft glow, fine grid, grain) ---------- */

.brand-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-cream);
  background:
    radial-gradient(65% 75% at 88% 0%, rgba(140, 58, 96, 0.75), transparent 70%),
    linear-gradient(165deg, #58203A 0%, var(--color-primary) 48%, #3A1222 100%);
}

.brand-surface::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(230, 188, 166, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 188, 166, 0.06) 1px, transparent 1px);
  background-size: 168px 168px;
  transform: rotate(-14deg);
  pointer-events: none;
}

.brand-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Under-development notice ---------- */

.notice {
  background: var(--color-sand);
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.875rem;
  line-height: 1.6;
}

.notice[hidden] {
  display: none;
}

.notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 8px;
}

.notice__text {
  margin: 0;
  text-align: center;
}

.notice__text a {
  font-weight: 600;
}

.notice__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-accent-deep);
}

.notice__close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-inline-start: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.notice__close:hover {
  background: rgba(76, 25, 44, 0.08);
}

.notice__close .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  color: var(--color-cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 38px;
}

.site-nav {
  flex: 1;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-cream-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-cream);
  background: rgba(247, 242, 222, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--color-line-dark);
  border-radius: 10px;
  font-size: 0.8125rem;
}

.lang-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-cream-muted);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--color-cream);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-primary);
}

.lang-switch__sep {
  width: 1px;
  height: 14px;
  margin-inline: 2px;
  background: var(--color-line-dark);
}

.btn-call {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

.nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  .brand img {
    height: 34px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-line-dark);
    border-radius: 10px;
    background: transparent;
    color: var(--color-cream);
    cursor: pointer;
  }

  .nav-toggle .icon {
    width: 22px;
    height: 22px;
  }

  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  /* Without JS the menu simply wraps under the logo; with JS it becomes a drop-down */
  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: calc(-1 * var(--gutter));
    display: none;
    padding: 8px var(--gutter) 20px;
    background: var(--color-primary);
    border-top: 1px solid var(--color-line-dark);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
  }

  .js .site-header.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-line-dark);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 519px) {
  .btn-call {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .btn-call__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  gap: 8px;
  align-items: end;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  flex: none;
  background: var(--color-accent-deep);
}

.on-dark .eyebrow {
  color: var(--color-accent);
}

.on-dark .eyebrow::before {
  background: var(--color-accent);
}

.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.15;
  color: var(--color-cream);
}

.hero__alt {
  display: block;
  margin-top: 12px;
  font-size: 0.34em;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__alt:lang(ar) {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.4em;
}

.hero__statement {
  max-width: 28ch;
  margin-bottom: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-accent);
}

.hero__statement strong {
  display: block;
  font-weight: 700;
}

.hero__lead {
  max-width: 50ch;
  margin: 24px 0 0;
  color: var(--color-cream-muted);
}

@media (min-width: 960px) {
  .hero__lead {
    margin-top: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-line-dark);
  list-style: none;
  font-size: 0.9375rem;
  color: var(--color-cream-muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  color: var(--color-accent);
}

.hero__meta a {
  text-decoration: none;
}

.hero__meta a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

.hero__photo {
  margin: clamp(40px, 6vw, 72px) 0 0;
  overflow: hidden;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius);
  background: #5C1533;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.hero__photo img {
  width: 100%;
  height: auto;
}

/* On phones, trim the empty backdrop at the sides so the people read larger */
@media (max-width: 639px) {
  .hero__photo img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
}

.section--sand {
  background: var(--color-sand);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-title {
  margin: 16px 0 14px;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  color: var(--color-primary);
}

.on-dark .section-title {
  color: var(--color-cream);
}

.section-lead {
  margin: 0;
  color: var(--color-muted);
}

.on-dark .section-lead {
  color: var(--color-cream-muted);
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: stretch;
  }
}

.about__copy > p {
  color: var(--color-muted);
}

.legal-card {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-inline-start: 3px solid var(--color-accent-deep);
  border-radius: var(--radius);
}

.legal-card dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
}

.legal-card dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.6;
}

.legal-card dd .only-en {
  font-weight: 500;
  color: var(--color-text);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 380px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
}

.quote-card__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-card__brand img {
  width: auto;
  height: 44px;
}

.quote-card__brand span {
  width: 1px;
  height: 40px;
  background: var(--color-line-dark);
}

.quote-card__brand p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-cream-muted);
}

.quote-card blockquote {
  margin: 0;
  color: var(--color-accent);
}

.quote-card__ar {
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 300;
  line-height: 1.6;
}

.quote-card__en {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(154, 106, 87, 0.45);
  background: var(--color-sand);
  color: var(--color-primary);
}

.service-card__icon .icon {
  width: 26px;
  height: 26px;
}

.service-card__num {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.service-card p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ---------- Why us ---------- */

.why__grid {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why__item {
  padding-block: 28px;
  border-top: 1px solid var(--color-line-dark);
}

.why__item .icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
}

.why__item h3 {
  margin: 18px 0 6px;
  font-size: 1.1875rem;
  color: var(--color-cream);
}

.why__item p {
  margin: 0;
  color: var(--color-cream-muted);
}

@media (min-width: 900px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why__item {
    padding: 8px 36px;
    border-top: 0;
    border-inline-start: 1px solid var(--color-line-dark);
  }

  .why__item:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.contact-card {
  padding: clamp(22px, 4vw, 40px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-list {
  display: grid;
  gap: 26px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .contact-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-item--wide {
    grid-column: 1 / -1;
  }
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-sand);
  color: var(--color-primary);
}

.contact-item__body {
  min-width: 0;
}

.contact-item__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
}

.contact-item__value {
  display: block;
  margin: 2px 0 0;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

a.contact-item__value {
  color: var(--color-primary);
  text-decoration: none;
}

a.contact-item__value:hover {
  text-decoration: underline;
}

.contact-item__sub {
  display: block;
  margin: 2px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
}

@media (max-width: 519px) {
  .contact-actions .btn {
    flex: 1 1 100%;
  }
}

.map-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 28px;
  border-radius: var(--radius);
}

.map-box__streets {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--color-accent);
}

.map-box__pin {
  position: absolute;
  top: 34%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(230, 188, 166, 0.14), 0 0 0 22px rgba(230, 188, 166, 0.06);
}

.map-box__pin .icon {
  width: 26px;
  height: 26px;
}

.map-box__label {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.map-box address {
  font-weight: 600;
  line-height: 1.6;
}

.map-box address span {
  display: block;
}

.map-box address .map-box__sub {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-cream-muted);
}

.map-box__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-line-dark);
  font-size: 0.8125rem;
  color: var(--color-cream-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 28px;
  background: var(--color-primary-dark);
  color: var(--color-cream-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1.35fr 0.7fr;
    gap: 48px;
  }
}

.footer-logo {
  display: inline-flex;
  border-radius: 6px;
}

.footer-logo img {
  width: auto;
  height: 50px;
}

.footer-legal {
  margin: 20px 0 0;
}

.footer-legal span {
  display: block;
}

.footer-legal__ar {
  font-weight: 600;
  color: var(--color-cream);
}

.footer-reg {
  margin: 14px 0 0;
  font-size: 0.875rem;
}

.footer-reg span {
  display: block;
}

.footer-title {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.footer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.footer-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: var(--color-accent);
}

.footer-list address span {
  display: block;
}

.footer-list a,
.footer-links a {
  text-decoration: none;
}

.footer-list a:hover,
.footer-links a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line-dark);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Inner pages (privacy, 404) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px);
}

.page-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-cream);
}

.page-hero p {
  margin: 0;
  color: var(--color-cream-muted);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--color-text);
}

.prose ul {
  padding-inline-start: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--color-accent-deep);
}

.prose a {
  color: var(--color-primary);
  font-weight: 600;
}

.prose .legal-card {
  margin-top: 0;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-block: 72px;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent);
}

.error-page h1 {
  margin: 20px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-cream);
}

.error-page p {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--color-cream-muted);
}

.error-page .hero__actions {
  justify-content: center;
}

/* ---------- Scroll reveal (enabled by main.js, never under reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--d, 0) * 90ms);
  }

  .reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .service-card:hover {
    transform: none;
  }
}
