/*
Theme Name: MérésBiztos
Theme URI: https://meresbiztos.hu
Author: MérésBiztos
Description: Egyedi, könnyű WordPress téma villamos biztonsági, villámvédelmi és napelempark-felülvizsgálati szolgáltatásokhoz.
Version: 0.1.0
Text Domain: meresbiztos
*/

:root {
  --mb-orange: #ff6a00;
  --mb-orange-dark: #d95500;
  --mb-black: #0c0d0e;
  --mb-dark: #151719;
  --mb-text: #17191b;
  --mb-muted: #686d72;
  --mb-border: #e6e7e9;
  --mb-surface: #f7f7f8;
  --mb-white: #ffffff;
  --mb-radius: 14px;
  --mb-shadow: 0 12px 34px rgba(0,0,0,.08);
  --mb-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mb-text);
  background: var(--mb-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mb-container { width: min(calc(100% - 40px), var(--mb-width)); margin-inline: auto; }

/* Header */
.mb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,13,14,.96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.mb-header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.mb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.mb-brand .custom-logo { width: 42px; height: 42px; object-fit: contain; }
.mb-brand-mark {
  width: 42px; height: 42px; border: 2px solid var(--mb-orange);
  clip-path: polygon(50% 0,100% 24%,100% 76%,50% 100%,0 76%,0 24%);
  display: grid; place-items: center; color: var(--mb-orange); font-size: 23px; font-weight: 900;
}
.mb-brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.mb-brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mb-brand-tagline { font-size: 11px; color: #bfc2c5; margin-top: 5px; }
.mb-primary-nav { margin-left: auto; }
.mb-primary-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.mb-primary-nav a { text-decoration: none; color: #e9eaeb; font-size: 14px; }
.mb-primary-nav a:hover, .mb-primary-nav .current-menu-item > a { color: var(--mb-orange); }
.mb-header-phone { color: #fff; text-decoration: none; font-weight: 750; white-space: nowrap; }
.mb-header-phone::before { content: "☎"; color: var(--mb-orange); margin-right: 7px; }
.mb-menu-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 10px; font-size: 18px; }

/* Content base */
.mb-main { overflow: hidden; }
.entry-content > * { max-width: var(--mb-width); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; }
.entry-content > .alignwide { max-width: 1320px; }
.entry-content h1, .entry-content h2, .entry-content h3 { line-height: 1.15; letter-spacing: -.025em; }
.entry-content h1 { font-size: clamp(38px, 6vw, 68px); }
.entry-content h2 { font-size: clamp(30px, 4vw, 44px); }
.entry-content h3 { font-size: clamp(21px, 2.4vw, 27px); }
.entry-content p { font-size: 17px; }

/* Gutenberg helpers */
.mb-section { padding: 82px 20px; }
.mb-section--tight { padding-block: 54px; }
.mb-section--dark { background: linear-gradient(135deg, #0b0c0d 0%, #16181a 100%); color: #fff; }
.mb-section--soft { background: var(--mb-surface); }
.mb-eyebrow { color: var(--mb-orange); text-transform: uppercase; font-weight: 800; font-size: 13px; letter-spacing: .08em; margin-bottom: 12px; }
.mb-lead { font-size: clamp(18px,2.2vw,22px) !important; color: #d7d9db; max-width: 760px !important; }
.mb-text-muted { color: var(--mb-muted); }
.mb-section--dark .mb-text-muted { color: #b9bdc0; }

/* Hero */
.mb-hero {
  position: relative;
  padding: 96px 20px 82px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,106,0,.19), transparent 22%),
    linear-gradient(125deg, #070809 0%, #111315 58%, #1b1d1f 100%);
}
.mb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to left, black, transparent 75%);
}
.mb-hero > * { position: relative; z-index: 1; }
.mb-hero h1 { max-width: 850px !important; margin-top: 0; margin-bottom: 22px; }
.mb-hero h1 strong { color: var(--mb-orange); }
.mb-hero .wp-block-buttons { margin-top: 30px; gap: 12px; }
.wp-block-button__link { border-radius: 8px !important; font-weight: 750; padding: 14px 22px !important; text-decoration: none; }
.mb-btn-primary .wp-block-button__link { background: var(--mb-orange) !important; color: #fff !important; }
.mb-btn-primary .wp-block-button__link:hover { background: var(--mb-orange-dark) !important; }
.mb-btn-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1px solid var(--mb-orange); }

.mb-trust-row { margin-top: 44px; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mb-trust-item { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.mb-trust-item strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.mb-trust-item p { color: #bfc2c5; font-size: 13px; margin: 0; }
.mb-trust-icon { color: var(--mb-orange); font-size: 24px; line-height: 1; margin-bottom: 8px; }

/* Cards */
.mb-card-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.mb-card { background: #fff; border: 1px solid var(--mb-border); border-radius: var(--mb-radius); padding: 28px; box-shadow: 0 4px 18px rgba(0,0,0,.04); height: 100%; }
.mb-card:hover { transform: translateY(-3px); box-shadow: var(--mb-shadow); transition: .2s ease; }
.mb-card h3 { margin-top: 12px; font-size: 22px; }
.mb-card p { font-size: 15px; color: var(--mb-muted); }
.mb-card-icon { width: 48px; height: 48px; border: 1px solid rgba(255,106,0,.35); border-radius: 12px; display: grid; place-items: center; color: var(--mb-orange); font-size: 24px; }
.mb-card-link { color: var(--mb-orange); font-weight: 800; text-decoration: none; }

/* Why row */
.mb-feature-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; }
.mb-feature { padding: 16px 28px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.mb-feature:last-child { border-right: 0; }
.mb-feature .mb-card-icon { margin-inline: auto; border: 0; }
.mb-feature p { font-size: 14px; color: #b8bbbe; }

/* CTA */
.mb-cta { display: flex !important; align-items: center; justify-content: space-between; gap: 30px; }
.mb-cta h2 { margin: 0 0 8px; }
.mb-cta p { margin: 0; color: var(--mb-muted); }
.mb-cta .wp-block-buttons { flex-shrink: 0; }

/* Inner pages */
.mb-page-hero { padding: 76px 20px 58px; background: #0d0f10; color: #fff; }
.mb-page-hero h1 { margin: 0 0 16px; max-width: 850px !important; }
.mb-page-hero p { max-width: 760px !important; color: #c8cbcd; font-size: 19px; }
.mb-prose { padding: 68px 20px; }
.mb-prose > * { max-width: 820px !important; }
.mb-list-check { padding-left: 0; list-style: none; }
.mb-list-check li { margin: 10px 0; }
.mb-list-check li::before { content: "✓"; color: var(--mb-orange); font-weight: 900; margin-right: 10px; }

/* Footer */
.mb-site-footer { background: #0b0c0d; color: #d8dadd; padding: 54px 0 22px; border-top: 1px solid #212326; }
.mb-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 34px; }
.mb-footer-title { color: #fff; font-weight: 800; margin-bottom: 12px; }
.mb-footer-grid p, .mb-footer-grid a { color: #b9bdc0; font-size: 14px; text-decoration: none; }
.mb-footer-grid a:hover { color: var(--mb-orange); }
.mb-footer-nav ul { margin: 0; padding: 0; list-style: none; }
.mb-footer-nav li { margin-bottom: 7px; }
.mb-footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid #232629; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #858a8e; }

/* Generic */
.mb-notice { background: #fff6ee; border-left: 4px solid var(--mb-orange); padding: 18px 20px; border-radius: 8px; }

@media (max-width: 1060px) {
  .mb-primary-nav, .mb-header-phone { display: none; }
  .mb-menu-toggle { display: block; }
  .mb-primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 82px; background: #0c0d0e; padding: 20px; }
  .mb-primary-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 15px; }
  .mb-card-grid { grid-template-columns: repeat(2,1fr); }
  .mb-trust-row, .mb-feature-grid { grid-template-columns: repeat(2,1fr); }
  .mb-feature:nth-child(2) { border-right: 0; }
  .mb-footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .mb-container { width: min(calc(100% - 28px), var(--mb-width)); }
  .mb-header-inner { min-height: 72px; }
  .mb-brand-name { font-size: 21px; }
  .mb-brand-tagline { display: none; }
  .mb-hero { padding: 72px 14px 60px; }
  .mb-section { padding: 58px 14px; }
  .mb-card-grid, .mb-trust-row, .mb-feature-grid, .mb-footer-grid { grid-template-columns: 1fr; }
  .mb-feature { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .mb-feature:last-child { border-bottom: 0; }
  .mb-cta { flex-direction: column; align-items: flex-start; }
  .mb-footer-bottom { flex-direction: column; }
}
