/*
Theme Name: AutoPro Münster
Theme URI: https://wo.sitevoai.com/
Author: SiteVoAI
Description: A clean, fast workshop theme built for the AutoPro Münster test site.
Version: 1.1.0
Text Domain: autopro-muenster
*/

:root {
  --ink: #102033;
  --navy: #0b1f33;
  --blue: #1565d8;
  --blue-dark: #0b4ba7;
  --orange: #ff6b35;
  --mist: #f1f5f9;
  --line: #dce5ee;
  --muted: #5b6b7d;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(11,31,51,.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .65em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25em; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 17px; color: var(--blue); font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 9px; }
.muted { color: var(--muted); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { background: linear-gradient(90deg,#071523,var(--navy)); color: #c9d8e7; font-size: .76rem; }
.topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; letter-spacing: .01em; }
.topbar__label { display: inline-flex; align-items: center; gap: 8px; }
.topbar__label i { width: 7px; height: 7px; background: #4ee09a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(78,224,154,.11); }
.topbar a { display: inline-flex; gap: 8px; color: #fff; font-weight: 800; }
.topbar a span { color: #8fa5ba; font-weight: 650; }
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(220,229,238,.9); box-shadow: 0 6px 24px rgba(11,31,51,.05); backdrop-filter: blur(14px); }
.site-header__inner { position: relative; min-height: 78px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--navy); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(145deg,#1263d7,#38a8ff); border-radius: 13px; box-shadow: 0 9px 22px rgba(21,101,216,.24); font-size: .86rem; letter-spacing: -.05em; }
.brand__name { font-size: 1.08rem; line-height: 1.1; }
.brand__name small { display: block; margin-top: 5px; color: #718195; font-size: .57rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; min-height: 42px; padding: 9px 9px; color: var(--ink); border-radius: 11px; font-size: .84rem; font-weight: 780; white-space: nowrap; transition: .18s ease; }
.main-nav > ul > li.menu-item-has-children > a::after { content: ""; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.main-nav > ul > .current-menu-item > a, .main-nav > ul > .current-menu-ancestor > a { color: var(--blue); background: #edf5ff; }
.main-nav > ul > li > a:hover { color: var(--blue); background: #f3f7fb; }
.main-nav .sub-menu { position: absolute; top: calc(100% + 11px); left: 0; display: none; min-width: 245px; padding: 9px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 50px rgba(11,31,51,.17); }
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.main-nav .sub-menu li + li { border-top: 1px solid var(--line); }
.main-nav .sub-menu a { display: block; padding: 10px 11px; color: var(--ink); border-radius: 8px; font-size: .84rem; font-weight: 700; }
.main-nav .sub-menu a:hover { color: var(--blue); background: var(--mist); }
.main-nav li:hover > .sub-menu { display: block; }
.nav-toggle { display: none; }
.header-cta { flex: 0 0 auto; min-width: 108px; box-shadow: 0 10px 22px rgba(21,101,216,.22); }
.header-cta b { font-size: 1.08rem; transition: transform .2s ease; }
.header-cta:hover b { transform: translateX(3px); }
.header-cta, .btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 19px; color: #fff !important; background: var(--blue); border: 0; border-radius: 999px; font-size: .86rem; font-weight: 800; line-height: 1.2; transition: .2s ease; }
.header-cta:hover, .btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 12px 25px rgba(21,101,216,.24); }
.btn--orange { background: var(--orange); }
.btn--ghost { color: #fff !important; background: transparent; border: 1px solid rgba(255,255,255,.55); }

.hero { position: relative; min-height: 680px; display: flex; align-items: center; isolation: isolate; color: #fff; background-position: center; background-size: cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(4,18,31,.94) 0%,rgba(4,18,31,.75) 45%,rgba(4,18,31,.08) 78%); }
.hero__content { max-width: 700px; padding-block: 90px; }
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(3.2rem,7vw,6.4rem); }
.hero h1 span { color: #71b8ff; }
.hero__lead { max-width: 620px; color: #e3edf7; font-size: clamp(1.08rem,2vw,1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; color: #dce8f5; font-size: .88rem; font-weight: 700; }
.hero__badges span::before { content: "✓"; margin-right: 8px; color: #6ae29d; }

.page-hero { position: relative; min-height: 390px; display: flex; align-items: end; color: #fff; background-position: center; background-size: cover; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,rgba(5,21,36,.9),rgba(5,21,36,.2)); }
.page-hero__content { padding-block: 70px 54px; }
.page-hero h1 { max-width: 850px; color: #fff; font-size: clamp(2.5rem,5vw,4.8rem); }
.breadcrumbs { margin-bottom: 13px; color: #cbd9e7; font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs a { color: #fff; }

.content-area { padding-block: 78px 96px; }
.content-area > *:first-child { margin-top: 0; }
.content-area > h2, .content-area > .wp-block-heading { margin-top: 1.3em; }
.wp-block-group { margin-block: 48px; }
.wp-block-columns { gap: 28px; margin-block: 42px; }
.wp-block-column { min-width: 0; }
.wp-block-image { margin-block: 30px; }
.wp-block-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.wp-block-quote { margin: 35px 0; padding: 20px 25px; color: var(--navy); background: var(--mist); border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.wp-block-table th, .wp-block-table td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); }
.wp-block-table th { color: #fff; background: var(--navy); }
.wp-block-table tr:nth-child(even) td { background: var(--mist); }

.section { padding-block: 86px; }
.section--mist { background: var(--mist); }
.section--navy { color: #dce8f5; background: var(--navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 740px; margin-bottom: 38px; }
.service-grid, .cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card, .info-card { overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(11,31,51,.07); transition: .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card__body, .info-card { padding: 25px; }
.service-card h3 { margin-bottom: 9px; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card__meta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue); font-size: .82rem; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; margin-block: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { padding: 28px 22px; text-align: center; background: #fff; }
.fact strong { display: block; color: var(--blue); font-size: 2rem; line-height: 1.1; }
.fact span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; }
.split img { width: 100%; min-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; color: #fff; background: linear-gradient(120deg,var(--blue-dark),var(--blue)); border-radius: 24px; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.7rem,3vw,2.6rem); }
.cta-band p { margin: 8px 0 0; color: #dceaff; }
.price-highlight { display: inline-flex; align-items: baseline; gap: 8px; margin: 14px 0 24px; color: var(--blue); }
.price-highlight strong { font-size: 3.7rem; line-height: 1; }
.price-highlight span { color: var(--muted); }
.faq-list details { margin-bottom: 12px; padding: 18px 21px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.faq-list summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.faq-list details p { margin: 14px 0 0; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.team-card { padding: 25px 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.team-avatar { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 15px; color: #fff; background: linear-gradient(135deg,var(--blue),var(--orange)); border-radius: 50%; font-weight: 900; }
.team-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-meta { margin-bottom: 10px; color: var(--blue); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.post-card h2 { font-size: 1.35rem; }
.post-card p { color: var(--muted); font-size: .9rem; }
.entry-content { font-size: 1.06rem; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-panel { padding: 30px; background: var(--mist); border-radius: var(--radius); }
.contact-panel p { margin-bottom: 12px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.booking-form label { display: grid; gap: 7px; color: var(--navy); font-size: .84rem; font-weight: 800; }
.booking-form .wide { grid-column: 1/-1; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 13px 14px; font: inherit; background: #fff; border: 1px solid #cbd7e3; border-radius: 10px; }
.booking-form textarea { min-height: 130px; resize: vertical; }

.site-footer { color: #bdcbda; background: #071523; }
.footer-cta { padding-block: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-cta h2 { margin: 0; color: #fff; font-size: clamp(1.7rem,3vw,2.8rem); }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 45px; padding-block: 58px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #bdcbda; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-block: 19px; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; }

@media (max-width: 1100px) {
  .brand__name small { display: none; }
  .main-nav > ul > li > a { padding-inline: 7px; font-size: .8rem; }
  .header-cta { min-width: 96px; padding-inline: 15px; }
}
@media (max-width: 900px) {
  .site-header__inner { min-height: 70px; }
  .brand { margin-right: auto; }
  .brand__name small { display: block; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
  .nav-toggle__icon { display: grid; gap: 4px; }
  .nav-toggle__icon i { display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 4px; transition: .2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; max-height: calc(100vh - 130px); padding: 12px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav > ul > li > a { justify-content: space-between; min-height: 44px; padding: 10px 12px; font-size: .9rem; }
  .main-nav .sub-menu { position: static; display: block; min-width: 0; padding: 3px 0 8px 15px; background: transparent; border: 0; box-shadow: none; }
  .main-nav .sub-menu::before { display: none; }
  .main-nav .sub-menu li + li { border: 0; }
  .main-nav .sub-menu a { padding: 7px 12px; color: var(--muted); }
  .header-cta { min-width: 96px; }
  .service-grid, .cards-grid, .blog-grid { grid-template-columns: repeat(2,1fr); }
  .facts { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; min-height: 32px; }
  .topbar__label { display: none; }
  .topbar a span { display: none; }
  .brand__name { font-size: 1rem; }
  .brand__name small { font-size: .52rem; }
  .header-cta { display: none; }
  .hero { min-height: 620px; background-position: 64% center; }
  .hero::before { background: rgba(4,18,31,.8); }
  .hero__badges { display: grid; gap: 8px; }
  .service-grid, .cards-grid, .blog-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .team-grid, .facts { grid-template-columns: 1fr 1fr; }
  .split img { min-height: 280px; }
  .cta-band, .footer-cta__inner { display: block; }
  .cta-band .btn, .footer-cta .btn { margin-top: 22px; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-form .wide { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
}
