/* Hossam Saad Construction & Trading — public stylesheet
   Palette derived from the company logo / profile artwork (see docs/BRAND.md). */
:root {
  --hs-orange: #e98b21;        /* logo orange */
  --hs-orange-dark: #a35703;   /* accessible orange for text: 5.35:1 on white, 4.79:1 on #f2f2f3 */
  --hs-orange-light: #fbe9d2;
  --hs-charcoal: #414042;      /* logo charcoal */
  --hs-charcoal-deep: #2b2a2c;
  --hs-grey: #bdbdbf;          /* artwork light grey */
  --hs-grey-light: #f2f2f3;
  --hs-white: #ffffff;
  --on-orange: #2b2a2c;
  --text: #2b2a2c;
  --muted: #5d5c5f;
  --border: #dcdcde;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(43, 42, 44, .12);
  --font-latin: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Lato", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --container: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-latin); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--hs-white); }
body.lang-ar, html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.95; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--hs-charcoal-deep); margin: 0 0 .6em; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 { font-family: var(--font-ar); font-weight: 700; }
img { max-width: 100%; height: auto; }
a { color: var(--hs-orange-dark); text-underline-offset: .2em; }
a:hover { color: var(--hs-charcoal); }
:focus-visible { outline: 3px solid var(--hs-charcoal); outline-offset: 3px; border-radius: 2px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.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: 1rem; top: -4rem; background: var(--hs-charcoal-deep); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }
.preview-banner { background: var(--hs-charcoal-deep); color: #fff; text-align: center; padding: .5rem 1rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; background: var(--hs-orange); color: var(--on-orange); font-weight: 700; padding: .75rem 1.6rem; border: 2px solid var(--hs-orange); border-radius: var(--radius); text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.3; transition: background .2s, color .2s; }
.btn:hover { background: var(--hs-charcoal); border-color: var(--hs-charcoal); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--hs-charcoal-deep); border-color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--hs-orange); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { display: block; width: 220px; max-width: 52vw; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: block; padding: .6rem .8rem; color: var(--hs-charcoal-deep); text-decoration: none; font-weight: 700; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav-item > a:hover, .nav-item > a[aria-current="page"], .nav-item > a.is-parent-active { color: var(--hs-orange-dark); border-bottom-color: var(--hs-orange); }
.sub-toggle { background: none; border: 0; cursor: pointer; width: 1.6rem; height: 2rem; padding: 0; margin-inline-start: -.5rem; position: relative; }
.sub-toggle::after { content: ""; position: absolute; inset: 0; margin: auto; width: .5rem; height: .5rem; border-inline-end: 2px solid var(--hs-charcoal); border-bottom: 2px solid var(--hs-charcoal); transform: translateY(-2px) rotate(45deg); }
.sub-list { list-style: none; margin: 0; padding: .4rem 0; position: absolute; inset-inline-start: 0; top: 100%; min-width: 230px; background: #fff; border-top: 3px solid var(--hs-orange); box-shadow: var(--shadow); display: none; z-index: 10; }
.has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list, .has-sub.open > .sub-list { display: block; }
.sub-list a { display: block; padding: .55rem 1rem; color: var(--hs-charcoal-deep); text-decoration: none; font-weight: 600; }
.sub-list a:hover, .sub-list a[aria-current="page"] { background: var(--hs-orange-light); color: var(--hs-charcoal-deep); }
.lang-switch a { display: inline-block; padding: .35rem .9rem; border: 2px solid var(--hs-charcoal); border-radius: 999px; color: var(--hs-charcoal-deep); font-weight: 700; text-decoration: none; font-size: .9rem; font-family: var(--font-ar); }
.lang-switch a:hover { background: var(--hs-charcoal); color: #fff; }
.nav-toggle { display: none; background: var(--hs-charcoal); border: 0; width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; inset-inline: 11px; height: 3px; background: #fff; content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; } .nav-toggle-bar::before { top: -8px; inset-inline: 0; } .nav-toggle-bar::after { top: 8px; inset-inline: 0; }

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--hs-charcoal-deep); overflow: hidden; isolation: isolate; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(43,42,44,.92) 0%, rgba(43,42,44,.78) 48%, rgba(43,42,44,.25) 100%); z-index: -1; }
[dir="rtl"] .hero::before { background: linear-gradient(255deg, rgba(43,42,44,.92) 0%, rgba(43,42,44,.78) 48%, rgba(43,42,44,.25) 100%); }
.hero::after { content: ""; position: absolute; inset-inline-end: -8%; bottom: 0; width: 46%; height: 100%; background: var(--hs-orange); opacity: .92; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; mix-blend-mode: multiply; }
[dir="rtl"] .hero::after { clip-path: polygon(0 0, 62% 0, 100% 100%, 0 100%); }
.hero-inner { padding-block: clamp(4rem, 11vw, 8rem); }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-block; background: var(--hs-orange); color: var(--on-orange); font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; padding: .3rem .9rem; margin: 0 0 1rem; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
[dir="rtl"] .eyebrow { clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%); letter-spacing: 0; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-lead { font-size: 1.2rem; max-width: 56ch; }
.hero-lead p { margin: 0 0 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Inner page banner */
.page-banner { color: #fff; background: var(--hs-charcoal); position: relative; isolation: isolate; padding-block: clamp(2.2rem, 6vw, 4rem); border-bottom: 6px solid var(--hs-orange); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43,42,44,.94), rgba(43,42,44,.72)); z-index: -1; }
.page-banner::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: min(28%, 280px); background: var(--hs-orange); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); opacity: .9; z-index: -1; }
[dir="rtl"] .page-banner::after { clip-path: polygon(0 0, 55% 0, 100% 100%, 0 100%); }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin: .3rem 0 .2rem; }
.banner-sub { margin: 0; color: #f0f0f1; max-width: 60ch; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "›"; margin-inline-end: .4rem; color: var(--hs-orange); }
[dir="rtl"] .breadcrumb li + li::before { content: "‹"; }
.breadcrumb a { color: #fff; }

/* Sections */
.section { padding-block: clamp(2.4rem, 6vw, 4.2rem); }
.section:nth-of-type(even) { background: var(--hs-grey-light); }
.tag-heading { margin: 0 0 1.4rem; font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.tag-heading span { display: inline-block; background: var(--hs-orange); color: var(--on-orange); padding: .45rem 2.2rem .45rem 1.2rem; border-inline-start: 6px solid var(--hs-charcoal); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
[dir="rtl"] .tag-heading span { padding: .45rem 1.2rem .45rem 2.2rem; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%); }
.rich { max-width: 78ch; }
.rich p { margin: 0 0 1rem; }
.rich ul, .rich ol { padding-inline-start: 1.4rem; margin: 0 0 1.1rem; }
.rich li { margin-bottom: .55rem; }
.rich ul { list-style: none; padding-inline-start: 0; }
.rich ul > li { position: relative; padding-inline-start: 1.7rem; }
.rich ul > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: .8rem; height: .8rem; background: var(--hs-orange); border-radius: 50%; }
body.lang-ar .rich ul > li::before { border-radius: 2px; top: .9em; }
.style-check .rich ul > li::before { border-radius: 0; background: none; width: .55rem; height: 1rem; border-inline-end: 3px solid var(--hs-orange); border-bottom: 3px solid var(--hs-orange); transform: rotate(40deg); top: .55em; }
.rich strong { color: var(--hs-charcoal-deep); }
.rich table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.rich th, .rich td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: start; }
.rich a { font-weight: 700; }
.with-image { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.with-image.image-start { grid-template-columns: 1fr 1.4fr; } .with-image.image-start .rich-figure { order: -1; }
.rich-figure { margin: 0; } .rich-figure img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border-inline-start: 6px solid var(--hs-orange); }

/* Cards */
.card-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--hs-orange); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: .6rem; }
.card h3 { margin: 0; font-size: 1.25rem; } .card h3 a { color: inherit; text-decoration: none; } .card h3 a:hover { color: var(--hs-orange-dark); }
.card p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; }

