/* Bidan Equipment Rental & Repair — Kaynaaan Digital one-page build
   Brand colours taken from the client's business card: royal navy, signal yellow, gold swoosh. */

/* Self-hosted fonts (latin + Cairo arabic subsets only) so no third-party request blocks first paint. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("/assets/fonts/cairo-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --brand-900: #061A4D;
  --brand-800: #0B2A78;
  --brand-700: #0F3A9E;
  --brand-600: #1D4FC4;
  --brand-100: #DCE5F8;
  --brand-50:  #F2F5FC;
  --accent:    #FFD200;
  --accent-700:#E0B400;
  --gold:      #C99A2E;
  --wa:        #1FA855;
  --wa-700:    #178443;
  --ink:       #0A1433;
  --body:      #3C4663;
  --muted:     #66708C;
  --line:      #D7DEEE;
  --white:     #FFFFFF;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgb(6 26 77 / .08);
  --shadow-md: 0 10px 28px -14px rgb(6 26 77 / .35);
  --shadow-lg: 0 24px 48px -20px rgb(6 26 77 / .45);
  --wrap: 1200px;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;

  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: clamp(1.1rem, 1.05rem + .25vw, 1.25rem);
  --t-lg: clamp(1.25rem, 1.15rem + .5vw, 1.563rem);
  --t-xl: clamp(1.563rem, 1.35rem + 1vw, 1.953rem);
  --t-2xl: clamp(2rem, 1.6rem + 2vw, 3.05rem);
  --t-3xl: clamp(2.6rem, 1.8rem + 4vw, 4.77rem);

  --section: 66px;
  --header-h: 70px;
  --hazard: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--brand-900) 16px 32px);
}
@media (min-width: 768px) { :root { --section: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6; color: var(--body); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; color: var(--ink); line-height: 1.02; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="ar"] { font-family: var(--f-ar); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { inset-block-start: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.section { padding-block: var(--section); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: var(--t-base); line-height: 1.1; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 24px; font-size: var(--t-md); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-700); }
.btn-call { background: var(--accent); color: var(--brand-900); }
.btn-call:hover { background: var(--accent-700); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; inset-block-start: 0; z-index: 70; background: var(--white); border-block-end: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; color: var(--brand-800); letter-spacing: .02em; }
.brand-sub { font-size: .8rem; font-weight: 600; color: var(--muted); margin-block-start: 2px; }
.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { inset-block-start: -6px; }
.nav-toggle-bars::after { inset-block-start: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
/* Mobile menu: off-canvas drawer that slides in from the left. */
.nav-backdrop { position: fixed; inset: 0; z-index: 1; background: rgb(6 26 77 / .55); opacity: 0; visibility: hidden; transition: opacity .28s, visibility 0s .28s; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .28s, visibility 0s; }
.site-nav { position: fixed; z-index: 2; inset-block: 0; left: 0; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 4px; padding: 0 20px 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--white); box-shadow: var(--shadow-lg); transform: translateX(-100%); visibility: hidden; transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s .28s; }
.site-nav.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
html.nav-open { overflow: hidden; }
.nav-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); margin-block-end: 8px; border-block-end: 1px solid var(--line); }
.nav-title { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-800); }
.nav-close { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-close::before, .nav-close::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.nav-close::after { transform: rotate(-45deg); }
.site-nav a:not(.btn) { padding: 12px 4px; text-decoration: none; font-weight: 600; color: var(--ink); border-block-end: 1px solid var(--line); }
.site-nav a[aria-current="true"] { color: var(--brand-600); }
.nav-cta { margin-block-start: 12px; }
@media (min-width: 1000px) {
  .nav-toggle, .nav-head, .nav-backdrop { display: none; }
  .site-nav { position: static; width: auto; flex-direction: row; align-items: center; gap: 28px; padding: 0; overflow: visible; background: none; box-shadow: none; transform: none; visibility: visible; transition: none; }
  .site-nav a:not(.btn) { padding: 6px 0; border: 0; border-block-end: 3px solid transparent; }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { border-block-end-color: var(--accent); color: var(--brand-800); }
  .nav-cta { margin: 0; min-height: 44px; }
}

/* Hero */
.hero { position: relative; background:
  radial-gradient(120% 90% at 100% 0, var(--brand-700) 0, transparent 60%),
  var(--brand-800); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-inline: -10% -10%; inset-block-end: 14px; height: 56px; border-block-start: 3px solid var(--gold); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 40px; padding-block: 48px 64px; }
.hero-ar { text-align: end; font-size: var(--t-lg); font-weight: 800; color: var(--accent); line-height: 1.5; }
.hero h1 { font-size: var(--t-3xl); color: var(--white); text-transform: uppercase; margin-block-start: 8px; max-width: 13ch; }
.hero-sub { font-size: var(--t-md); color: rgb(255 255 255 / .88); max-width: 42ch; margin-block-start: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.pills li { padding: 6px 14px; border-radius: 6px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .28); font-weight: 600; font-size: var(--t-sm); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.hero-yard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-self: center; }
.hero-yard li { background: var(--white); border-radius: 12px; border: 3px solid #29A3DC; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.hero-yard img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hero-yard li:nth-child(2) { transform: translateY(-14px); }
.hero-yard li:nth-child(5) { transform: translateY(-14px); }
.hero-yard li:nth-child(8) { transform: translateY(-14px); }
.hazard { height: 14px; background: var(--hazard); }
.hazard-thin { height: 8px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 80px 96px; }
  .hero-yard { gap: 14px; }
}

/* Section heads */
.section-head { max-width: 640px; margin-block-end: 40px; }
.section-head h2 { font-size: var(--t-2xl); color: var(--brand-800); text-transform: uppercase; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 6px; margin-block-start: 14px; background: var(--hazard); border-radius: 2px; }
.lede { margin-block-start: 14px; font-size: var(--t-md); }

/* Services */
.service-grid { display: grid; gap: 20px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 1px solid var(--line); border-block-start: 6px solid var(--brand-800); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.service svg { width: 52px; height: 52px; padding: 12px; background: var(--accent); color: var(--brand-900); border-radius: 10px; }
.service h3 { font-size: var(--t-xl); color: var(--brand-800); text-transform: uppercase; }
.service p { flex: 1; }
.service-link { font-weight: 700; color: var(--brand-700); text-underline-offset: 4px; }
.service-link:hover { color: var(--brand-900); }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Equipment */
.equipment { background: var(--brand-50); border-block: 1px solid var(--line); }
.eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.eq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.eq img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.eq span { display: block; padding: 10px 12px; border-block-start: 1px solid var(--line); border-inline-start: 5px solid var(--accent); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.15; }
@media (min-width: 640px) { .eq-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .eq-grid { grid-template-columns: repeat(4, 1fr); } }
.eq-note { margin-block-start: 28px; font-size: var(--t-md); }
.eq-note a { font-weight: 700; color: var(--brand-700); text-underline-offset: 4px; }

/* How it works */
.steps { display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 24px; padding-inline-start: 88px; border-radius: var(--radius); background: var(--brand-800); color: rgb(255 255 255 / .86); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 22px; inset-block-start: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--brand-900); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; }
.steps h3 { color: var(--white); font-size: var(--t-xl); text-transform: uppercase; margin-block-end: 6px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact { background: var(--brand-50); border-block-start: 1px solid var(--line); }
.phone-grid { display: grid; gap: 16px; }
.phone-card { padding: 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-inline-start: 6px solid var(--brand-800); box-shadow: var(--shadow-sm); }
.phone-num { font-family: var(--f-display); font-weight: 800; font-size: var(--t-2xl); color: var(--brand-800); letter-spacing: .02em; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 14px; }
@media (min-width: 900px) { .phone-grid { grid-template-columns: repeat(3, 1fr); } }
.info-grid { display: grid; gap: 16px; margin-block-start: 16px; }
.info-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; padding: 20px; border-radius: var(--radius); background: var(--brand-800); color: rgb(255 255 255 / .8); text-decoration: none; transition: background-color .15s; }
.info-card:hover { background: var(--brand-900); }
.info-card svg { grid-row: span 3; width: 52px; height: 52px; padding: 13px; border-radius: 10px; background: var(--accent); color: var(--brand-900); }
.info-label { font-size: var(--t-sm); }
.info-value { font-size: var(--t-lg); font-weight: 700; color: var(--white); line-height: 1.25; }
.info-email { overflow-wrap: anywhere; }
.info-link { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { background: var(--brand-900); color: rgb(255 255 255 / .75); padding-block-end: 104px; }
.footer-row { display: grid; gap: 28px; padding-block-start: 44px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { border-radius: 8px; }
.footer-name { font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg); color: var(--white); text-transform: uppercase; }
.footer-ar { color: var(--accent); font-weight: 700; text-align: start; }
.footer-addr { font-size: var(--t-sm); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block-start: 32px; padding-block-start: 20px; border-block-start: 1px solid rgb(255 255 255 / .15); font-size: var(--t-sm); }
.footer-base a { color: var(--accent); }
@media (min-width: 768px) { .footer-row { grid-template-columns: 1fr auto; align-items: center; } .site-footer { padding-block-end: 44px; } }

/* Sticky mobile contact bar */
.mobile-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97); border-block-start: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(6 26 77 / .4); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.mobile-bar svg { width: 22px; height: 22px; }
.mb-wa { background: var(--wa); color: var(--white); }
.mb-call { background: var(--accent); color: var(--brand-900); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
