@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;1,700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== MRG Racing design tokens (override platform design_css) ===== */
:root{
  --sl-primary:#e01919;
  --sl-primary-contrast:#ffffff;
  --sl-text:#14161a;
  --sl-muted:#5d6570;
  --sl-border:#e6e8ec;
  --sl-bg:#ffffff;
  --sl-surface:#f4f5f7;
  --sl-font-heading:'Barlow Condensed','Arial Narrow',Arial,sans-serif;
  --sl-font-body:'Inter','Segoe UI',system-ui,sans-serif;
  --sl-radius:10px;
  --sl-btn-radius:6px;
  --mrg-dark:#0c0d10;
  --mrg-dark-2:#15171c;
  --mrg-dark-text:#f5f6f8;
  --mrg-dark-muted:#9aa1ab;
}

/* ===== Typography: condensed uppercase racing headings ===== */
h1,h2,h3,.sl-heading,.sl-hero__heading{
  font-family:var(--sl-font-heading);
  text-transform:uppercase;
  letter-spacing:.025em;
  line-height:1.08;
}
.sl-btn{font-family:var(--sl-font-heading);text-transform:uppercase;letter-spacing:.06em;font-weight:700;}
.sl-eyebrow{color:var(--sl-primary);font-weight:700;text-transform:uppercase;letter-spacing:.14em;}

/* ===== Header: racing stripe ===== */
.sl-header{border-top:3px solid var(--sl-primary);}
.sl-header__brand img{height:44px;width:auto;}
.sl-header__nav a{font-family:var(--sl-font-heading);text-transform:uppercase;letter-spacing:.05em;font-weight:600;font-size:1.05rem;}
.sl-header__nav a.is-active{color:var(--sl-primary);}

