/* Framefolio — Zgen-inspired creative agency (light). */
.theme-frame-v2{
  --frame-primary:#392D6A;
  --frame-lime:#DEFE5D;
  --frame-violet:#7D5DFE;
  --frame-navy:#09002E;
  --frame-ink:#232323;
  --frame-gray:#555555;
  --frame-line:#E2E2E2;
  --frame-edge:clamp(20px,6vw,120px);
  --theme-bg:#ffffff;
  --theme-surface:#ffffff;
  --theme-elevated-surface:#ffffff;
  --theme-text:var(--frame-ink);
  --theme-muted:var(--frame-gray);
  --theme-accent:var(--frame-primary);
  --theme-accent-contrast:#ffffff;
  --theme-radius:30px;
  --theme-radius-card:20px;
  --theme-radius-button:30px;
  --theme-radius-image:20px;
  --theme-heading:"Unbounded","Tajawal",system-ui,sans-serif;
  --theme-body:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif;
  --theme-section-padding-scale:.9;
  background:#fff;
  color:var(--frame-ink);
  font-family:var(--theme-body);
}
.theme-frame-v2[dir=rtl]{
  --theme-heading:"Tajawal","Unbounded",system-ui,sans-serif;
  --theme-body:"IBM Plex Sans Arabic","Inter",system-ui,sans-serif;
}
.theme-frame-v2 :is(.theme-brand,.theme-hero h1,.theme-section h2,.theme-split h2,.theme-contact h2,.theme-footer strong,.theme-products h3,.theme-services h3,.theme-inquiry-section h2,.theme-quote .theme-kicker,.theme-team h3){
  font-family:var(--theme-heading);
  color:var(--frame-primary);
}

