/* ===== Fonts ===== */
@font-face {
  font-family: 'Estedad';
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/estedad-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Estedad';
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/estedad-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+2215;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/rubik-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Rubik';
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/rubik-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Tokens ===== */
:root {
  --brand: #0984e3; /* logo blue: large shapes and illustrations */
  --blue: #0770c2; /* buttons, links, panels with text (5.1:1 on white) */
  --sky: #74b9ff; /* logo light blue: accents only */
  --film: #eef6fe; /* pale surface, like HDPE film */
  --ink: #0b2540;
  --muted: #4a6480;
  --line: #d5e6f7;
  --white: #fff;

  /* theme: these change in dark mode */
  --bg: #fff;
  --surface: #fff;
  --link: #0770c2; /* blue text and outlines */
  --accent: #0984e3; /* headline highlight */
  --field: #0984e3; /* hero blue field */
  --header-bg: rgba(255, 255, 255, 0.94);
  --ring: rgba(11, 37, 64, 0.12);

  --font: 'Estedad', system-ui, sans-serif;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 7.5rem);
  --radius: 14px;
}

/* dark mode: off by default, switched by the header button (saved in localStorage) */
:root[data-theme='dark'] {
  color-scheme: dark;
  --film: #0c2340;
  --ink: #e8f1fb;
  --muted: #a3b8cf;
  --line: #1e3b5e;
  --bg: #081a2e;
  --surface: #102a48;
  --link: #6cb6ff;
  --accent: #4aa8f7;
  --field: #0b5aa0;
  --header-bg: rgba(8, 26, 46, 0.92);
  --ring: rgba(255, 255, 255, 0.18);
}

html[lang='en'],
html[lang='tr'] {
  --font: 'Rubik', system-ui, sans-serif;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-x: clip;
}

