/*
Theme Name: Rörmokare på väg
Theme URI: https://www.rormokarepavag.se/
Author: Happy Digital
Author URI: https://happydigital.se/
Description: Modernt, snabbt one-page-tema för rormokarepavag.se – rörmokare och VVS i Stockholm med snabb utryckning.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rormokare-pa-vag
*/

/* =========================================================
   Rörmokare på väg – one-page-tema
   ========================================================= */
:root {
    --slate-900: #0f1b2d;
    --slate-800: #1b2a41;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #eef2f7;
    --slate-50:  #f6f9fc;
    --accent:    #2563eb;
    --accent-dark: #1d4ed8;
    --cta:       #f97316;
    --cta-dark:  #ea580c;
    --white: #ffffff;
    --maxw: 1100px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--slate-900); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
strong { color: var(--slate-900); }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
    padding: 13px 28px; border-radius: 999px; transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-cta { background: var(--cta); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--slate-900); color: #cbd5e1; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--cta); }
.topbar .sep { color: var(--slate-500); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--slate-100); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--slate-900); }
.brand:hover { color: var(--slate-900); }
.brand-icon { width: 26px; height: 26px; fill: var(--accent); flex-shrink: 0; }
.brand img { max-height: 42px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--slate-700); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--accent-dark); }
.header-phone { display: inline-block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--slate-800); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    background: radial-gradient(1200px 420px at 82% -10%, rgba(37,99,235,.42), transparent 60%),
                linear-gradient(160deg, var(--slate-900), var(--slate-800));
    padding: 96px 0 104px; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px; background: var(--white); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.hero .container { position: relative; z-index: 1; max-width: 860px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; font-weight: 600; color: #7dd3fc; margin-bottom: 14px; }
.hero h1 { font-size: clamp(46px, 8.5vw, 96px); font-style: italic; color: #fff; margin: 0 0 22px; text-shadow: 0 20px 45px rgba(0,0,0,.45); }
.hero-lead { font-size: 19px; color: #dbe4ee; max-width: 700px; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #cbd5e1; font-size: 14.5px; }
.hero-badges span::before { content: "✓ "; color: #7dd3fc; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--slate-50); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--accent-dark); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--slate-500); font-size: 17px; margin: 0; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,27,45,.12); }
.service-card .ico { font-size: 30px; line-height: 1; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--slate-700); margin: 0; font-size: 15.5px; }

/* ---------- Why / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { text-align: center; padding: 10px; }
.feature .ico { font-size: 28px; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--slate-500); font-size: 15px; margin: 0; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .lead { font-size: 18px; color: var(--slate-700); }
.about-box { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.about-box h3 { color: #fff; }
.about-box p { color: #dbe9ff; }
.about-box .btn { background: #fff; color: var(--accent-dark); margin-top: 8px; }
.about-box .btn:hover { background: #f1f5f9; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--slate-100); border-radius: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--slate-900); }
.faq-q:hover { color: var(--accent-dark); }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.faq-icon::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-icon::after  { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 22px 20px; color: var(--slate-700); }
.faq-item.open .faq-a { max-height: 360px; }

/* ---------- Contact / CTA ---------- */
.cta-band { background: linear-gradient(160deg, var(--slate-900), var(--slate-800)); color: #fff; border-radius: 18px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.contact-card { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.contact-card .ico { font-size: 26px; display: block; margin-bottom: 10px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--slate-700); }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #cbd5e1; padding-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 440px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #94a3b8; margin-top: 12px; }
.footer-contact { margin-top: 10px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--cta); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.footer-nav a { color: #cbd5e1; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 14px; color: #94a3b8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsivt ---------- */
@media (max-width: 920px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .header-phone { display: none; }
    .nav-toggle { display: flex; }
    .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-100); box-shadow: var(--shadow); display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px; }
    .main-nav li { border-bottom: 1px solid var(--slate-100); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 14px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { padding: 72px 0 84px; }
    .cta-band { padding: 34px 22px; }
    .topbar-inner { justify-content: center; }
}
