/*
Theme Name: SALA Atelier
Theme URI: https://sala-eg.com
Author: Abdullah Sharif EST.
Description: A bilingual, editorial WordPress theme built exclusively for SALA Ready-Made Garments Industry.
Version: 1.1.4
Text Domain: sala-atelier
*/

@font-face {
  font-family: "Alexandria";
  src: url("assets/fonts/alexandria-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("assets/fonts/alexandria-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d201a;
  --ink-soft: #4f5548;
  --green: #667b4b;
  --green-dark: #34432d;
  --green-pale: #dfe7d8;
  --sand: #e9e0cf;
  --paper: #f7f3ea;
  --cream: #fffdf7;
  --line: rgba(29, 32, 26, .14);
  --shadow: 0 20px 60px rgba(33, 43, 29, .12);
  --radius: 26px;
  --container: min(1180px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  font-synthesis: none;
}
body.rtl { font-family: "Alexandria", Tahoma, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(74px, 9vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(52px, 6vw, 88px) 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-dark); color: var(--cream); }
.section--sand { background: var(--sand); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; color: var(--green); font-size: 12px;
  font-weight: 800; letter-spacing: .19em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section--green .eyebrow { color: #cbd7bd; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
h1, h2 { font-family: "Alexandria", "Segoe UI", sans-serif; }
body.rtl h1, body.rtl h2 { font-family: "Alexandria", Tahoma, sans-serif; font-weight: 700; letter-spacing: 0; }
body.rtl h3, body.rtl h4 { letter-spacing: 0; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(37px, 4.5vw, 62px); }
h3 { font-size: clamp(22px, 2.3vw, 30px); }
.lead { margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 21px); max-width: 720px; }
.section--green .lead { color: rgba(255, 253, 247, .74); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 750; transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--light { background: var(--cream); color: var(--green-dark); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-weight: 800; }
.text-link::after { content: "↗"; font-size: 18px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; color: #fff;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.site-header.is-scrolled, body:not(.home) .site-header {
  background: rgba(247, 243, 234, .92); color: var(--ink);
  backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 155px; }
.brand img { width: 142px; max-height: 52px; object-fit: contain; }
.site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
body:not(.home) .site-header .brand img { filter: none; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); font-size: 14px; font-weight: 700; }
.main-nav a { position: relative; padding: 32px 0; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 25px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { border: 1px solid currentColor; border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 900; }
.menu-toggle { display: none; background: none; border: 0; color: currentColor; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

/* Hero */
.hero { min-height: 100svh; display: grid; align-items: end; color: #fff; background: #283324; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(20,29,18,.92) 0%, rgba(20,29,18,.64) 45%, rgba(20,29,18,.18) 76%),
    url("assets/images/generated-hero-v2.webp") center/cover;
  transform: scale(1.03);
}
body.rtl .hero::before { transform: scale(1.03) scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1px); background-size: 4px 4px; opacity: .15; }
.hero-content { position: relative; z-index: 1; padding: 170px 0 80px; }
.hero .eyebrow { color: #d9e2ce; }
.hero h1 { max-width: 900px; }
.hero h1 span { color: #cbd9ba; font-style: italic; }
body.rtl .hero h1 { max-width: 820px; line-height: 1.24; }
.hero-copy { margin: 26px 0 34px; max-width: 660px; font-size: clamp(18px, 1.8vw, 22px); color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 76px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-stat { padding: 25px 24px 0 0; }
.hero-stat strong { display: block; font: 600 clamp(28px, 3vw, 42px)/1 Georgia, serif; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

.intro-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 8vw, 120px); align-items: center; }
.intro-mark { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; position: relative; }
.intro-mark::after { content: ""; width: 96px; height: 96px; border-radius: 50%; background: var(--green-pale); }
.intro-mark span { position: absolute; z-index: 1; font: 700 34px Georgia, serif; color: var(--green-dark); }
.intro-copy h2 { max-width: 800px; }

.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-orb { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); margin-bottom: 28px; font-size: 23px; }
.card p { color: var(--ink-soft); margin: 14px 0 0; }
.product-card { min-height: 440px; padding: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.product-card::after { content: attr(data-num); position: absolute; inset: auto -8px -34px auto; color: rgba(102,123,75,.08); font: 700 150px/1 Alexandria,sans-serif; pointer-events: none; }
.product-visual { margin: 0; height: 255px; overflow: hidden; background: #eee7db; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .55s ease; }
.product-card:hover .product-visual img { transform: scale(1.035); }
.product-card__body { padding: 25px 27px 30px; position: relative; z-index: 1; }
.product-card__body h3 { font-size: clamp(20px,1.7vw,26px); }
.product-card__body p { font-size: 14px; line-height: 1.7; }

.story-panel { background: var(--green-dark); color: #fff; border-radius: 38px; padding: clamp(36px, 6vw, 78px); overflow: hidden; position: relative; }
.story-panel::after { content: "S"; position: absolute; right: -20px; top: -80px; font: 700 420px/1 Georgia,serif; color: rgba(255,255,255,.035); }
.story-flow { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 50px; position: relative; z-index: 1; }
.story-step { padding: 10px 30px; border-inline-start: 1px solid rgba(255,255,255,.2); }
.story-step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.story-step b { display: block; color: #cbd9ba; font-size: 12px; letter-spacing: .15em; margin-bottom: 13px; }
.story-step h3 { margin-bottom: 10px; }
.story-step p { color: rgba(255,255,255,.68); margin: 0; }

.media-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.media-card { min-height: 520px; border-radius: var(--radius); overflow: hidden; position: relative; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.media-card:hover img { transform: scale(1.04); }
.media-card--stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.media-card--stack .media-card { min-height: 250px; }
.media-label { position: absolute; inset: auto 18px 18px; padding: 12px 16px; background: rgba(255,253,247,.91); border-radius: 14px; backdrop-filter: blur(10px); }
.media-label b { display: block; }
.media-label span { color: var(--ink-soft); font-size: 13px; }
.wide-visual { position: relative; min-height: clamp(340px, 52vw, 650px); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); }
.wide-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-visual::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(22,28,20,.55)); }
.wide-visual__caption { position: absolute; z-index: 1; inset: auto 28px 25px; color: #fff; max-width: 600px; }
.wide-visual__caption h3 { font-family: Georgia,serif; font-size: clamp(26px,3vw,40px); }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 38px 30px; background: var(--cream); border-inline-start: 1px solid var(--line); }
.metric:first-child { border-inline-start: 0; }
.metric strong { display: block; font: 600 50px/1 Georgia,serif; color: var(--green); }
.metric span { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 14px; }

.model-card { border-radius: var(--radius); padding: 38px; border: 1px solid var(--line); min-height: 310px; background: var(--cream); }
.model-card.featured { background: var(--green); color: #fff; border-color: var(--green); }
.model-card .model-tag { font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.model-card h3 { font-family: Georgia,serif; font-size: 38px; margin: 30px 0 18px; }
.model-card p { color: var(--ink-soft); }
.model-card.featured p { color: rgba(255,255,255,.75); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(35px,5vw,65px); background: var(--green); color: #fff; border-radius: 34px; }
.cta-band h2 { font-size: clamp(34px,4vw,56px); max-width: 720px; }

/* Inner pages */
.page-hero { padding: 185px 0 88px; background: var(--green-dark); color: #fff; overflow: hidden; position: relative; }
.page-hero::after { content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -110px; top: -220px; box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.018); }
.page-hero h1 { max-width: 900px; font-size: clamp(46px,6vw,82px); }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.72); font-size: 20px; }
.founder-card { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; }
.founder-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 5px solid var(--paper); }
.founder-card small { color: var(--green); font-weight: 800; letter-spacing: .08em; }
.timeline { counter-reset: step; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline-item::before { counter-increment: step; content: "0" counter(step); color: var(--green); font: 700 25px Georgia,serif; }
.cert-card img { border-radius: 16px; width: 100%; aspect-ratio: .86; object-fit: cover; }
.cert-card h3 { margin-top: 20px; font-size: 20px; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,7vw,100px); }
.contact-list { display: grid; gap: 16px; margin-top: 35px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item small { display: block; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.contact-item a, .contact-item span { font-size: 20px; font-weight: 650; }
.contact-form { background: var(--cream); padding: clamp(28px,5vw,54px); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field--full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px 16px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(102,123,75,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.form-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: var(--green-pale); color: var(--green-dark); }
.hp-field { position: absolute !important; left: -9999px !important; }

/* Footer */
.site-footer { background: #20281d; color: #fff; padding: 80px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; }
.footer-brand img { width: 170px; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 380px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: #cbd9ba; margin-bottom: 20px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.7); margin: 10px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: flex-start; gap: 20px; color: rgba(255,255,255,.45); font-size: 12px; }
.phone-link { direction: ltr; unicode-bidi: isolate; text-align: left; width: max-content; }
.mobile-dock { display: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  body { padding-bottom: 74px; }
  .main-nav { position: fixed; inset: 88px 18px auto; display: none; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 15px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 13px 15px; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .mobile-dock {
    display: grid; grid-template-columns: repeat(4,1fr); position: fixed; z-index: 1200;
    inset: auto 10px 10px; min-height: 64px; padding: 7px;
    background: rgba(255,253,247,.94); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 12px 40px rgba(24,30,21,.19); backdrop-filter: blur(18px);
  }
  .mobile-dock a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
  .mobile-dock svg { width: 21px; height: 21px; stroke: var(--green-dark); fill: none; stroke-width: 1.8; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 21px; }
  .header-inner { height: 74px; }
  .brand img { width: 120px; }
  .main-nav { inset: 74px 12px auto; }
  .hero-content { padding: 130px 0 45px; }
  .hero::before { background-position: 63% center; }
  body.rtl .hero::before { background-position: left center; }
  .hero h1 { font-size: clamp(42px,13vw,64px); }
  body.rtl .hero h1 { line-height: 1.25; }
  .hero-footer { grid-template-columns: repeat(2,1fr); margin-top: 48px; }
  .hero-stat { padding: 19px 12px 0 0; }
  .intro-grid, .contact-layout, .grid--2, .grid--3, .grid--4, .media-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .product-card { min-height: 0; }
  .product-visual { height: auto; aspect-ratio: 4 / 3; }
  .story-flow { grid-template-columns: 1fr; }
  .story-step { padding: 24px 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .story-step:first-child { border-top: 0; }
  .media-card { min-height: 360px; }
  .media-card--stack { grid-template-rows: auto; }
  .media-card--stack .media-card { min-height: 260px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric { border-top: 1px solid var(--line); padding: 28px 22px; }
  .metric:nth-child(odd) { border-inline-start: 0; }
  .metric:nth-child(-n+2) { border-top: 0; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 135px 0 65px; }
  .founder-card { grid-template-columns: 95px 1fr; }
  .founder-card img { width: 95px; height: 95px; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