html[lang='en'] body,
html[lang='tr'] body {
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.sprite {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 800;
  text-wrap: balance;
}

html[lang='en'] :is(h1, h2, h3),
html[lang='tr'] :is(h1, h2, h3) {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  transition: top 0.2s;
}

.skip:focus-visible {
  top: 1rem;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3rem;
  padding: 0.6em 1.5em;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: #065ea3;
  border-color: #065ea3;
}

.btn svg {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: none;
}

.btn-line {
  border-color: var(--link);
  background: transparent;
  color: var(--link);
}

.btn-line:hover {
  background: var(--film);
  border-color: var(--link);
}

.btn-white {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover {
  background: #eef6fe; /* stays light in dark mode: the button sits on the blue card */
  border-color: #eef6fe;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}

.header .bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.header .logo img {
  block-size: 3rem;
  inline-size: auto;
}

.header .nav {
  display: none;
  gap: 1.75rem;
  margin-inline-start: auto;
  font-weight: 600;
  font-size: 0.975rem;
}

.header .nav a,
.header .call {
  white-space: nowrap;
}

.header .nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.header .nav a:hover {
  color: var(--link);
}

.header .langs {
  display: none;
  gap: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.header .langs a:hover {
  color: var(--link);
}

.header .langs [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.header .call {
  display: none;
  min-height: 2.6rem;
  padding-inline: 1.1em;
  font-size: 0.95rem;
}

.header .menu-btn,
.header .theme-btn {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.header .theme-btn {
  margin-inline-start: auto;
}

.header .menu-btn svg,
.header .theme-btn svg {
  inline-size: 1.4rem;
}

.header .theme-btn .sun,
.header .theme-btn[aria-pressed='true'] .moon {
  display: none;
}

.header .theme-btn[aria-pressed='true'] .sun {
  display: block;
}

.header .menu-btn .close,
.header .menu-btn[aria-expanded='true'] .open {
  display: none;
}

.header .menu-btn[aria-expanded='true'] .close {
  display: block;
}

.header .mobile {
  display: none;
  padding-block: 0.5rem 1.5rem;
  border-block-start: 1px solid var(--line);
}

.header .mobile.open {
  display: grid;
  gap: 0.25rem;
}

.header .mobile nav a {
  display: block;
  padding-block: 0.7rem;
  border-block-end: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.15rem;
}

.header .mobile .langs {
  display: flex;
  padding-block: 1rem;
  font-size: 1rem;
}

.header .mobile .btn {
  justify-self: start;
}

@media (min-width: 1100px) {
  .header .nav,
  .header .langs {
    display: flex;
  }
  .header .call {
    display: inline-flex;
  }
  .header .theme-btn {
    margin-inline-start: 0;
  }
  .header .menu-btn,
  .header .mobile,
  .header .mobile.open {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  overflow: clip;
}

.hero .text {
  display: grid;
  gap: 1.5rem;
  align-content: center;
  justify-items: start;
  padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) 3rem;
}

.hero h1 {
  max-inline-size: 20ch;
  font-size: clamp(2.1rem, 3.4vw + 0.6rem, 3.6rem);
  color: var(--ink);
}

html[lang='en'] .hero h1,
html[lang='tr'] .hero h1 {
  font-size: clamp(min(8.75vw, 2.1rem), 2.6vw + 0.7rem, 3.4rem);
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero .lead {
  max-inline-size: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 599px) {
  .hero .actions {
    align-self: stretch;
  }
  .hero .actions .btn {
    flex: 1 1 100%;
  }
}

/* the blue field with the business-card curve */
.hero .field {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 26rem;
  padding: 3rem var(--gutter);
  background: var(--field);
  border-start-start-radius: 48% 18%;
}


@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-block-size: min(46rem, calc(100svh - 4.75rem));
  }
  .hero .text {
    padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-inline-end: 2rem;
  }
  .hero .field {
    padding-inline-start: max(var(--gutter), 11%);
    border-start-start-radius: 26% 50%;
    border-end-start-radius: 26% 50%;
  }
}

/* the bale label */
.label {
  position: relative;
  inline-size: min(100%, 22rem);
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(4, 43, 84, 0.55);
  animation: label-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.label .top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block-end: 1rem;
  border-block-end: 2px solid var(--brand);
}

.label .top img {
  inline-size: 2.4rem;
}

.label .top b {
  display: block;
  font-size: 1.15rem;
  line-height: 1.3;
}

.label .top small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.label .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
  font-weight: 600;
}

.label .grid li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.label .grid li::before {
  content: '';
  inline-size: 1rem;
  block-size: 1rem;
  flex: none;
  border: 2px solid var(--sky);
  border-radius: 4px;
}

.label .grid .on {
  color: var(--link);
}

.label .grid .on::before {
  border-color: var(--blue);
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
  animation: tick 0.3s ease-out 1s both;
}

.label .fields {
  display: grid;
  gap: 0.35rem;
  padding-block: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.label .fields span {
  display: flex;
  gap: 0.5rem;
}

.label .fields span::after {
  content: '';
  flex: 1;
  border-block-end: 1px dashed var(--line);
  margin-block-end: 0.45em;
}

.label .weight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.label .weight {
  flex-wrap: wrap;
  gap: 0 0.75rem;
  white-space: nowrap;
}

.label .weight b {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
}

@keyframes label-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tick {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ===== Section heads ===== */
.section {
  padding-block: var(--section);
}

.head {
  display: grid;
  gap: 0.75rem;
  max-inline-size: 42rem;
  margin-block-end: clamp(2.5rem, 5vw, 3.5rem);
}

.head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== Products ===== */
.products .list {
  border-block-start: 1px solid var(--line);
}

.products .item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  align-items: start;
  padding-block: 2rem;
  border-block-end: 1px solid var(--line);
}

.products .pict {
  grid-row: span 2;
  inline-size: 4.5rem;
  block-size: 4.5rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--film);
}

.products h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.products .item p {
  max-inline-size: 34rem;
  color: var(--muted);
}

.products .specs {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products .specs li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .products .item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 2rem;
  }
  .products .pict {
    inline-size: 5.5rem;
    block-size: 5.5rem;
    padding: 1rem;
  }
}


/* ===== Size chart (drawn to scale) ===== */
.sizes {
  background: var(--film);
}

/* --u = pixels per centimetre; 2 rows of 4, the widest row is 37+45+55+65 = 202 cm.
   Fixed steps for old browsers; browsers with container queries scale it to the space. */
.sizes .chart {
  --gap: 1rem;
  --u: 1.15px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: end;
  gap: 2rem var(--gap);
}

.sizes .bag {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.sizes .bag svg {
  inline-size: calc(var(--w) * var(--u));
  block-size: calc(var(--h) * var(--u));
  max-width: none;
  overflow: visible;
}

.sizes .bag path {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* negative margins keep the label from widening its column, so every bag keeps its true scale */
.sizes .bag figcaption {
  margin-inline: -1.5rem;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw + 0.4rem, 0.95rem);
  line-height: 1.3;
  white-space: nowrap;
}

.sizes .note {
  margin-block-start: 2.5rem;
  color: var(--muted);
}

.sizes .note a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 600px) {
  .sizes .chart {
    --u: 2.4px;
  }
}

/* one row of 8: 18+20+25+30+37+45+55+65 = 295 cm */
@media (min-width: 1100px) {
  .sizes .chart {
    --gap: 1.5rem;
    --u: 2.8px;
    grid-template-columns: repeat(8, auto);
  }
}

@supports (container-type: inline-size) {
  .sizes .chart {
    --u: min(3px, (100cqi - 3 * var(--gap)) / 202);
    container-type: inline-size;
  }
  @media (min-width: 1100px) {
    .sizes .chart {
      --u: min(3px, (100cqi - 7 * var(--gap)) / 295);
    }
  }
}

/* ===== Factory ===== */
.factory .steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.factory .steps li {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding-inline-start: 4rem;
  counter-increment: step;
}

.factory .steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
}

html[lang='fa'] .factory .steps li::before {
  content: counter(step, persian);
}

.factory .steps h3 {
  font-size: 1.25rem;
}

.factory .steps p {
  color: var(--muted);
}

@media (min-width: 900px) {
  .factory .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  .factory .steps li {
    padding-inline-start: 0;
    padding-block-start: 4.25rem;
  }
  .factory .steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-block-start: 1.375rem;
    inset-inline-start: 3.5rem;
    inset-inline-end: -1.25rem;
    border-block-start: 2px dashed var(--sky);
  }
}

.factory .about {
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
  padding-block-start: 2.5rem;
  border-block-start: 1px solid var(--line);
}

.factory .about p {
  max-inline-size: 38rem;
  font-size: 1.15rem;
}

/* ===== Exports (the countries we ship to) ===== */
.exports {
  background: var(--film);
}

.exports .route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.exports .route li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.exports .route img {
  inline-size: 3rem;
  block-size: 2.25rem;
  margin-block-end: 0.15rem;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--ring);
  object-fit: cover;
}

