/* centralbakeries.com - المركزية للمخبوزات. One bold moment: the gold production line (section #line). */
:root {
  --ink: #1D2B33;       /* dark steel blue */
  --steel: #E9EEF1;     /* stainless page */
  --panel: #FFFFFF;
  --wheat: #F2B705;     /* gold from the logo; the production line */
  --oven: #E2601B;      /* actions */
  --oven-dark: #B94A10;
  --rule: #8E9DA6;
  --muted: #4B5A63;
  --kufi: "Reem Kufi", "Readex Pro", Tahoma, sans-serif;
  --body: "Readex Pro", Tahoma, "Segoe UI", sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--steel); color: var(--ink); font: 400 1.0625rem/1.85 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--kufi); font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid #D3DBE0; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--kufi); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 60px; height: auto; }
.top nav { margin-inline-start: auto; }
.top nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--oven); }
.menu-btn { display: none; margin-inline-start: auto; font: 500 1rem var(--body); background: none; border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 14px; color: var(--ink); cursor: pointer; }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); max-width: 17ch; letter-spacing: 0; }
.hero .lead { margin-top: 20px; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; text-decoration: none; font-weight: 500; padding: 12px 24px; border-radius: 4px; border: 2px solid transparent; }
.btn-oven { background: var(--oven); color: #fff; }
.btn-oven:hover { background: var(--oven-dark); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.hero-img { margin: clamp(36px, 6vw, 64px) 0 0; position: relative; }
.hero-img img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; object-position: center 60%; }
/* the gold line leaves the photo and runs into the production line below */
.hero-img::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--wheat); box-shadow: 0 0 18px 2px rgba(242,183,5,.75); }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; }
.intro { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 1.1rem; }