/* —— Buttons —— */
.theme-frame-v2 .theme-button{
  border-radius:30px;
  background:var(--frame-violet);
  color:#fff!important;
  border:0;
  font-weight:500;
  letter-spacing:.02em;
  padding:20px 40px;
  min-height:auto;
  font-size:16px;
}
.theme-frame-v2 .theme-button:hover{background:var(--frame-primary);transform:none}
.theme-frame-v2 .theme-button-invert{
  background:var(--frame-lime);
  color:var(--frame-navy)!important;
}
.theme-frame-v2 .theme-button-invert:hover{background:#fff;color:var(--frame-primary)!important}
.theme-frame-v2 .theme-text-link{
  color:var(--frame-primary);
  font-weight:500;
  text-decoration:none;
}

/* —— Header (same chrome on every page) —— */
.theme-frame-v2 .theme-header,
.theme-frame-v2 .theme-header-standard{
  height:auto;
  padding:22px var(--frame-edge);
  background:#fff;
  border:0;
  border-bottom:1px solid var(--frame-line);
  gap:24px;
  position:sticky;
  inset-block-start:0;
  inset-inline:0;
  z-index:20;
}
.theme-frame-v2 .theme-brand{
  font-size:22px;
  font-weight:500;
  letter-spacing:-.03em;
  color:var(--frame-primary);
}
.theme-frame-v2 .theme-header nav{gap:28px;justify-content:flex-end;flex:1}
.theme-frame-v2 .theme-header nav>a:not(.theme-button):not(.theme-language){
  font-size:15px;
  font-weight:500;
  color:var(--frame-ink);
  text-transform:capitalize;
}
.theme-frame-v2 .theme-header nav>a[aria-current=page]{color:var(--frame-violet)}
.theme-frame-v2 .theme-header .theme-button,
.theme-frame-v2 .theme-header .theme-button-small{
  padding:14px 28px;
  font-size:14px;
}
.theme-frame-v2 .theme-language{
  min-width:44px;
  min-height:44px;
  border:1px solid var(--frame-line);
  border-radius:30px;
  color:var(--frame-ink);
}

/* —— Home hero —— */
.theme-frame-v2 .theme-hero,
.theme-frame-v2 .theme-hero-split{
  min-height:auto;
  align-items:center;
  gap:clamp(24px,4vw,64px);
  padding:clamp(40px,6vw,80px) var(--frame-edge);
  background:#fff;
}
.theme-frame-v2 .theme-hero-copy{padding:0;max-width:720px}
.theme-frame-v2 .theme-hero .theme-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--frame-lime);
  color:var(--frame-navy);
  border-radius:30px;
  padding:8px 16px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-family:var(--theme-body);
}
.theme-frame-v2 .theme-hero h1{
  font-size:clamp(42px,6.4vw,92px);
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.03em;
  margin:18px 0 20px;
  max-width:14ch;
}
.theme-frame-v2 .theme-hero p{
  font-size:18px;
  line-height:1.6;
  color:var(--frame-gray);
  max-width:42ch;
  margin:0 0 28px;
}
.theme-frame-v2 .theme-hero-proof{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}
.theme-frame-v2 .theme-hero-proof span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  background:var(--frame-lime);
  color:var(--frame-navy);
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:16px 10px;
  border-radius:30px;
}
.theme-frame-v2[dir=rtl] .theme-hero-proof span{transform:none}
.theme-frame-v2 .theme-hero-image{
  min-height:520px;
  border-radius:40px;
  overflow:hidden;
  background:var(--frame-primary);
}
.theme-frame-v2 .theme-hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* —— Inner-page breadcrumb hero —— */
.theme-frame-v2 .theme-hero-compact{
  position:relative;
  min-height:380px;
  display:grid;
  align-items:end;
  padding:120px var(--frame-edge) 56px;
  color:#fff;
  isolation:isolate;
}
.theme-frame-v2 .theme-hero-compact .theme-hero-copy{
  position:relative;
  z-index:2;
  max-width:780px;
  color:#fff;
}
.theme-frame-v2 .theme-hero-compact h1{color:#fff;max-width:18ch;font-size:clamp(36px,5vw,70px)}
.theme-frame-v2 .theme-hero-compact p{color:#e8e8e8}
.theme-frame-v2 .theme-hero-compact .theme-kicker{background:var(--frame-lime)}
.theme-frame-v2 .theme-hero-compact .theme-hero-image{
  position:absolute;
  inset:0;
  min-height:100%;
  border-radius:0;
  z-index:0;
}
.theme-frame-v2 .theme-hero-compact .theme-hero-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#09002ecc 0%,#09002e88 55%,#09002ed4 100%);
}
.theme-frame-v2 .theme-hero-compact .theme-button{position:relative;z-index:2}

/* —— Shared section heads —— */
.theme-frame-v2 .theme-section{
  width:100%;
  padding:90px var(--frame-edge);
  background:#fff;
}
.theme-frame-v2 .theme-section-head{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:48px;
}
.theme-frame-v2 .theme-section-head>span{
  font-size:14px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--frame-violet);
  font-family:var(--theme-body);
}
.theme-frame-v2 .theme-section h2,
.theme-frame-v2 .theme-split h2,
.theme-frame-v2 .theme-inquiry-section h2,
.theme-frame-v2 .theme-contact h2{
  font-size:clamp(32px,4.2vw,56px);
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1.15;
}

/* —— Client logos —— */
.theme-frame-v2 .theme-gallery-section{padding-block:40px}
.theme-frame-v2 .theme-gallery-section .theme-section-head{display:none}
.theme-frame-v2 .theme-gallery-strip{
  display:flex;
  flex-wrap:nowrap;
  gap:48px;
  align-items:center;
  overflow:hidden;
  justify-content:space-between;
}
.theme-frame-v2 .theme-gallery-strip figure{
  margin:0;
  flex:1 1 120px;
  display:grid;
  place-items:center;
  opacity:.72;
  filter:grayscale(1);
}
.theme-frame-v2 .theme-gallery-strip img{max-height:40px;width:auto;object-fit:contain}
.theme-frame-v2 .theme-gallery-strip figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* —— About split —— */
.theme-frame-v2 .theme-split,
.theme-frame-v2 .theme-split-reverse{
  padding:90px var(--frame-edge);
  gap:clamp(28px,5vw,72px);
  align-items:center;
  background:#fff;
}
.theme-frame-v2 .theme-split-media{
  border-radius:40px;
  overflow:hidden;
  min-height:420px;
}
.theme-frame-v2 .theme-split-media img{width:100%;height:100%;object-fit:cover}
.theme-frame-v2 .theme-kicker{
  color:var(--frame-violet);
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:600;
  font-family:var(--theme-body);
}
.theme-frame-v2 .theme-split-copy p{
  color:var(--frame-gray);
  font-size:16px;
  line-height:1.7;
  max-width:46ch;
}