/* ===== Hero: compact, no dead space ===== */
.sl-section--hero{padding-block:0;}
.sl-hero--on-image{background-size:cover;background-position:center;}
.sl-hero__inner{padding-top:3.2rem;padding-bottom:4.8rem;}
.sl-hero__overlay{background:linear-gradient(100deg,rgba(8,9,12,.92) 0%,rgba(8,9,12,.55) 55%,rgba(8,9,12,.25) 100%) !important;opacity:1 !important;}
.sl-hero__heading{font-size:clamp(2.2rem,6.5vw,4.2rem);font-weight:700;font-style:italic;color:#fff;position:relative;padding-left:.6rem;}
.sl-hero__heading::before{content:'';position:absolute;left:0;top:.18em;bottom:.12em;width:5px;background:var(--sl-primary);transform:skewX(-12deg);}
.sl-hero__subheading{font-size:clamp(1rem,2vw,1.2rem);max-width:38rem;color:#e8eaee;}
.sl-hero__actions .sl-btn--ghost{border-color:#fff;color:#fff;}
.sl-hero__actions .sl-btn--ghost:hover{background:rgba(255,255,255,.14);}
.sl-hero__strip{background:rgba(10,11,14,.82);backdrop-filter:blur(6px);border-top:2px solid var(--sl-primary) !important;color:#dfe2e7;font-weight:500;}
.sl-hero__fact b{color:#fff;}
.sl-hero__fact b,.sl-hero__fact strong{font-weight:700;}

/* ===== Buttons ===== */
.sl-btn--primary{background:var(--sl-primary);border-color:var(--sl-primary);}
.sl-btn--primary:hover{background:#c01212;border-color:#c01212;}

/* ===== Cards / feature grids: small icon inline with the title, body below ===== */
.sl-card{border:1px solid var(--sl-border);box-shadow:0 1px 2px rgba(10,12,16,.04);}
.sl-feature{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;text-align:left;}
.sl-feature__icon{grid-row:1;grid-column:1;font-size:1.05rem;line-height:1;padding:5px;width:auto;height:auto;margin:0;display:inline-flex;}
.sl-feature h3{grid-row:1;grid-column:2;margin:0;font-size:1.25rem;}
.sl-feature__body{grid-column:1 / -1;margin-top:8px;}
.mrg-hours .sl-feature__body p{font-size:1.25rem;font-weight:700;font-family:var(--sl-font-heading);letter-spacing:.04em;margin:0;}
.mrg-parts .sl-feature h3{font-size:1.1rem;}

/* ===== Prices band: note floats in the middle, BETWEEN the two prices ===== */
.mrg-prices{background:var(--sl-surface);border-top:1px solid var(--sl-border);border-bottom:1px solid var(--sl-border);padding-bottom:44px;}
.mrg-prices .sl-stats{display:grid;grid-template-columns:repeat(2,1fr);}
.mrg-prices .sl-stat__value{font-family:var(--sl-font-heading);font-size:clamp(2.4rem,6vw,3.8rem);font-weight:700;color:var(--sl-primary);font-style:italic;}
.mrg-prices .sl-stat__label{font-size:1.05rem;color:var(--sl-text);font-weight:600;}
.mrg-note .sl-rich-text__body{color:var(--sl-muted);text-align:center;font-size:.92rem;line-height:1.5;}
/* flow-neutral: paints 138px up inside the band, occupies zero height in the flow */
section.mrg-note{margin-top:-138px;margin-bottom:138px;height:0;overflow:visible;padding:0;background:transparent;border:0;position:relative;z-index:2;}
section.mrg-note .sl-rich-text{padding:0;max-width:330px;margin:0 auto;}
section.mrg-note p{margin:0 0 4px;}

/* ===== Dark bands (CTA + stats) ===== */
.mrg-dark-band{background:var(--mrg-dark) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" opacity="0.05"><rect width="14" height="14" fill="white"/><rect x="14" y="14" width="14" height="14" fill="white"/></svg>');color:var(--mrg-dark-text);}
.mrg-dark-band h2{color:#fff;font-size:clamp(1.8rem,4vw,2.6rem);}
.mrg-dark-band .sl-stat__value{color:var(--sl-primary);font-family:var(--sl-font-heading);font-weight:700;font-size:clamp(2rem,5vw,3.2rem);font-style:italic;}
.mrg-dark-band .sl-stat__label{color:var(--mrg-dark-muted);}
.sl-section--cta-band .sl-container{text-align:center;}
.sl-section--cta-band h2{margin:.4rem 0 .6rem;}
.sl-section--cta-band p:not(.sl-eyebrow){color:var(--mrg-dark-muted);max-width:44rem;margin:0 auto 1.4rem;}
.sl-section--cta-band .sl-btn{margin-top:.6rem;}

/* ===== Rich text ===== */
.sl-rich-text__body h2{font-size:1.7rem;margin-top:1.6em;}
.sl-rich-text__body p{line-height:1.7;}
.sl-rich-text__body a{color:var(--sl-primary);}

/* ===== Team ===== */
.sl-person__photo{aspect-ratio:3/2;object-fit:cover;width:100%;border-radius:8px;}
.sl-person__name{font-size:1.25rem;margin:.65rem 0 .1rem;}
.sl-person__role{color:var(--sl-primary);text-transform:uppercase;font-weight:700;letter-spacing:.09em;font-size:.8rem;font-family:var(--sl-font-heading);}

/* ===== Gallery ===== */
.sl-gallery__item img{border-radius:8px;transition:transform .25s ease,filter .25s ease;}
.sl-gallery__item:hover img{transform:scale(1.02);filter:brightness(1.06);}
.sl-band-header h2{font-size:clamp(1.7rem,4vw,2.4rem);}

/* ===== FAQ ===== */
.sl-faq__item{border:1px solid var(--sl-border);border-radius:8px;margin-bottom:.6rem;background:#fff;}
.sl-faq__item summary{font-weight:600;padding:.9rem 1.1rem;cursor:pointer;font-family:var(--sl-font-body);}
.sl-faq__item[open] summary{color:var(--sl-primary);}
.sl-faq__answer{padding:0 1.1rem .95rem;color:var(--sl-muted);line-height:1.65;}
.sl-faq__answer a{color:var(--sl-primary);}

/* ===== Contact ===== */
.sl-contact__form label{font-weight:600;font-size:.92rem;}
.sl-contact__form input,.sl-contact__form select,.sl-contact__form textarea{border-radius:6px;}

/* Contact info panel: muted label left, bold value right, hairline rows */
.sl-contact__info-heading{font-size:1.1rem;margin:1.7rem 0 .35rem;}
.sl-contact__info-heading:first-child{margin-top:0;}
.sl-contact__info-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px solid var(--sl-border);margin:0;}
.sl-contact__info-label{color:var(--sl-muted);font-weight:500;font-size:.88rem;flex:0 0 auto;}
.sl-contact__info-row > span:not(.sl-contact__info-label){text-align:right;font-weight:600;min-width:0;overflow-wrap:anywhere;}
.sl-contact__info-row a{color:var(--sl-primary);text-decoration:none;font-weight:600;}
.sl-contact__hours{width:100%;border-collapse:collapse;}
.sl-contact__hours td{padding:8px 0;border-bottom:1px solid var(--sl-border);vertical-align:top;}
.sl-contact__hours td:first-child{color:var(--sl-muted);font-size:.88rem;}
.sl-contact__hours td:last-child{text-align:right;font-weight:600;}
.sl-contact__hours-note{color:var(--sl-muted);font-size:.85rem;margin-top:.55rem;}

/* ===== Map ===== */
.sl-map{position:relative;}
.sl-map iframe{border-radius:var(--sl-radius);display:block;width:100%;}
/* visible tap affordance on the static map — text comes from the link's own localized aria-label */
.sl-map a[target="_blank"]::after{content:attr(aria-label);position:absolute;right:12px;bottom:12px;background:#ffffff;color:#14161a;font-family:var(--sl-font-body);font-size:.85rem;font-weight:600;padding:8px 14px;border-radius:8px;box-shadow:0 2px 10px rgba(10,12,16,.28);}

/* A heading band belongs to the section under it — no doubled gap between them */
.sl-section--heading{padding-bottom:0;}
.sl-section--heading + .sl-section{padding-top:20px;}

/* ===== Footer: dark ===== */
.sl-footer{background:var(--mrg-dark);color:var(--mrg-dark-text);border-top:3px solid var(--sl-primary);margin-top:0;}
.sl-footer a{color:var(--mrg-dark-muted);}
.sl-footer a:hover{color:#fff;}
.sl-footer h4{color:#fff;font-family:var(--sl-font-heading);text-transform:uppercase;letter-spacing:.08em;}
.sl-footer__brand{color:#fff;font-family:var(--sl-font-heading);text-transform:uppercase;font-weight:700;font-size:1.25rem;}
.sl-footer__bottom{color:var(--mrg-dark-muted);border-top:1px solid rgba(255,255,255,.08);}

/* ===== Page header band ===== */
.sl-section--page-header{background:var(--mrg-dark);color:#fff;}
.sl-section--page-header h1{color:#fff;font-size:clamp(2rem,5.5vw,3.4rem);font-style:italic;position:relative;display:inline-block;padding-left:.55rem;}
.sl-section--page-header h1::before{content:'';position:absolute;left:0;top:.16em;bottom:.1em;width:4px;background:var(--sl-primary);transform:skewX(-12deg);}
.sl-section--page-header p{color:#c9ced6;max-width:44rem;}

/* ============================================================= */
/* =====                 PHONE LAYER (<=720px)             ===== */
/* ============================================================= */
@media (max-width:720px){
  :root{--sl-section-pad:60px;}

  /* Header bar: logo + language + burger only; phone & CTA leave the bar.
     Order: logo … flag-lang, burger at the far right — all on one center line. */
  .sl-header.sl-section{padding-block:0;}
  .sl-header__brand img{height:42px;max-width:200px;}
  .sl-header__inner{gap:8px;min-height:50px;padding-block:4px;align-items:center;}
  .sl-header__brand{order:1;}
  .sl-header__actions{order:2;margin-left:auto;gap:6px;align-items:center;}
  .sl-header__toggle{order:3;margin-left:0;}
  .sl-header__actions .sl-header__tel{display:none;}
  .sl-header__actions .sl-btn{display:none;}
  /* Burger: CSS-drawn bars instead of the ☰ glyph — bigger, and dead-centered with the flag */
  .sl-header__toggle summary{width:46px;height:46px;padding:0;font-size:0;line-height:0;display:flex;align-items:center;justify-content:center;color:var(--sl-text);}
  .sl-header__toggle summary::before{content:'';width:25px;height:3px;border-radius:2px;background:currentColor;box-shadow:0 -8px 0 currentColor,0 8px 0 currentColor;}
  .sl-lang summary{display:flex;align-items:center;padding:6px;}
  .sl-lang summary img{height:20px;width:auto;border-radius:3px;display:block;}
  .sl-header__nav a{font-size:1.15rem;padding:11px 12px;}

  /* Hero: content-driven height, facts strip flows BELOW content (no overlap) */
  .sl-hero{min-height:0;flex-direction:column;align-items:stretch;}
  .sl-hero__inner{padding-top:2.6rem;padding-bottom:.4rem;}
  .sl-hero__strip{position:static;width:100%;margin-top:1.8rem;padding:10px 14px;gap:5px 16px;font-size:.82rem;}
  .sl-hero__heading{font-size:clamp(2rem,9vw,2.6rem);}
  .sl-hero__subheading{font-size:1rem;}
  .sl-hero__actions{flex-direction:column;align-items:stretch;gap:10px;max-width:22rem;}
  .sl-hero__actions .sl-btn{text-align:center;}

  /* Feature cards: phone-size tweaks (layout is global) */
  .sl-feature__icon{font-size:1rem;}
  .sl-feature h3{font-size:1.1rem;}
  .sl-feature__body{margin-top:6px;}

  /* Compact 2-up grids instead of one huge column */
  .mrg-hours .sl-features--4{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
  .mrg-hours .sl-feature__body p{font-size:1.05rem;text-align:left;}
  .mrg-hours .sl-card,.mrg-parts .sl-card{text-align:left;padding:12px;}
  .mrg-parts .sl-features--3{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
  .mrg-parts .sl-feature h3{font-size:.98rem;}

  /* Prices stay side-by-side (two short figures); note sits below them inside the band */
  .mrg-prices .sl-stats{grid-template-columns:repeat(2,1fr);gap:10px;}
  .mrg-prices{padding-bottom:12px;border-bottom:0;}
  section.mrg-note{margin-top:0;margin-bottom:0;height:auto;overflow:visible;background:var(--sl-surface);padding:0 0 24px;border-bottom:1px solid var(--sl-border);}
  section.mrg-note .sl-rich-text{max-width:none;}

  /* CTA bands tighter */
  .sl-section--cta-band .sl-btn{width:100%;max-width:22rem;margin-left:auto;margin-right:auto;display:block;}

  /* Map hugs the footer on phones */
  #sl-section-map{padding-bottom:22px;}
}

/* Team: 2-up on phones (11 drivers in 6 rows, not 11) */
@media (max-width:600px){
  .sl-team{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
  .sl-person__name{font-size:.98rem;}
  .sl-person__role{font-size:.68rem;}
  .sl-person{padding:10px;}
  .sl-gallery--3{gap:8px;}
}

/* sitelab-credit-mark:start — SiteLab logo in front of the SiteLab credit link (2026-11-05, .claude/scripts/credit-mark-sweep.mjs in skills-app-mannagement; re-run replaces this block) */
:is(a[href^="https://sitelab.lv"],a[href^="https://www.sitelab.lv"],a[href^="https://sitelabsites.com"],a[href^="https://www.sitelabsites.com"],a[href^="https://sitelabsites.hu"],a[href^="https://www.sitelabsites.hu"])::before{content:""!important;display:inline-block!important;flex:none!important;position:static!important;width:1.3em!important;height:1.3em!important;margin:0!important;margin-inline-end:.42em!important;padding:0!important;vertical-align:-.32em!important;border:0!important;border-radius:29%!important;opacity:1!important;transform:none!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Cpath fill='%23fff' d='M15.42 24.24L15.42 24.24Q14.15 24.24 13.21 23.85Q12.27 23.47 11.74 22.69Q11.21 21.91 11.19 20.74L11.19 20.74L13.51 20.74Q13.54 21.23 13.78 21.56Q14.02 21.90 14.43 22.07Q14.84 22.23 15.40 22.23L15.40 22.23Q15.90 22.23 16.26 22.10Q16.62 21.96 16.81 21.71Q17.01 21.47 17.01 21.14L17.01 21.14Q17.01 20.85 16.83 20.64Q16.65 20.44 16.28 20.28Q15.92 20.12 15.36 20.00L15.36 20.00L14.28 19.75Q12.96 19.44 12.21 18.76Q11.46 18.08 11.46 16.93L11.46 16.93Q11.46 15.99 11.97 15.27Q12.48 14.56 13.38 14.17Q14.27 13.78 15.42 13.78L15.42 13.78Q16.61 13.78 17.47 14.18Q18.34 14.58 18.82 15.29Q19.30 16.01 19.31 16.95L19.31 16.95L17.00 16.95Q16.95 16.40 16.54 16.09Q16.14 15.78 15.42 15.78L15.42 15.78Q14.94 15.78 14.61 15.91Q14.28 16.03 14.12 16.26Q13.95 16.48 13.95 16.77L13.95 16.77Q13.95 17.08 14.14 17.29Q14.32 17.51 14.66 17.65Q15.01 17.80 15.46 17.90L15.46 17.90L16.34 18.10Q17.08 18.26 17.66 18.53Q18.23 18.80 18.63 19.18Q19.03 19.55 19.24 20.05Q19.45 20.54 19.45 21.15L19.45 21.15Q19.45 22.11 18.97 22.80Q18.49 23.50 17.59 23.87Q16.69 24.24 15.42 24.24ZM27.13 24.10L20.45 24.10L20.45 13.91L22.87 13.91L22.87 22.13L27.13 22.13L27.13 24.10Z'/%3E%3C/svg%3E") center/100% 100% no-repeat,linear-gradient(rgba(43,89,255,.12),rgba(43,89,255,.12)),conic-gradient(from 210deg at 70% 30%,#7a4dff,#2b59ff 30%,#1592e6 45%,#0f9f62 60%,#d98a00 75%,#f0484f 88%,#7a4dff)!important;box-shadow:inset 0 0 0 .034em rgba(255,255,255,.25)!important}
:is(a[href^="https://sitelab.lv"],a[href^="https://www.sitelab.lv"],a[href^="https://sitelabsites.com"],a[href^="https://www.sitelabsites.com"],a[href^="https://sitelabsites.hu"],a[href^="https://www.sitelabsites.hu"]) svg[viewBox="3 5 26 22"]{display:none!important}
/* sitelab-credit-mark:end */
