/* Rorgrand startsida (front-page.php). Alla klasser börjar på rgh-. */
.rgh { --bg: #f7f4ef; --sand: #efe7dc; --sandb: #dfd2bc; --line: #ddd2c2; --slate: #455b66; --dark: #0f1316; --ink: #14191c; --mut: #3c474d;
  background: var(--bg); color: var(--ink); font-family: var(--rg-font, "Space Grotesk", sans-serif); font-size: 16px; line-height: 1.5; }
.rgh * { box-sizing: border-box; }
.rgh h1, .rgh h2, .rgh h3, .rgh h4 { font-family: inherit; text-transform: none; color: inherit; }
.rgh-wrap { max-width: var(--bredd, 1360px); margin: 0 auto; padding-inline: clamp(16px, 4vw, 64px); }
.rgh-eb { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.rgh h2 { margin: 0 0 20px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.rgh-lead { max-width: 640px; margin: 0; font-size: 18px; color: var(--mut); }
.rgh-lead--s { font-size: 16px; }
.rgh-lead--d { color: #dfe4e7; font-size: 16px; max-width: 460px; }
.rgh-btn { display: inline-block; padding: 12px 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; cursor: pointer; font-family: inherit; }
.rgh-btn:hover { background: var(--ink); color: #fff; }
.rgh-btn--w { background: #fff; border-color: #fff; color: #111; }
.rgh-btn--w:hover { background: var(--sand); color: #111; border-color: var(--sand); }
.rgh-btn--l { border-color: #fff; color: #fff; }
.rgh-btn--l:hover { background: #fff; color: #111; }
.rgh-btn--s { background: var(--slate); border-color: var(--slate); color: #fff; }
.rgh-btn--s:hover { background: #2c3b43; border-color: #2c3b43; }
.rgh-link { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.rgh-chk { list-style: none; margin: 0 0 28px; padding: 0; }
.rgh-chk li { display: flex; gap: 12px; align-items: center; margin: 9px 0; font-size: 15px; }
.rgh-chk svg { flex: none; width: 18px; height: 18px; }
.rgh-chk--ink { margin-top: 22px; }

/* Hero */
.rgh-hero { position: relative; min-height: min(var(--hero-hojd, 760px), 90vh); overflow: hidden; background: #2b3237; }
.rgh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rgh-hero__ov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,17,.78) 0%, rgba(10,14,17,.5) 42%, rgba(10,14,17,.05) 80%); }
.rgh-hero__tx { position: relative; max-width: 700px; padding: 120px clamp(16px, 4vw, 64px) 120px; margin-left: max(0px, calc((100% - var(--bredd, 1360px)) / 2)); color: #fff; display: flex; flex-direction: column; align-items: flex-start; min-height: min(var(--hero-hojd, 760px), 90vh); justify-content: var(--hero-text-lage, flex-end); }
.rgh-hero h1 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.rgh-hero p { margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: #e9ecee; }

.rgh-sec { padding: var(--sektion-luft, 96px) 0; }
.rgh-sec--tight { padding-top: 24px; }
.rgh-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rgh-grid { display: grid; grid-template-columns: repeat(var(--kolumner, 3), 1fr); gap: 24px; margin-top: 56px; }
.rgh-card, .rgh-pc { display: flex; flex-direction: column; background: var(--sand); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.rgh-card:hover, .rgh-pc:hover { box-shadow: 0 12px 30px rgba(20,25,28,.12); transform: translateY(-2px); color: inherit; }
.rgh-card__im { display: block; height: var(--kortbild-hojd, 250px); overflow: hidden; }
.rgh-card__im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rgh-card__bd, .rgh-pc__bd { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 30px; }
.rgh-card h3 { margin: 0 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.rgh-card p, .rgh-pc p { margin: 0 0 22px; font-size: 15px; color: var(--mut); }
.rgh-card .rgh-link, .rgh-pc .rgh-link { margin-top: auto; }
.rgh-pc__im { display: block; height: var(--kortbild-hojd, 250px); padding: 20px 24px 0; }
.rgh-pc__im img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rgh-pc__im.is-photo { padding: 0; }
.rgh-pc__im.is-photo img { object-fit: cover; }
.rgh-pc__bd { padding-top: 12px; }
.rgh-pc h3 { margin: 0 0 8px; font-size: 23px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.rgh-pc p { margin-bottom: 14px; }
.rgh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rgh-tags span { background: #e3dacb; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; font-weight: 500; color: #40484d; }

.rgh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.rgh-split--top { align-items: start; gap: 96px; }
.rgh-photo { height: 420px; overflow: hidden; }
.rgh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rgh-ds { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: #0f1316; color: #fff; }
.rgh-ds__im { overflow: hidden; }
.rgh-ds__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rgh-ds__tx { padding: 64px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.rgh-ds h2 { font-size: clamp(30px, 3.2vw, 46px); color: #fff; }
.rgh-ds p { max-width: 520px; margin: 0 0 22px; font-size: 16px; color: #dfe4e7; }

.rgh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.rgh-steps b { display: block; font-size: 46px; font-weight: 500; line-height: 1.1; margin-bottom: 12px; }
.rgh-steps h4 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.rgh-steps p { margin: 0; color: var(--mut); }

.rgh-tst { text-align: center; }
.rgh-t3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.rgh-t3 blockquote { margin: 0 0 22px; padding: 0; border: 0; font-size: 18px; color: #222; font-style: normal; }
.rgh-t3 .n { font-weight: 600; }
.rgh-t3 .r { font-size: 14px; color: var(--mut); }

.rgh-band { background: var(--sandb); }
.rgh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.rgh-wc { background: #fff; padding: 36px 36px 40px; border: 1px solid var(--line); }
.rgh-wc__ic { display: flex; width: 44px; height: 44px; border: 1px solid var(--line); align-items: center; justify-content: center; margin-bottom: 26px; color: var(--slate); }
.rgh-wc h3 { margin: 0 0 12px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.rgh-wc p { margin: 0 0 28px; color: var(--mut); }

.rgh-faq { margin-top: 48px; border-top: 1px solid #c9bfae; }
.rgh-faq details { border-bottom: 1px solid #c9bfae; padding: 0; }
.rgh-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; }
.rgh-faq summary::-webkit-details-marker { display: none; }
.rgh-faq summary i { position: relative; flex: 0 0 18px; height: 18px; }
.rgh-faq summary i::before, .rgh-faq summary i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; }
.rgh-faq summary i::after { transform: rotate(90deg); transition: transform .2s; }
.rgh-faq details[open] summary i::after { transform: rotate(0); }
.rgh-faq details p { margin: -8px 0 26px; max-width: 880px; color: var(--mut); }
.rgh-faq__h { margin: 64px 0 12px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.rgh-faq__h + p { margin-bottom: 22px; }

.rgh-contact { background: var(--dark); color: #fff; padding: var(--sektion-luft, 96px) 0; }
.rgh-contact h2 { color: #fff; }
.rgh-form label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.rgh-form input[type="text"], .rgh-form input[type="email"], .rgh-form select, .rgh-form textarea { display: block; width: 100%; margin: 0 0 22px; padding: 11px 14px; border: 1px solid #3a4349; border-radius: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; box-shadow: none; }
.rgh-form input::placeholder, .rgh-form textarea::placeholder { color: #8a949a; opacity: 1; }
.rgh-form select option { color: #111; }
.rgh-form input:focus-visible, .rgh-form select:focus-visible, .rgh-form textarea:focus-visible { outline: 2px solid #fff; outline-offset: 0; }
.rgh-form .rg-sr { position: absolute; left: -9999px; }
.rgh-form button.rgh-btn { border: 0; }
.rgh-form__msg { margin: 0 0 22px; padding: 12px 14px; background: #1c2429; border-left: 3px solid #fff; font-size: 15px; }
.rgh-form__note { margin: 16px 0 0; font-size: 12px; color: #aab3b8; }

@media (max-width: 1100px) { .rgh-grid { grid-template-columns: repeat(2, 1fr); } .rgh-steps, .rgh-t3 { gap: 28px; } }
@media (max-width: 900px) {
  .rgh-split, .rgh-split--top, .rgh-ds, .rgh-two { grid-template-columns: 1fr; gap: 40px; }
  .rgh-ds { gap: 0; } .rgh-ds__im { height: 280px; }
  .rgh-steps, .rgh-t3 { grid-template-columns: 1fr; }
  .rgh-sec { padding: 64px 0; } .rgh-contact { padding: 64px 0; }
  .rgh-photo { height: 300px; }
}
@media (max-width: 640px) { .rgh-grid { grid-template-columns: 1fr; margin-top: 36px; } .rgh-hero__tx { padding-block: 60px; } }

/* Ordning och synlighet för startsidans sektioner styrs av variablerna i style.css ("JUSTERA HÄR"). */
.rgh { display: flex; flex-direction: column; }
.rgh-s-hero { order: var(--ordning-hero, 1); }
.rgh-s-sortiment { order: var(--ordning-sortiment, 2); display: var(--visa-sortiment, block); }
.rgh-s-grindar { order: var(--ordning-grindar, 3); display: var(--visa-grindar, block); }
.rgh-s-verkstad { order: var(--ordning-verkstad, 4); display: var(--visa-verkstad, block); }
.rgh-s-lackering { order: var(--ordning-lackering, 5); display: var(--visa-lackering, grid); }
.rgh-s-steg { order: var(--ordning-steg, 6); display: var(--visa-steg, block); }
.rgh-s-omdomen { order: var(--ordning-omdomen, 7); display: var(--visa-omdomen, block); }
.rgh-s-vag { order: var(--ordning-vag, 8); display: var(--visa-vag, block); }
.rgh-s-faq { order: var(--ordning-faq, 9); display: var(--visa-faq, block); }
.rgh-s-kontakt { order: var(--ordning-kontakt, 10); display: var(--visa-kontakt, block); }

/* Blocksy + Gutenberg compatibility layer */
.rgh.alignfull { width:100%; max-width:none; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); padding:0; }
.rgh, .rgh .wp-block-group, .rgh .wp-block-image, .rgh .wp-block-buttons, .rgh .wp-block-list { box-sizing:border-box; }
.rgh > .wp-block-group { margin-block:0; }
.rgh .wp-block-group { margin-block-start:0; margin-block-end:0; }
.rgh .wp-block-image { margin:0; }
.rgh .wp-block-image img { display:block; }
.rgh .wp-block-heading { font-family:inherit; }
.rgh .wp-block-paragraph { max-width:none; }
.rgh .wp-block-buttons { margin:8px 0 0; }
.rgh .wp-block-button__link.rgh-btn { border-radius:0; text-decoration:none; }
.rgh .rgh-btn--w { background:#fff; color:#111; border-color:#fff; }
.rgh .rgh-btn--l { border-color:#fff; color:#fff; }
.rgh .rgh-btn--s { background:var(--slate); color:#fff; border-color:var(--slate); }
.rgh-hero__media { position:absolute; inset:0; z-index:0; overflow:hidden; }
.rgh-hero__media figure, .rgh-hero__media img { width:100%; height:100%; }
.rgh-hero__media img { object-fit:cover; }
.rgh-hero__tx { z-index:2; }
.rgh-hero__tx .rgh-eb { color:#fff; }
.rgh-card__im figure, .rgh-pc__im figure { width:100%; height:100%; margin:0; }
.rgh-card__im figure img, .rgh-pc__im figure img { width:100%; height:100%; }
.rgh-photo figure { width:100%; height:100%; margin:0; }
.rgh-photo figure img { width:100%; height:100%; object-fit:cover; }
.rgh-ds__im figure { width:100%; height:100%; margin:0; }
.rgh-ds__im figure img { width:100%; height:100%; object-fit:cover; }
.rgh-step h3 { font-size:46px; line-height:1.1; font-weight:500; margin:0 0 12px; }
.rgh-step h4 { margin:0 0 10px; font-size:22px; }
.rgh-review { background:#fff; border:1px solid var(--line); padding:28px; text-align:left; }
.rgh-review .wp-block-quote { border:0; padding:0; margin:0 0 22px; }
.rgh-review h4 { margin:0; font-size:16px; }
.rgh-review p { color:var(--mut); font-size:14px; }
.rgh .rgh-faq details { margin:0; }
.rgh .rgh-faq details summary { list-style:none; }
.rgh .rgh-faq details summary::-webkit-details-marker { display:none; }
.rgh .rgh-faq details p { margin:0 0 26px; }
.rgh-contact .rgh-form-wrap { width:100%; }
.rgh-contact .rgh-form { width:100%; }
.rgh-contact .wp-block-shortcode { width:100%; }
.rgh .rgh-eb { font-size:12px; line-height:1.4; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.rgh .rgh-chk { list-style:none; padding:0; }
.rgh .rgh-chk li { position:relative; padding-left:28px; }
.rgh .rgh-chk li:before { content:"✓"; position:absolute; left:0; top:0; font-weight:700; }
@media (max-width:900px) { .rgh-hero__tx { min-height:560px; } }
body.home .entry-header, body.home .page-title { display:none !important; }
body.home .entry-content { margin-block:0 !important; }
body.home .rgh.alignfull { margin-top:0 !important; }
.rgh .wp-block-list { margin-top:0; margin-bottom:28px; }
.rgh .wp-block-heading { overflow-wrap:normal; }