/* Tables */
.table-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin: 1rem 0; }
.table-tools label { font-weight: 700; }
.table-tools input { padding: .6rem .8rem; border: 2px solid var(--hs-grey); border-radius: var(--radius); min-width: min(100%, 320px); font: inherit; }
.table-count { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 2px solid var(--hs-orange); border-radius: var(--radius); background: #fff; margin-top: 1rem; }
.data-table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.data-table th { background: var(--hs-charcoal); color: #fff; text-align: start; padding: .8rem 1rem; position: sticky; top: 0; }
.data-table td { padding: .7rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table tbody tr:hover { background: var(--hs-orange-light); }
.data-table td:first-child { font-weight: 700; width: 38%; }
.data-table tr[hidden] { display: none; }

/* Logos */
.logo-grid { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.logo-grid li { background: #fff; border: 1px solid var(--border); border-bottom: 4px solid var(--hs-orange); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 130px; }
.logo-grid img { max-height: 100px; width: auto; max-width: 100%; object-fit: contain; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-cards li { display: flex; align-items: center; gap: .9rem; font-weight: 700; font-size: 1.1rem; }
.contact-cards .phones { display: flex; flex-direction: column; gap: .15rem; }
.contact-cards a, .contact-list a { color: inherit; text-decoration: none; } .contact-cards a:hover { color: var(--hs-orange-dark); text-decoration: underline; }
.ico { flex: none; display: inline-block; width: 2.4rem; height: 2.4rem; background: var(--hs-orange) center/55% no-repeat; border-radius: 50%; }
.ico-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2a2c'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.6 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.6 3.6a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.ico-mobile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2a2c'%3E%3Cpath d='M8 1h8a2 2 0 012 2v18a2 2 0 01-2 2H8a2 2 0 01-2-2V3a2 2 0 012-2zm4 19.2a1.1 1.1 0 100-2.2 1.1 1.1 0 000 2.2zM8 4v12h8V4z'/%3E%3C/svg%3E"); }
.ico-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2a2c'%3E%3Cpath d='M3 5h18a1 1 0 011 1v12a1 1 0 01-1 1H3a1 1 0 01-1-1V6a1 1 0 011-1zm9 7.2L4.4 7H19.6zM4 9l8 5.5L20 9v8H4z'/%3E%3C/svg%3E"); }
.ico-web { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2a2c' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.ico-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2a2c'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 119.5 9 2.5 2.5 0 0112 11.5z'/%3E%3C/svg%3E"); }
.contact-form-card h2.form-title { font-size: 1.25rem; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--hs-orange); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; } .field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field textarea { width: 100%; padding: .7rem .8rem; border: 2px solid var(--hs-grey); border-radius: var(--radius); font: inherit; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { border-color: var(--hs-charcoal); outline: none; box-shadow: 0 0 0 3px var(--hs-orange-light); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; margin: .3rem 0 0; font-size: .92rem; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin: 0 0 1rem; font-weight: 700; }
.alert-success { background: #e6f4ea; color: #14532d; border: 1px solid #86c99b; }
.alert-error { background: #fdecea; color: #7a1712; border: 1px solid #f0a8a2; }

/* Footer */
.site-footer { background: var(--hs-charcoal-deep); color: #e8e8e9; margin-top: 0; border-top: 6px solid var(--hs-orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; border-bottom: 3px solid var(--hs-orange); display: inline-block; padding-bottom: .3rem; }
.site-footer a { color: #fff; } .site-footer a:hover { color: var(--hs-orange); }
.footer-brand img { background: #fff; padding: .5rem .8rem; border-radius: var(--radius); max-width: 100%; height: auto; }
.footer-links ul, .contact-list, .social-list { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.contact-list .ico { width: 1.9rem; height: 1.9rem; }
.social-list { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1rem; }
.footer-bottom { background: #1f1e20; padding: .9rem 0; color: #c9c9cb; }

/* Error pages */
.error-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--hs-grey-light); }
.error-card { background: #fff; padding: 2.5rem 2rem; border-top: 8px solid var(--hs-orange); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 560px; text-align: center; }
.error-code { font-family: var(--font-head); font-size: 5rem; font-weight: 700; margin: .5rem 0 0; color: var(--hs-orange); line-height: 1; }
.debug { text-align: start; background: #f5f5f5; padding: 1rem; overflow: auto; direction: ltr; }

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--hs-orange); padding: 1rem 1.25rem 1.4rem; flex-direction: column; align-items: stretch; display: none; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; } .nav-item > a { flex: 1; border-bottom: 0; border-inline-start: 4px solid transparent; }
  .nav-item > a[aria-current="page"], .nav-item > a.is-parent-active { border-inline-start-color: var(--hs-orange); }
  .sub-toggle { width: 2.6rem; height: 2.6rem; margin: 0; }
  .sub-list { position: static; display: none; box-shadow: none; width: 100%; border-top: 0; border-inline-start: 3px solid var(--hs-orange-light); margin-inline-start: 1rem; }
  .has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list { display: none; } .has-sub.open > .sub-list { display: block; }
  .with-image, .with-image.image-start { grid-template-columns: 1fr; } .with-image.image-start .rich-figure { order: 0; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero::after { width: 70%; opacity: .55; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 3px solid var(--hs-orange); padding: .4rem 0; }
  .data-table td { border: 0; padding: .35rem 1rem; }
  .data-table td::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); font-weight: 700; }
  .data-table td:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-actions, .table-tools, .skip-link { display: none !important; } }

/* =====================================================================
   Visual layer v2: photos, panels, cards, marquee, gallery, animation
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* ---- scroll reveal (only when JS is present; start/end are logical so RTL mirrors automatically) ---- */
html.js [data-reveal] { opacity: 0; transition: opacity .85s var(--ease), transform .85s var(--ease); will-change: opacity, transform; }
html.js [data-reveal="up"] { transform: translateY(36px); }
html.js [data-reveal="start"] { transform: translateX(-56px); }
html.js [data-reveal="end"] { transform: translateX(56px); }
html.js[dir="rtl"] [data-reveal="start"] { transform: translateX(56px); }
html.js[dir="rtl"] [data-reveal="end"] { transform: translateX(-56px); }
html.js [data-reveal="zoom"] { transform: scale(.9); }
html.js [data-reveal].in { opacity: 1; transform: none; }
.stagger > :nth-child(2) { transition-delay: .08s !important; } .stagger > :nth-child(3) { transition-delay: .16s !important; }
.stagger > :nth-child(4) { transition-delay: .24s !important; } .stagger > :nth-child(5) { transition-delay: .32s !important; }
.stagger > :nth-child(6) { transition-delay: .40s !important; } .stagger > :nth-child(n+7) { transition-delay: .48s !important; }

/* ---- buttons / links ---- */
.btn { transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(43, 42, 44, .22); }
.btn:active { transform: translateY(0); }
.nav-item > a { transition: color .2s, border-color .2s; }

/* ---- hero ---- */
.hero { min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; }
.hero-inner { position: relative; width: 100%; }
.bg-img[data-parallax] { height: 118%; top: -9%; will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes stripe { from { transform: translateX(-120%) skewX(-24deg); opacity: 0; } to { transform: translateX(0) skewX(-24deg); opacity: 1; } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .1s; } .hero-copy > :nth-child(2) { animation-delay: .25s; }
.hero-copy > :nth-child(3) { animation-delay: .4s; } .hero-copy > :nth-child(4) { animation-delay: .55s; }
.hero-stripe { position: absolute; top: 0; bottom: 0; width: 14px; background: var(--hs-orange); transform: skewX(-24deg); animation: stripe 1.1s var(--ease) both; z-index: -1; }
.hero-stripe-1 { inset-inline-start: 46%; animation-delay: .3s; } .hero-stripe-2 { inset-inline-start: 49%; width: 6px; opacity: .7; animation-delay: .5s; }
[dir="rtl"] .hero-stripe { transform: skewX(24deg); }
.hero-cutout { position: absolute; inset-inline-end: 3%; bottom: 0; height: min(92%, 640px); width: auto; max-width: 42%; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: slide-in 1.1s var(--ease) .35s both; pointer-events: none; }
.has-cutout .hero-copy { max-width: 560px; }
.page-banner h1, .page-banner .breadcrumb { animation: rise .8s var(--ease) both; } .page-banner h1 { animation-delay: .12s; }
.page-banner { min-height: clamp(200px, 30vw, 300px); display: flex; align-items: center; }
.page-banner .container { width: 100%; }

/* ---- sections with photos ---- */
.with-image { grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.with-image.image-start { grid-template-columns: 1fr 1.1fr; }
.rich-figure { position: relative; }
.rich-figure img { border: 0; border-radius: 6px; box-shadow: 14px 14px 0 var(--hs-orange); max-height: 540px; width: 100%; object-fit: cover; transition: transform .6s var(--ease), box-shadow .4s; }
[dir="rtl"] .rich-figure img { box-shadow: -14px 14px 0 var(--hs-orange); }
.rich-figure:hover img { transform: translateY(-6px); }
.rich-figure.is-cutout::before { content: ""; position: absolute; inset: 6% 4% 0; background: var(--hs-orange); clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); opacity: .92; }
[dir="rtl"] .rich-figure.is-cutout::before { clip-path: polygon(0 0, 84% 0, 100% 100%, 16% 100%); }
.rich-figure.is-cutout img { position: relative; box-shadow: none; background: none; object-fit: contain; max-height: 460px; width: auto; max-width: 92%; margin-inline: auto; display: block; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.rich-figure.is-cutout:hover img { transform: none; }
.fig-badge { position: absolute !important; width: clamp(90px, 14vw, 150px) !important; height: auto !important; inset-inline-start: -6%; bottom: -8%; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out -2s infinite; max-height: none !important; }
.tag-heading span { position: relative; overflow: hidden; }
.tag-heading span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.tag-heading.in span::after, html:not(.js) .tag-heading span::after { animation: shine 1.4s .5s ease-out 1 both; }
@keyframes shine { to { transform: translateX(120%); } }

/* ---- values cards (embed view=cards) ---- */
.values-band { background: var(--hs-charcoal) !important; color: #fff; position: relative; overflow: hidden; }
.values-band::before { content: ""; position: absolute; inset-inline-end: -8%; top: 0; bottom: 0; width: 34%; background: var(--hs-orange); opacity: .1; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.value-cards { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1.1rem; counter-reset: v; position: relative; }
.value-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-top: 5px solid var(--hs-orange); border-radius: 6px; padding: 1.6rem 1.3rem 1.4rem; position: relative; overflow: hidden; transition: transform .35s var(--ease), background .3s; }
.value-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .11); }
.value-card .num { position: absolute; inset-inline-end: .8rem; top: .2rem; font: 700 3.4rem/1 var(--font-head); color: var(--hs-orange); opacity: .28; transition: opacity .3s, transform .4s var(--ease); }
.value-card:hover .num { opacity: .6; transform: scale(1.12); }
.value-card h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .5rem; padding-inline-end: 3rem; }
.value-card p { margin: 0; color: #e6e6e8; font-size: .98rem; }
.values-band .tag-heading span { box-shadow: 0 0 0 0 transparent; }

/* ---- vision / mission / goals panels (embed view=panel) ---- */
.panel { overflow: hidden; }
.panel-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.panel-end .panel-grid { grid-template-columns: 1fr 1.15fr; } .panel-end .panel-media { order: 2; }
.panel-media { margin: 0; }
.panel-media img { display: block; width: 100%; height: clamp(300px, 36vw, 440px); object-fit: cover; border-radius: 6px; transition: transform .8s var(--ease); clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
[dir="rtl"] .panel-media img { clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%); }
.panel-end .panel-media img { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .panel-end .panel-media img { clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%); }
.panel-media:hover img { transform: scale(1.04); }
.panel-card { background: #fff; padding: clamp(1.4rem, 3vw, 2.4rem); border-inline-start: 6px solid var(--hs-orange); box-shadow: 0 18px 40px rgba(43, 42, 44, .16); margin-inline-start: -5rem; position: relative; z-index: 2; border-radius: 4px; }
.panel-end .panel-card { margin-inline-start: 0; margin-inline-end: -5rem; }
.panel-card .tag-heading { margin-bottom: 1rem; }

/* ---- cards with photos ---- */
.card.has-media { padding: 0; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.card.has-media:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(43, 42, 44, .2); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: var(--hs-orange); transform: scaleX(0); transform-origin: inline-start; transition: transform .5s var(--ease); }
.card:hover .card-media::after { transform: scaleX(1); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.1); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-link::after { content: " →"; display: inline-block; transition: transform .3s; } [dir="rtl"] .card-link::after { content: " ←"; }
.card-link:hover::after { transform: translateX(5px); } [dir="rtl"] .card-link:hover::after { transform: translateX(-5px); }

/* ---- gallery ---- */
.gallery { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: .9rem; grid-auto-flow: dense; }
.gallery li { min-height: 0; } .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; height: 100%; background: var(--hs-charcoal); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(233, 139, 33, .55), transparent 55%); opacity: 0; transition: opacity .5s; }
.gallery figure:hover img { transform: scale(1.12) rotate(.6deg); } .gallery figure:hover::after { opacity: 1; }

/* ---- partner logo marquee ---- */
.section-slider { padding-bottom: 2rem; }
.marquee { overflow-x: auto; padding: 1.4rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { list-style: none; display: flex; margin: 0; padding: 0; width: max-content; }
.marquee-track li { flex: none; width: 190px; height: 118px; margin-inline-end: 1.1rem; background: #fff; border: 1px solid var(--border); border-bottom: 4px solid var(--hs-orange); border-radius: 6px; display: grid; place-items: center; padding: .9rem; transition: transform .3s var(--ease), box-shadow .3s; }
.marquee-track li:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(43, 42, 44, .16); }
.marquee-track img { max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }
html.js .marquee.ready { overflow: hidden; }
html.js .marquee.ready .marquee-track { animation: marquee var(--dur, 55s) linear infinite; }
html.js[dir="rtl"] .marquee.ready .marquee-track { animation-name: marquee-rtl; }
html.js .marquee.ready:hover .marquee-track, html.js .marquee.ready:focus-within .marquee-track, html.js .marquee.ready.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.slider-tools { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; }

/* ---- reduced motion: everything visible and still ---- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-copy > *, .hero-stripe, .hero-cutout, .page-banner h1, .page-banner .breadcrumb, .rich-figure.is-cutout img, .fig-badge { animation: none !important; }
  html.js .marquee.ready .marquee-track { animation: none !important; }
  html.js .marquee.ready { overflow-x: auto; }
  .tag-heading span::after { display: none; }
}

@media (max-width: 980px) {
  .with-image, .with-image.image-start { grid-template-columns: 1fr; } .with-image.image-start .rich-figure { order: 0; }
  .hero-stripe { opacity: .35; }
  .hero-cutout { max-width: 46%; height: 62%; opacity: .9; }
  .hero { min-height: 480px; }
  .panel-grid, .panel-end .panel-grid { grid-template-columns: 1fr; } .panel-end .panel-media { order: 0; }
  .panel-media img, .panel-end .panel-media img, [dir="rtl"] .panel-media img, [dir="rtl"] .panel-end .panel-media img { clip-path: none; height: 260px; }
  .panel-card, .panel-end .panel-card { margin: -2.5rem 1rem 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 36vw; } .gallery li:first-child { grid-column: span 2; grid-row: span 1; }
  .rich-figure img { box-shadow: 8px 8px 0 var(--hs-orange); } [dir="rtl"] .rich-figure img { box-shadow: -8px 8px 0 var(--hs-orange); }
}
@media (max-width: 560px) { .hero-cutout, .hero-stripe { display: none; } .marquee-track li { width: 150px; height: 96px; } }
main { overflow-x: clip; }