/* —— Numbered services —— */
.theme-frame-v2 .theme-services-section-numbered .theme-services{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  border:0;
}
.theme-frame-v2 .theme-services-section-numbered .theme-services article{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:24px;
  align-items:center;
  padding:28px 0;
  border:0;
  border-bottom:1px solid var(--frame-line);
  background:transparent;
}
.theme-frame-v2 .theme-services-section-numbered .theme-service-media{
  width:140px;
  height:90px;
  border-radius:16px;
  overflow:hidden;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease;
}
.theme-frame-v2 .theme-services-section-numbered article:hover .theme-service-media{
  opacity:1;
  transform:none;
}
.theme-frame-v2 .theme-services-section-numbered .theme-service-media img{width:100%;height:100%;object-fit:cover}
.theme-frame-v2 .theme-services-section-numbered .theme-service-copy{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px 28px;
  align-items:center;
  padding:0;
}
.theme-frame-v2 .theme-services-section-numbered .theme-service-index{
  font-family:var(--theme-heading);
  font-size:18px;
  color:var(--frame-violet);
}
.theme-frame-v2 .theme-services-section-numbered .theme-arrow{
  grid-column:3;
  grid-row:1 / span 2;
  width:28px;
  height:28px;
  stroke:var(--frame-primary);
}
.theme-frame-v2 .theme-services-section-numbered h3{
  font-size:clamp(22px,2.4vw,32px);
  margin:0;
}
.theme-frame-v2 .theme-services-section-numbered p{
  grid-column:2;
  margin:0;
  color:var(--frame-gray);
}
.theme-frame-v2 .theme-services-section-numbered .theme-text-link{display:none}

/* —— Portfolio cards —— */
.theme-frame-v2 .theme-products-section .theme-products{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px 28px;
  border:0;
}
.theme-frame-v2 .theme-products-section .theme-products article{
  display:grid;
  gap:16px;
  border:0;
  background:transparent;
  padding:0;
}
.theme-frame-v2 .theme-products-section .theme-product-index{display:none}
.theme-frame-v2 .theme-product-media{
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:var(--frame-navy);
}
.theme-frame-v2 .theme-product-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.theme-frame-v2 .theme-products article:hover .theme-product-media img{transform:scale(1.04)}
.theme-frame-v2 .theme-products h3{font-size:22px;margin:0}
.theme-frame-v2 .theme-product-meta span{
  display:inline-flex;
  padding:6px 14px;
  border:1px solid var(--frame-line);
  border-radius:30px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--frame-primary);
}
.theme-frame-v2 .theme-products p{display:none}

/* —— Testimonials —— */
.theme-frame-v2 .theme-quote,
.theme-frame-v2 .theme-quote-featured{
  padding:90px var(--frame-edge);
  background:#f7f6fb;
  gap:48px;
  align-items:center;
}
.theme-frame-v2 .theme-quote-image{
  width:min(100%,420px);
  border-radius:40px;
  object-fit:cover;
}
.theme-frame-v2 .theme-quote blockquote{
  font-size:clamp(22px,2.4vw,32px);
  font-family:var(--theme-heading);
  color:var(--frame-primary);
  line-height:1.35;
}
.theme-frame-v2 .theme-quote cite,
.theme-frame-v2 .theme-quote figcaption{color:var(--frame-gray)}

