/* swedr.shop: the shared design for the home, services and offers pages */
:root {
  --navy: #12263f;
  --blue: #1d4e89;
  --ink: #1f2a37;
  --muted: #5b6675;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --soft: #eef2f7;
  --border: #dde3ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 38, 63, .05), 0 8px 24px rgba(18, 38, 63, .05);
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* names the generated service pages already use */
  --fg: var(--ink);
  --mut: var(--muted);
  --card: var(--surface);
  --c: var(--blue);
  --grad: linear-gradient(var(--navy), var(--navy));
  --font: var(--font-body);
  --mono: var(--font-body);
  --glass: var(--surface);
  --line: var(--border);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.75; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 26px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--blue); }
.btn.ghost { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { min-height: 40px; padding: 6px 18px; font-size: .92rem; }
.btn.big { min-height: 52px; }

/* Header */
.head { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-size: 1.15rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.menu { display: flex; gap: 26px; margin-inline-start: auto; font-size: .97rem; color: var(--muted); font-weight: 500; }
.menu a:hover { color: var(--navy); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang, .burger { min-height: 40px; min-width: 44px; padding: 0 10px; background: none; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.burger { display: none; }

/* Hero */
.hero { background: var(--surface); padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.facts { display: flex; flex-wrap: wrap; gap: 48px; }
.facts b { display: block; font-size: 1.75rem; color: var(--navy); line-height: 1.2; }
.facts span { color: var(--muted); font-size: .94rem; }
.portrait { border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--soft); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.section.alt .tile { background: var(--bg); box-shadow: none; }
.tile h3 { font-size: 1.18rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile .more { margin-top: auto; padding-top: 16px; color: var(--blue); font-weight: 600; font-size: .95rem; }
a.tile:hover h3, a.tile:hover .more { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 40px; padding: 4px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: .94rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.work-card { padding: 0; overflow: hidden; }
.section.alt .work-card { background: var(--bg); }
.work-card .shot { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.work-card .cat { color: var(--blue); font-size: .85rem; font-weight: 600; margin-bottom: 4px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.skills h3 { font-size: 1.05rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 3px 13px; border-radius: 6px; background: var(--soft); color: var(--navy); font-size: .9rem; font-weight: 500; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.about h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 16px; }
.about h3 { font-size: 1.15rem; margin-bottom: 14px; }
.cv-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cred li { padding: 12px 0; }
.cred li + li { box-shadow: 0 -1px 0 var(--border); }
.cred b { display: block; color: var(--navy); font-weight: 600; font-size: 1rem; }
.cred span { color: var(--muted); font-size: .9rem; }

/* Testimonials */
.quote p { color: var(--ink); font-size: 1rem; margin-bottom: 18px; }
.quote b { margin-top: auto; color: var(--navy); font-size: .98rem; }
.quote span { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--bg); border-radius: var(--radius); padding: 4px 24px; }
.faq summary { padding: 14px 0; font-weight: 600; color: var(--navy); cursor: pointer; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 12px; }
.contact > div > p { color: var(--muted); margin-bottom: 24px; }
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contact-label { font-weight: 600; color: var(--navy); margin-top: 28px; }
.contact-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px; }
.contact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; flex-wrap: wrap; }
.contact-list li + li { box-shadow: 0 -1px 0 var(--border); }
.contact-list span { color: var(--muted); font-size: .94rem; }
.contact-list a, .contact-list b { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* Footer: home and generated pages */
.foot, .footer-pro { background: var(--navy); color: #c7d1dd; padding: 56px 0 28px; font-size: .95rem; }
.foot .cols, .footer-inner { width: min(1160px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot h4, .footer-pro h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.foot .about-text { max-width: 26em; }
.foot strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.foot li, .foot-menu li { margin-bottom: 7px; }
.foot a:hover, .footer-pro a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot .copy, .foot-bottom { width: min(1160px, 100% - 48px); margin: 36px auto 0; padding-top: 20px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); font-size: .88rem; color: #a7b4c3; }
.footer-pro .logo { color: #fff; font-size: 1.1rem; font-weight: 700; }
.footer-pro .logo span { color: inherit; }
.foot-tagline { margin: 8px 0 12px; }
.foot-badge { color: #a7b4c3; font-size: .9rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.badge-dot, .foot-stats { display: none; }

/* Phone call bar */
.callbar { display: none; }

/* Generated service and offers pages */
html body .top { position: sticky; top: 0; inset: auto; width: 100%; height: 72px; padding: 0 max(24px, calc((100% - 1160px) / 2)); border-radius: 0; background: var(--surface); box-shadow: 0 1px 0 var(--border); border: 0; backdrop-filter: none; display: flex; align-items: center; justify-content: space-between; z-index: 20; }
html body .top .logo { color: var(--navy); font-size: 1.1rem; font-weight: 700; }
html body .top .logo span { color: inherit; }
html body .sp, html body .lp { padding-top: 48px; }
html body .sp h1, html body .lp h1 { -webkit-text-fill-color: var(--navy); color: var(--navy); font-weight: 700; }
html body .badge-pill { background: var(--soft); border: 0; color: var(--blue); border-radius: 6px; }
html body .section-title { font-weight: 700; color: var(--navy); }
html body .section-title::before { display: none; }
html body .fl li, html body .pk div, html body .trust div, html body .steps li { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
html body .pk div:hover { transform: none; }
html body .trust b { -webkit-text-fill-color: var(--navy); color: var(--navy); font-family: inherit; }
html body .steps li::before { background: var(--navy); }
html body .trust-banner, html body .hub-card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: none; }
html body .hub-card:hover { transform: none; }
html body .hub-card-title { color: var(--navy); font-weight: 700; }
html body .hub-card-title .icon, html body .trust-stat { display: none; }
html body .hub-time-tag { background: var(--soft); border: 0; color: var(--blue); border-radius: 6px; font-family: inherit; }
html body .rel-grid a, html body .hub-city-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--navy); }
html body .rel-grid a:hover, html body .hub-city-btn:hover { background: var(--soft); border-color: var(--navy); color: var(--navy); transform: none; }
html body .hub-contact-card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
html body .sticky { background: var(--surface); box-shadow: 0 -1px 0 var(--border); backdrop-filter: none; }

/* Layout changes */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot .cols, .footer-inner { grid-template-columns: 1fr 1fr; }
  .menu { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; margin: 0; background: var(--surface); box-shadow: 0 8px 16px rgba(18, 38, 63, .08); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; }
  .head-tools { margin-inline-start: auto; }
  .burger { display: inline-block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 66px; }
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 36px 0 52px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .portrait { order: -1; aspect-ratio: 1 / 1; max-width: 240px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { gap: 26px; justify-content: space-between; }
  .facts b { font-size: 1.4rem; }
  .section { padding: 56px 0; }
  .grid-3, .skills { grid-template-columns: minmax(0, 1fr); }
  .head .wrap { gap: 10px; min-height: 64px; }
  .menu { top: 64px; }
  .head-tools .btn { display: none; }
  .foot .cols, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--border); }
  html body .top { height: 64px; padding: 0 20px; }
}

/* Generated pages use the same button shape as the home page */
html body .btn, html body .btn.big { border-radius: 8px; }

/* Offers page header */
html body .lp { padding-top: 104px; }
html body .lp .top { position: fixed; top: 0; inset-inline: 0; width: auto; height: 64px; padding: 0 20px; border-radius: 0; }
