/* grafikà — main website
   Brand colours and spacing taken from the Figma designs (1440px wide frames). */

@font-face { font-family: "Madani"; src: url("../fonts/madani-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Madani"; src: url("../fonts/madani-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Madani"; src: url("../fonts/madani-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Madani"; src: url("../fonts/madani-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --blue: #073ff3;
  --orange: #fa4f05;
  --ink: #333333;
  --text: #1b1b1b;
  --white: #ffffff;
  --line: #e6e6e6;
  --wrap: 1160px;           /* content width in the designs (140px side margins at 1440) */
  --gutter: clamp(16px, 5vw, 40px);
  --header-h: 100px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Madani", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(250, 79, 5, .6); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--white);
  transition: box-shadow .25s;
}
.site-head.is-scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .08); }
.site-head__in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: clamp(16px, 3.3vw, 48px);
}
.brand { line-height: 0; }
.brand img { width: 150px; height: auto; }

.nav ul { display: flex; gap: clamp(20px, 4vw, 60px); }
.nav a {
  text-decoration: none;
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); font-weight: 700; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 10px; cursor: pointer;
}
.menu-btn span { display: block; height: 2.5px; background: var(--blue); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- page hero (full-bleed photo, 1440x800 in the design) ---------- */
.page-hero {
  height: clamp(260px, 55.5vw, 800px);
  max-height: calc(100vh - var(--header-h));
  min-height: 260px;
  background: #ddd center / cover no-repeat;
}

/* ---------- section titles ---------- */
.title {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.section { padding-block: clamp(48px, 7vw, 100px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px;
  padding: 14px 32px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: clamp(17px, 1.6vw, 22px);
  text-transform: uppercase;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: #e04400; transform: translateY(-2px); }
.btn--wide { width: min(455px, 100%); min-height: 100px; }

/* ---------- "get in touch / take a look" call-to-action block ---------- */
.cta { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 6vw, 90px); }
.cta__in { padding-inline-start: clamp(0px, calc((100vw - var(--wrap)) / 2 - 47px - var(--gutter)), 47px); }
.cta__item + .cta__item { margin-top: clamp(40px, 5vw, 70px); }
.kicker {
  display: block;
  color: var(--blue);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- footer ---------- */
.site-foot { padding-block: 40px 90px; }
.site-foot__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-title { font-size: clamp(30px, 3vw, 42px); font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 26px; }
.social { display: grid; grid-template-columns: repeat(3, 40px); gap: 32px 32px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--orange); transition: transform .2s var(--ease), color .2s; }
.social a:hover { transform: translateY(-3px); color: var(--blue); }
.social svg { width: 36px; height: 36px; fill: currentColor; }
.foot-nav { border-inline-start: 3px solid var(--orange); padding-inline-start: 24px; align-self: flex-start; margin-inline-end: clamp(0px, 5vw, 70px); }
.foot-nav li + li { margin-top: 18px; }
.foot-nav a { text-decoration: none; font-size: 22px; color: var(--ink); transition: color .2s; }
.foot-nav a:hover { color: var(--orange); }
.foot-nav a[aria-current="page"] { color: var(--orange); font-weight: 700; }
.copy { margin-top: 56px; font-size: 14px; color: #777; }

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* =========================================================
   HOME
   ========================================================= */
.slider { position: relative; height: clamp(320px, 55.5vw, 800px); max-height: calc(100vh - var(--header-h)); min-height: 360px; overflow: hidden; background: #ccc; }
.slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide__copy {
  position: absolute; inset-inline-end: clamp(20px, 13vw, 190px); top: 22%;
  max-width: min(420px, 80%);
}
.slide--dark .slide__copy { color: #fff; }
.slide--panel .slide__copy { background: rgba(255, 255, 255, .86); padding: 22px 28px; max-width: min(520px, 86%); }
.slide__title { font-size: clamp(34px, 4.6vw, 66px); font-weight: 800; color: var(--blue); text-transform: uppercase; }
.slide--dark .slide__title { color: #fff; }
.slide__text { margin-top: 10px; font-size: clamp(15px, 1.3vw, 19px); color: var(--ink); }
.slide--dark .slide__text { color: rgba(255, 255, 255, .85); }
.slide.is-active .slide__copy > * { animation: rise .8s var(--ease) both; }
.slide.is-active .slide__text { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .35); padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dots button[aria-current="true"] { background: var(--orange); border-color: var(--orange); }

.gate { background: var(--blue); color: #fff; padding-block: clamp(40px, 5vw, 70px); }
.gate__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.gate__title { font-size: clamp(26px, 3vw, 42px); font-weight: 800; text-transform: uppercase; max-width: 640px; }

.video { position: relative; height: clamp(240px, 44vw, 640px); background: #c4c4c4 center / cover; display: grid; place-items: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  width: clamp(72px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .55); border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.play:hover { transform: scale(1.06); background: rgba(255, 255, 255, .8); }
.play svg { width: 40%; fill: #9b9b9b; margin-inline-start: 8%; }

.story { display: grid; grid-template-columns: 1fr 1fr; }
.story__cell { min-height: clamp(220px, 25vw, 360px); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); }
.story__img { background: center / cover no-repeat; position: relative; }
.story__img h2 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 800; text-transform: uppercase; position: relative; }
.story__img--dark h2 { color: var(--orange); }
.story__img--light h2 { color: var(--blue); }
.story__text { font-size: clamp(14px, 1.15vw, 17px); text-align: justify; }
.story__text p + p { margin-top: .8em; }
.bg-orange { background: var(--orange); color: #fff; }
.bg-blue { background: var(--blue); color: #fff; }

/* =========================================================
   SERVICES  (2 columns, 360px rows, orange / blue / white checkerboard)
   ========================================================= */
.tiles { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 76px); }
.tile {
  min-height: clamp(160px, 25vw, 360px);
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  font-size: clamp(20px, 3vw, 44px); font-weight: 800; line-height: 1.38; text-transform: uppercase;
  transition: filter .25s;
}
.tile span { max-width: 12ch; }
.tile--orange { background: var(--orange); color: #fff; }
.tile--blue { background: var(--blue); color: #fff; }
.tile--white-o { background: #fff; color: var(--orange); }
.tile--white-b { background: #fff; color: var(--blue); }
.tile:hover { filter: brightness(1.08); }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 7.5vw, 112px); margin-top: clamp(40px, 6vw, 90px); }
.partner {
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 10%;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s var(--ease);
}
.partner:hover { border-color: var(--orange); transform: translateY(-4px); }
.partner { min-width: 0; }
.partner img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

.showcase { display: block; margin-top: clamp(32px, 4vw, 58px); border-radius: 24px; aspect-ratio: 1160 / 520; display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.showcase:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .15); }
.showcase--behance { background: var(--blue); }
.showcase--youtube { background: #d11317; }
.showcase svg { width: clamp(120px, 20vw, 240px); fill: #fff; }
.showcase__note { margin-top: 28px; font-size: clamp(16px, 1.5vw, 22px); text-align: justify; }

/* =========================================================
   ABOUT
   ========================================================= */
.lead { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(15px, 1.3vw, 19px); text-align: justify; color: var(--ink); }
.bands { margin-top: clamp(40px, 5vw, 70px); }
.band { padding-block: clamp(32px, 4vw, 56px); }
.band h2 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.band p { font-size: clamp(14px, 1.2vw, 18px); text-align: justify; }
.band p + p { margin-top: .7em; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 90px); align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.info li { display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; }
.info li + li { margin-top: 28px; }
.info svg { width: 28px; height: 28px; fill: var(--orange); grid-row: span 2; }
.info strong { color: var(--orange); font-size: 17px; text-transform: uppercase; }
.info a, .info span { color: var(--ink); text-decoration: none; font-size: 17px; }
.info a:hover { color: var(--orange); }
.info__lines { display: grid; }
.contact__gate { border-inline-start: 3px solid var(--orange); padding-inline-start: clamp(24px, 3vw, 44px); padding-block: 20px; max-width: 420px; }
.contact__gate h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 28px; }

.map-tabs { display: flex; justify-content: center; gap: 0; }
.map-tabs button {
  font: inherit; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; text-transform: uppercase;
  padding: 18px clamp(16px, 4vw, 48px); border: 0; cursor: pointer;
  background: #f1f1f1; color: var(--ink); transition: background .2s, color .2s;
}
.map-tabs button[aria-selected="true"] { background: var(--orange); color: #fff; }
.map-tabs button:hover:not([aria-selected="true"]) { background: #e4e4e4; }
.map { height: clamp(320px, 42vw, 600px); background: #e8e8e8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-wrap { text-align: center; }
.form-title { color: var(--orange); font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.form-sub { margin: 14px auto 0; max-width: 560px; color: #666; }
.form { margin-top: clamp(28px, 3vw, 44px); display: grid; gap: 14px; text-align: start; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  padding: 16px 20px; border: 1px solid #dcdcdc; background: #fff;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form textarea { min-height: 300px; resize: vertical; }
.form .btn { width: 100%; }
.form .btn svg { width: 24px; height: 24px; fill: currentColor; }
.form-note { font-size: 14px; color: #666; text-align: center; min-height: 1.4em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .brand img { width: 120px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .story { grid-template-columns: 1fr; }
  /* keep image -> text order on phones */
  .story > :nth-child(4) { order: 3; }
  .story > :nth-child(3) { order: 4; }
  .story > :nth-child(8) { order: 7; }
  .story > :nth-child(7) { order: 8; }
  .story > :nth-child(1) { order: 1; } .story > :nth-child(2) { order: 2; }
  .story > :nth-child(5) { order: 5; } .story > :nth-child(6) { order: 6; }
  .tile { font-size: clamp(16px, 4.6vw, 22px); }
  .lead, .band p, .story__text, .showcase__note { text-align: start; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .gate__in { flex-direction: column; align-items: flex-start; }
  .site-foot__in { flex-direction: column; }
  .foot-nav { margin: 0; }
  .slide__copy { inset-inline: 20px; top: auto; bottom: 64px; max-width: none; background: rgba(255,255,255,.85); padding: 16px 18px; }
  .slide--dark .slide__copy { background: rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