/* production line: the one dark, glowing section */
.line { background: var(--ink); color: #EEF2F4; }
.line .intro { color: #B9C6CD; }
.stations { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.stations::before { content: ""; position: absolute; top: 43px; inset-inline: 44px; height: 3px; background: var(--wheat); box-shadow: 0 0 14px 1px rgba(242,183,5,.7); transform-origin: right center; }
.js .stations::before { transform: scaleX(0); }
.js .stations.run::before { transform: scaleX(1); transition: transform 1.6s cubic-bezier(.4,0,.2,1); }
.node { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--ink); border: 2px solid var(--wheat); color: var(--wheat); }
.node svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stations h3 { margin-top: 18px; font-size: 1.2rem; color: #fff; }
.stations p { margin-top: 8px; font-size: .97rem; line-height: 1.8; color: #C7D2D8; }

/* services */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { position: sticky; top: 104px; }
.belt { margin: 32px 0 0; max-width: 260px; }
.belt img { border-radius: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 26px 0; border-top: 1px solid #C5CFD5; }
.steps li:last-child { border-bottom: 1px solid #C5CFD5; }
.steps li::before { content: counter(s); grid-row: span 2; font: 700 2.4rem/1 var(--kufi); color: var(--oven); }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 52ch; }

/* about */
.about { background: var(--panel); }
.prose p { margin-top: 18px; max-width: 60ch; }
.facts { margin: 0; border-inline-start: 4px solid var(--wheat); padding-inline-start: 28px; display: grid; gap: 22px; }
.facts dt { font-size: .92rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; font-size: 1.15rem; line-height: 1.6; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.node { text-decoration: none; transition: background .2s, color .2s; }
a.node:hover { background: var(--wheat); color: var(--ink); }
.stations h3 a { text-decoration: none; }
.stations h3 a:hover { text-decoration: underline; text-decoration-color: var(--wheat); text-underline-offset: 6px; }
.top nav a[aria-current="page"] { border-bottom-color: var(--wheat); }

/* inner page head */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); background: var(--panel); border-bottom: 4px solid var(--wheat); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-head .lead { margin-top: 14px; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }

/* photos */
.ph { margin: 0; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* home: browse by bread */
.breads { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.breads a { display: block; position: relative; text-decoration: none; border-radius: 4px; overflow: hidden; background: var(--ink); }
.breads img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: .9; transition: opacity .2s; }
.breads a:hover img { opacity: 1; }
.breads span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(29,43,51,.92)); color: #fff; font: 700 1.35rem/1.3 var(--kufi); border-bottom: 4px solid var(--wheat); }

/* made in Jordan */
.made { background: var(--panel); }
.made .split { align-items: center; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.ticks { list-style: none; margin: 20px 0 28px; padding: 0; }
.ticks li { position: relative; padding-inline-start: 30px; margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--wheat); }

/* home: services as a row of named steps */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; margin: 32px 0 32px; }
.steps-row li { grid-template-columns: 52px 1fr; align-items: center; padding: 20px 0; }
.steps-row li::before { grid-row: auto; font-size: 2rem; }
.steps-row li:last-child { border-bottom: 0; }
.steps-row li:nth-last-child(-n+3) { border-bottom: 1px solid #C5CFD5; }

/* equipment */
.line-mini { padding-block: 40px 48px; }
.line-mini .stations { margin-top: 0; }
.equip.alt, .lineitem.alt { background: var(--panel); }
.equip .split, .lineitem .split { align-items: center; }
.alt .split > :first-child { order: 2; }
.equip-text p { margin-top: 14px; max-width: 54ch; }
.stage { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; margin: 0 0 10px !important; }
.stage-ic { width: 34px; height: 34px; fill: none; stroke: var(--oven); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.equip h2, .lineitem h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.equip-media { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; }
.equip-media .ph img { aspect-ratio: 3 / 4; }
.equip-media .ph:only-child img { aspect-ratio: 4 / 3; }
.drawing { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--ink); border-radius: 4px; color: var(--wheat); box-shadow: inset 0 -4px 0 var(--wheat); }
.drawing svg { width: 46%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ask { background: var(--ink); color: #EEF2F4; border-radius: 4px; padding: 28px 32px; border-inline-start: 6px solid var(--wheat); }
.ask h2 { font-size: 1.4rem; color: #fff; }
.ask ul { margin: 14px 0 0; padding-inline-start: 22px; }
.ask li { margin-top: 6px; color: #C7D2D8; }

/* lines */
.lineitem p { margin-top: 14px; max-width: 56ch; }
.flow-t { margin-top: 28px; font-size: 1.05rem; color: var(--muted); font-family: var(--body); font-weight: 500; }
.flow { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ""; width: 18px; height: 3px; background: var(--wheat); }
.flow a { display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 12px; font-weight: 500; font-size: .95rem; }
.alt .flow a { background: var(--steel); }
.flow a:hover { background: var(--ink); color: #fff; }
.flow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* services page */
.svc { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.svc li { counter-increment: s; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: 40px; border-top: 1px solid #C5CFD5; }
.svc li:first-child { border-top: 0; padding-top: 0; }
.svc-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); display: flex; align-items: baseline; gap: 14px; }
.svc-text h2::before { content: counter(s); font: 700 2.6rem/1 var(--kufi); color: var(--oven); }
.svc-text p { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.svc .ph img { aspect-ratio: 4 / 3; }

/* footer */
.foot { background: var(--steel); border-top: 1px solid #D3DBE0; padding-block: 40px; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 28px; align-items: center; }
.foot img { width: 120px; }
.foot-name { font-family: var(--kufi); font-weight: 700; font-size: 1.1rem; }
.foot p { color: var(--muted); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { text-decoration: none; font-weight: 500; }
.foot-nav a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: .9rem; padding-top: 16px; border-top: 1px solid #D3DBE0; }
.credits { grid-column: 1 / -1; font-size: .8rem; }

/* tablet and phone: the line runs down the page */
@media (max-width: 900px) {
  .stations { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .stations::before { top: 44px; bottom: 44px; inset-inline-start: 43px; inset-inline-end: auto; width: 3px; height: auto; transform-origin: center top; }
  .js .stations::before { transform: scaleY(0); }
  .js .stations.run::before { transform: scaleY(1); }
  .stations li { display: grid; grid-template-columns: 88px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .stations li .node { grid-row: span 2; }
  .stations h3 { margin-top: 10px; }
  .split, .made .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .alt .split > :first-child { order: 0; }
  .breads { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row li:nth-last-child(-n+3) { border-bottom: 0; }
  .steps-row li:nth-last-child(-n+2) { border-bottom: 1px solid #C5CFD5; }
  .svc li { grid-template-columns: 1fr; gap: 20px; }
  .foot .wrap { grid-template-columns: auto 1fr; }
  .foot-nav { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .menu-btn { display: inline-block; }
  .top .wrap { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; margin: 0; }
  .js .top nav.open { display: block; }
  html:not(.js) .top nav { display: block; }
  .top nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .top nav a { display: block; padding: 12px 0; border-bottom: 1px solid #E1E7EA; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 50px; }
  .node { width: 72px; height: 72px; }
  .node svg { width: 48px; height: 48px; }
  .stations li { grid-template-columns: 72px 1fr; column-gap: 16px; }
  .stations::before { top: 36px; inset-inline-start: 35px; }
  .steps li { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .steps li::before { font-size: 1.9rem; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row li:nth-last-child(-n+2) { border-bottom: 0; }
  .steps-row li:last-child { border-bottom: 1px solid #C5CFD5; }
  .breads { grid-template-columns: 1fr; }
  .breads img { aspect-ratio: 16 / 10; }
  .equip-media { grid-auto-flow: row; }
  .equip-media .ph img { aspect-ratio: 4 / 3; }
  .ask { padding: 22px 20px; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .stations::before, .js .stations.run::before { transform: none; transition: none; }
}
