:root {
  --navy: #173f4b;
  --gold: #aa955b;
  --gold-dark: #8c763b;
  --ink: #526267;
  --ink-soft: #58676b;
  --line: #d9dfdf;
  --media-bg: #f5f6f4;
  --cream: #fcf9f0;
  --bar-bg: #f6f1e6;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
html, body { margin: 0; padding: 0; }
body { background: #ffffff; color: var(--navy); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.topbar { background: var(--bar-bg); border-bottom: 1px solid #e8e0cf; }
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 15px; color: var(--navy); }
.topbar-logo { width: 22px; height: 23px; object-fit: contain; }
.topbar-fact { font-size: 11.5px; letter-spacing: .08em; color: #8a8f8a; text-transform: uppercase; }

.page { max-width: 980px; margin: 0 auto; padding: 56px 24px 64px; }

.masthead h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 18px; }
.masthead-fact { font-size: 13px; letter-spacing: .09em; color: #8a8f8a; margin: 0 0 30px; }
.masthead-intro { font-size: 16.5px; color: #3d4d52; margin: 0 0 8px; max-width: 620px; }
.masthead-intro-ar { font-size: 15.5px; color: #8c763b; margin: 0 0 8px; max-width: 620px; text-align: left; }

.hero { display: grid; grid-template-columns: 1fr; margin-top: 44px; border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); }
.hero-copy { padding: 28px 0; }
.hero-logo { width: 65px; height: 68px; object-fit: contain; float: left; margin-right: 14px; }
.hero-arabic { font-size: 20px; text-align: left; padding-top: 18px; margin: 0 0 30px; color: var(--navy); min-height: 58px; }
.hero h2 { clear: both; font-size: 38px; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; }
.hero-text { max-width: 420px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.hero-cta { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--navy); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hero-tagline { font-size: 12px; letter-spacing: .04em; margin: 24px 0 0; color: var(--gold-dark); }
.hero-art { position: relative; background: var(--cream); padding: 0 0 12px; display: flex; flex-direction: column; justify-content: center; }
.hero-illustration { display: block; width: 100%; height: auto; }
.hero-art-caption { font-size: 10px; color: #687579; text-align: center; margin: 22px 0 0; }

.group { margin-top: 72px; }
.group-label { font-size: 12.5px; letter-spacing: .07em; color: #7d8a8a; text-transform: uppercase; margin: 0 0 10px; }
.group-heading { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0 0 22px; }
.group-intro { font-size: 15px; color: #3d4d52; max-width: 640px; margin: 0 0 34px; }

.products { display: grid; grid-template-columns: 1fr; gap: 18px; }
.product { border-top: 1px solid #c5b581; padding-top: 16px; }
.product-media { background: var(--media-bg); height: 110px; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; color: var(--gold-dark); }
.product-media svg { width: 98px; height: 80px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media.has-photo { height: auto; aspect-ratio: 4 / 3; padding: 0; position: relative; overflow: hidden; }
.product-media.has-photo img { display: block; }
.product-media.has-photo .product-number { position: absolute; top: 10px; right: 14px; }
.product-number { font-size: 12px; align-self: flex-start; color: #6a777a; }
.product h3, .term h3, .contact h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 16px 0 8px; }
.product p, .term p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

.clients { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.client-name { font-family: var(--serif); font-size: 17px; color: var(--navy); }

.work-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.work-item { margin: 0; border-top: 1px solid #c5b581; padding-top: 16px; }
.work-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--media-bg); }
.work-item figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

.terms { display: grid; gap: 28px; }
.term-small { color: var(--gold-dark); font-size: 11px; letter-spacing: .07em; }

.contact { display: grid; gap: 12px; border-top: 1px solid #d8dfdf; padding-top: 4px; }
.contact a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--navy); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-emails { min-width: 0; }
.brief-note { border-left: 2px solid var(--gold); padding-left: 16px; color: var(--ink-soft); margin: 34px 0 0; font-size: 13px; }

.closing { margin-top: 88px; }
.closing p { font-size: 14px; line-height: 1.7; color: #6a7577; margin: 0; }

a:focus-visible { outline: 2px solid #a99053; outline-offset: 5px; }

@media (min-width: 550px) {
  .products { grid-template-columns: 1fr 1fr; gap: 26px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 12px 30px; }
  .contact-emails { grid-column: 1 / -1; }
}
@media (min-width: 850px) {
  .masthead h1 { font-size: 44px; }
  .hero { grid-template-columns: 1.15fr 1fr; }
  .hero-copy { padding: 34px 30px 34px 0; }
  .hero h2 { font-size: 47px; }
  .hero-art { margin: 24px 0 24px 24px; padding: 0 0 14px; }
  .products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .terms { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .contact { grid-template-columns: 1fr 1fr 1.6fr; gap: 24px; }
  .contact-emails { grid-column: auto; }
}

/* Language switcher */
.topbar-right { display: inline-flex; align-items: center; gap: 14px; }
.topbar-lang { font-size: 12.5px; color: var(--navy); text-decoration: none; border: 1px solid #d8cfb8; border-radius: 999px; padding: 3px 12px; }
.topbar-lang:hover { background: #efe7d3; }

/* Arabic version */
.hero-latin { font-size: 15px; letter-spacing: .04em; padding-top: 18px; margin: 0 0 30px; color: var(--navy); min-height: 58px; text-align: right; }
[dir="rtl"] .masthead h1 { letter-spacing: 0; }
[dir="rtl"] .group-label, [dir="rtl"] .masthead-fact, [dir="rtl"] .topbar-fact, [dir="rtl"] .term-small { letter-spacing: 0; }
[dir="rtl"] .hero-logo { float: right; margin-right: 0; margin-left: 14px; }
[dir="rtl"] .brief-note { border-left: none; border-right: 2px solid var(--gold); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .product-media.has-photo .product-number { right: auto; left: 14px; }
[dir="rtl"] .hero h2 { letter-spacing: 0; }
[dir="rtl"] .contact a { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .contact-emails a { direction: ltr; unicode-bidi: embed; }
.hero-tagline-2 { margin-top: 4px; }
[dir="rtl"] .hero-tagline[lang="en"] { text-align: right; }

@media (min-width: 850px) {
  .products { grid-template-columns: repeat(5, 1fr); }
}
.closing a { color: #6a7577; text-underline-offset: 3px; }