/* —— Stats —— */
.theme-frame-v2 .theme-stats{
  padding:64px var(--frame-edge);
  background:var(--frame-primary);
  color:#fff;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:32px;
}
.theme-frame-v2 .theme-stats strong{
  display:block;
  font-family:var(--theme-heading);
  font-size:clamp(36px,4vw,56px);
  font-weight:500;
  color:var(--frame-lime);
}
.theme-frame-v2 .theme-stats span{color:#e8e8e8;font-size:15px}

/* —— CTA band —— */
.theme-frame-v2 .theme-contact,
.theme-frame-v2 .theme-contact-band{
  padding:100px var(--frame-edge);
  background:var(--frame-navy);
  color:#fff;
  text-align:center;
  display:grid;
  justify-items:center;
  gap:28px;
}
.theme-frame-v2 .theme-contact h2{color:#fff;max-width:16ch}
.theme-frame-v2 .theme-contact p{color:#cfc9e4;max-width:42ch}
.theme-frame-v2 .theme-contact .theme-kicker{color:var(--frame-lime)}

/* —— Team —— */
.theme-frame-v2 .theme-team{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
.theme-frame-v2 .theme-team article{
  background:#fff;
  border:0;
  padding:0;
}
.theme-frame-v2 .theme-team img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:24px;
  background:#eee;
}
.theme-frame-v2 .theme-team h3{margin:16px 0 4px;font-size:18px}
.theme-frame-v2 .theme-team p{color:var(--frame-gray);margin:0}

/* —— Contact form + location —— */
.theme-frame-v2 .theme-inquiry-section{
  padding:90px var(--frame-edge);
  display:grid;
  grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);
  gap:48px;
  align-items:start;
}
.theme-frame-v2 .theme-inquiry{
  display:grid;
  gap:18px;
}
.theme-frame-v2 .theme-inquiry label span{
  font-size:13px;
  font-weight:600;
  color:var(--frame-primary);
}
.theme-frame-v2 .theme-inquiry input,
.theme-frame-v2 .theme-inquiry textarea{
  width:100%;
  border:1px solid var(--frame-line);
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
}
.theme-frame-v2 .theme-location-section{padding-top:20px;padding-bottom:90px}
.theme-frame-v2 .theme-location{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:stretch;
}
.theme-frame-v2 .theme-map{
  border-radius:24px;
  background:var(--frame-primary);
  color:var(--frame-lime);
  display:grid;
  place-items:center;
  min-height:240px;
  font-family:var(--theme-heading);
}

/* —— Footer (same chrome on every page) —— */
.theme-frame-v2 .theme-footer,
.theme-frame-v2 .theme-footer-columns{
  background:var(--frame-navy);
  color:#fff;
  padding:64px var(--frame-edge) 40px;
  grid-template-columns:minmax(180px,.9fr) minmax(220px,1.2fr) auto;
  gap:40px;
  border:0;
}
.theme-frame-v2 .theme-footer strong{color:#fff;font-size:24px;font-weight:500}
.theme-frame-v2 .theme-footer p{color:#cfc9e4;max-width:280px;opacity:1}
.theme-frame-v2 .theme-footer nav:not(.theme-footer-social){
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 28px;
}
.theme-frame-v2 .theme-footer nav a{color:#fff}
.theme-frame-v2 .theme-footer-social .theme-social-icon{
  width:32px;
  height:32px;
  background:transparent;
  color:var(--frame-lime);
}
.theme-frame-v2 .theme-footer-social a:hover .theme-social-icon{
  background:var(--frame-violet);
  color:#fff;
}
.theme-frame-v2 .theme-footer>span{color:#999}

@media(max-width:1100px){
  .theme-frame-v2 .theme-products-section .theme-products,
  .theme-frame-v2 .theme-team,
  .theme-frame-v2 .theme-stats{grid-template-columns:1fr 1fr}
  .theme-frame-v2 .theme-inquiry-section,
  .theme-frame-v2 .theme-location{grid-template-columns:1fr}
}
@media(max-width:900px){
  .theme-frame-v2 .theme-header nav>a:not(.theme-button):not(.theme-language){display:none}
  .theme-frame-v2 .theme-hero,
  .theme-frame-v2 .theme-split{grid-template-columns:1fr}
  .theme-frame-v2 .theme-hero-image{min-height:380px;order:-1}
  .theme-frame-v2 .theme-hero-proof span{writing-mode:horizontal-tb;transform:none}
  .theme-frame-v2 .theme-services-section-numbered .theme-service-media{display:none}
  .theme-frame-v2 .theme-services-section-numbered .theme-service-copy{grid-template-columns:auto 1fr}
  .theme-frame-v2 .theme-gallery-strip{flex-wrap:wrap;justify-content:center}
}
@media(max-width:620px){
  .theme-frame-v2 .theme-button{padding:16px 24px}
  .theme-frame-v2 .theme-products-section .theme-products,
  .theme-frame-v2 .theme-team,
  .theme-frame-v2 .theme-stats{grid-template-columns:1fr}
  .theme-frame-v2 .theme-footer-columns{grid-template-columns:1fr}
}