/* the last tile: an empty flag slot that links to Contact */
.exports .route .yours {
  padding: 0;
  border: 1px dashed var(--sky);
  background: transparent;
}

.exports .route .yours a {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  block-size: 100%;
  padding: 1rem;
  border-radius: inherit;
  color: var(--link);
}

.exports .route .yours a:hover {
  background: var(--surface);
}

.exports .route .yours .slot {
  position: relative;
  inline-size: 3rem;
  block-size: 2.25rem;
  margin-block-end: 0.15rem;
  border: 1.5px dashed var(--sky);
  border-radius: 5px;
}

.exports .route .yours .slot::before,
.exports .route .yours .slot::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 0.9rem;
  block-size: 2px;
  background: var(--brand);
  translate: -50% -50%;
}

.exports .route .yours .slot::after {
  rotate: 90deg;
}

.exports .route .yours small {
  margin-block-start: -0.5rem;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 700px) {
  .exports .route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .exports .route {
    gap: 1rem;
  }
  .exports .route li {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
  }
  .exports .route .yours a {
    padding: 1.25rem 1.5rem;
  }
}

/* ===== Contact (the business card) ===== */
.contact {
  padding-block: var(--section);
}

.contact .card {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  border-end-end-radius: clamp(5rem, 20vw, 15rem) clamp(4rem, 10vw, 8rem);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}


.contact h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.contact .intro p {
  margin-block-start: 0.75rem;
  max-inline-size: 30rem;
  font-size: 1.1rem;
}

.contact .phones {
  display: grid;
  gap: 0.25rem;
}

.contact .phones a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.28);
}

.contact .phones span {
  font-size: 0.95rem;
}

.contact .phones b {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
}

.contact .phones a:hover b {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact address {
  display: grid;
  gap: 1rem;
  justify-items: start;
  font-style: normal;
}

.contact address span {
  font-size: 0.95rem;
}

.contact address p {
  max-inline-size: 30rem;
}

@media (min-width: 900px) {
  .contact .card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 4rem;
    border-end-end-radius: 28px;
    border-end-start-radius: 15rem 8rem;
  }
  .contact .intro {
    grid-row: span 2;
  }
}

/* ===== Footer ===== */
.footer {
  padding-block: 2.5rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer img {
  block-size: 2.4rem;
  inline-size: auto;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer a:hover {
  color: var(--link);
}

.contact .card :focus-visible {
  outline-color: var(--white);
}
