/* ==========================================================================
   TAWAL General Trading — site stylesheet (deck-faithful design)
   Palette and type measured from the company profile deck.
   ========================================================================== */

:root {
  --blue: #284f8b;
  --blue-dark: #1f3d6d;
  --blue-tint: #e4eaf3;
  --bg: #f7f6f4;
  --bg-alt: #f5f4f0;
  --white: #ffffff;
  --ink: #284f8b;

  --font-head: "Montserrat", "Figtree", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Figtree", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --slab: 24px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;

  --space-section: clamp(72px, 9vw, 128px);
  --space-rule: clamp(48px, 6vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 767.98px) {
  :root { --header-h: 64px; --slab: 16px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, address, hr { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
strong { font-weight: 600; }
small { font-size: .875rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible { outline-color: #fff; }
/* Sections receive programmatic focus after an in-page jump (see main.js); no ring on those containers. */
[tabindex="-1"]:focus { outline: 0; }
::selection { background: var(--blue); color: var(--white); }
.on-blue ::selection { background: var(--white); color: var(--blue); }

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

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

/* Type ------------------------------------------------------------------- */
.h-display {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);
  overflow-wrap: anywhere;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1.08;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; max-width: 34em; }
.sub { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.35; margin-bottom: 20px; }

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 12px 20px;
  border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { top: 16px; outline-color: var(--blue-dark); }

/* Visually hidden (screen-reader only) ----------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--r-pill); border: 1.5px solid var(--blue);
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue-tint); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--blue-tint);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(40, 79, 139, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; margin-right: auto; border-radius: var(--r-sm); }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list a {
  display: inline-flex; align-items: center; position: relative;
  min-height: 44px; padding: 0 11px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .9375rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 7px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--blue); transition: background-color .2s;
}
.nav-toggle:hover { background: var(--blue-tint); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Narrow desktop: a little more slack in the header row so it still fits when web fonts fail. */
@media (min-width: 1100px) and (max-width: 1199.98px) {
  .site-header__inner { gap: 16px; }
  .nav { gap: 14px; }
  .nav__list a { padding: 0 8px; }
  .nav__list a::after { left: 8px; right: 8px; }
}
@media (max-width: 1099.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--white); border-top: 1px solid var(--blue-tint); border-bottom: 1px solid var(--blue-tint);
    box-shadow: 0 24px 40px -24px rgba(40, 79, 139, .35);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .nav.is-open { display: flex; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__list li + li { border-top: 1px solid var(--blue-tint); }
  .js .nav__list a { min-height: 52px; padding: 0 4px; font-size: 1.0625rem; width: 100%; }
  .js .nav__list a::after { display: none; }
  .js .nav__list a[aria-current] { font-weight: 600; }
  .js .nav__download { align-self: flex-start; }
  /* Without JavaScript the toggle never appears, so keep the links usable as a wrapped row under the header bar. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; order: 3; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 10px; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}
@media (max-width: 479.98px) {
  .brand img { height: 40px; }
  .site-header__actions { gap: 6px; }
  .site-header__inner { gap: 12px; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 3vw, 40px); }
.hero__eyebrow { margin-bottom: 20px; }
.hero__title { margin-bottom: 24px; }
.hero__lead { margin-bottom: 36px; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__meta { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; font-weight: 500; letter-spacing: .02em; }
.hero__meta svg { width: 18px; height: 18px; flex: none; margin-top: .2em; }

/* Sections --------------------------------------------------------------- */
.section { padding-top: var(--space-section); }
.section--pad-bottom { padding-bottom: var(--space-section); }
.section__head { margin-bottom: clamp(32px, 4vw, 52px); }

.rule {
  border: 0; height: 3px; width: 30%; max-width: 320px; min-width: 96px;
  background: var(--blue); margin-top: var(--space-rule);
}

/* Lists ------------------------------------------------------------------ */
.list { display: grid; gap: 14px; }
.list li { position: relative; padding-left: 28px; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue);
}
.list--lg { font-size: 1.125rem; max-width: 62rem; gap: 16px; }
.list--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 48px; max-width: 62rem; }
.list--detail { row-gap: 18px; column-gap: 18px; }
.list--detail li strong { display: block; }
.list--detail li span { display: block; font-size: .9375rem; line-height: 1.5; margin-top: 2px; }

/* Split (text + framed photo) -------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.split--media-left .split__media { order: -1; }
@media (max-width: 899.98px) {
  .split { grid-template-columns: 1fr; }
  .split--media-left .split__media { order: 0; }
  .split__media { max-width: 560px; }
}

/* Photo frame with offset blue slab ------------------------------------- */
.frame { position: relative; }
.frame > * { position: relative; z-index: 1; }
.frame::before { content: ""; position: absolute; z-index: 0; background: var(--blue); }
.frame--br { margin: 0 var(--slab) var(--slab) 0; }
.frame--br::before { inset: var(--slab) calc(-1 * var(--slab)) calc(-1 * var(--slab)) var(--slab); }
.frame--tl { margin: var(--slab) 0 0 var(--slab); }
.frame--tl::before { inset: calc(-1 * var(--slab)) var(--slab) var(--slab) calc(-1 * var(--slab)); }
.frame--dark::before { background: var(--blue-dark); }
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--blue-tint); }
.frame--43 img { aspect-ratio: 4 / 3; }

/* About ------------------------------------------------------------------ */
.about {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.about__text { font-size: 1.125rem; max-width: 50em; }
.about__supplies .eyebrow { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px;
  border: 1.5px solid var(--blue); border-radius: var(--r-pill);
  font-weight: 500; font-size: .9375rem;
}
.glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px 40px; margin-top: clamp(48px, 6vw, 72px);
}
.glance li { padding-top: 18px; border-top: 3px solid var(--blue); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
@media (max-width: 899.98px) { .about { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 1079.98px) { .glance { grid-template-columns: repeat(2, 1fr); } }

/* Contact band ----------------------------------------------------------- */
.contact { background: var(--blue); color: #fff; padding: var(--space-section) 0; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact__name { font-family: var(--font-head); font-weight: 700; font-size: 1.625rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.contact__sub { opacity: .82; margin: 6px 0 32px; }
.contact__list { display: grid; gap: 22px; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; font-size: 1.1875rem; line-height: 1.5; }
.contact__row svg { width: 24px; height: 24px; flex: none; margin-top: .2em; }
.contact__row a {
  display: inline-block; min-height: 44px; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .2s;
}
.contact__row a:hover { text-decoration-color: #fff; }
.contact__card { background: var(--white); color: var(--blue); border-radius: var(--r-md); padding: clamp(28px, 4vw, 44px); }
.contact__card h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; margin: 14px 0 12px; }
.contact__card p { margin-bottom: 24px; }
.contact__card p.eyebrow { margin-bottom: 0; }
.contact__card .btn { max-width: 100%; }
.contact__meta { display: block; margin-top: 16px; opacity: .8; }
.contact__card :focus-visible { outline-color: var(--blue); }
@media (max-width: 899.98px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__media { max-width: 520px; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--blue-dark); color: #fff; padding: clamp(56px, 7vw, 88px) 0 28px; }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 48px;
}
.site-footer__brand img { width: 260px; max-width: 100%; }
.site-footer__brand p { max-width: 30em; margin: 24px 0 28px; opacity: .85; }
.site-footer__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: .8125rem; letter-spacing: .18em; margin-bottom: 14px; opacity: .85;
}
.site-footer__links { display: grid; }
.site-footer__links a, .site-footer__links span { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.site-footer__links span { line-height: 1.45; padding: 8px 0; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .9375rem; opacity: .85;
}
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.site-footer__top svg { width: 16px; height: 16px; }
@media (max-width: 899.98px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 559.98px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { padding-inline: 22px; }
}

/* Small screens: let long buttons wrap instead of overflowing ------------ */
@media (max-width: 399.98px) {
  .hero__actions .btn, .contact__card .btn, .site-footer__brand .btn { white-space: normal; text-align: left; min-height: 48px; padding-block: 10px; }
  .contact__card { padding: 24px; }
  .contact__card .btn { font-size: .9375rem; padding-inline: 18px; }
}

