/*
Theme Name: FizioMate
Theme URI: https://fiziomate.hu
Author: Kiss Máté
Author URI: https://fiziomate.hu
Description: Egyedi WordPress téma a FizioMate gyógytorna oldalhoz. Támogat időpontfoglaló és kapcsolat plugineket shortcode-okon keresztül.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiziomate
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FFFDF7;
  --bg2: #F5F1E6;
  --dark: #1A4B6E;
  --dark2: #2A6489;
  --accent: #2BA0A8;
  --muted: #6B7785;
  --border: rgba(26,75,110,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --radius: 20px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--dark); overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 56px; height: 94px;
  background: #E8F0F5;
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
.nav-inner { max-width: 1240px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { display: flex; align-items: center; justify-content: center; }
.logo-mark-nav { width: 64px; height: 64px; }
.logo-mark-nav img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark-foot { width: 44px; height: 44px; }
.logo-mark-foot img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--dark); letter-spacing: -0.01em; line-height: 1; display: block; }
.logo-tagline { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0.02em; display: block; margin-top: 6px; font-style: italic; }
.site-footer .logo-text { font-size: 22px; }
.site-footer .logo-tagline { font-size: 14px; margin-top: 4px; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .2s; font-weight: 400; }
.nav-links a:hover { color: var(--dark); }

.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--sans); cursor: pointer; border: none; transition: all .2s; }
.btn-dark { background: var(--dark); color: var(--bg); font-size: 14.5px; font-weight: 500; padding: 11px 24px; border-radius: 100px; }
.btn-dark:hover { background: var(--dark2); transform: translateY(-1px); }
.site-nav .btn-dark { background: var(--accent); color: #fff; }
.site-nav .btn-dark:hover { background: #228A91; }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); font-size: 14.5px; padding: 11px 24px; border-radius: 100px; }
.btn-outline:hover { border-color: var(--dark); background: rgba(26,75,110,.04); }

/* ── HERO ── */
.hero-wrap { min-height: 100vh; display: flex; align-items: center; padding: 0 56px; }
.hero { max-width: 1240px; margin: 0 auto; padding: 120px 0 80px; display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; width: 100%; }
.hero-eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--muted); flex-shrink: 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px,4vw,62px); font-weight: 600; line-height: 1.15; margin-bottom: 24px; text-wrap: pretty; overflow-wrap: break-word; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 19.5px; line-height: 1.7; color: var(--muted); max-width: 580px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust { display: flex; flex-direction: column; gap: 9px; }
.trust-row { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--muted); }
.trust-row::before { content: '✓'; color: var(--dark); font-size: 12px; font-weight: 700; }
.hero-right { position: relative; height: 620px; display: flex; align-items: center; justify-content: center; }
.hero-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(26,75,110,.22)); }

/* ── SECTIONS ── */
section.fm-section { padding: 130px 56px 100px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.inner { max-width: 1240px; margin: 0 auto; width: 100%; }
.eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--muted); flex-shrink: 0; }
h2.section-title { font-family: var(--serif); font-size: clamp(32px,3.5vw,50px); font-weight: 600; line-height: 1.2; text-wrap: pretty; }
h2.section-title em { font-style: italic; color: var(--accent); }

/* ── RÓLAM ── */
.rolam { background: var(--bg2); }
.rolam-grid { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 80px; align-items: start; }
.rolam-grid > .rolam-img { order: 2; }
.rolam-grid > .rolam-text { order: 1; }
.rolam-img { border-radius: 24px; aspect-ratio: 1/1; position: relative; overflow: hidden; background: #E6EDF1; width: 100%; max-width: 420px; align-self: start; margin-left: auto; margin-top: 200px; box-shadow: 0 0 0 1.5px var(--accent); }
.rolam-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rolam-text h2 { margin-bottom: 26px; }
.rolam-text > p:not(.eyebrow) { font-size: 16.5px; line-height: 1.82; color: var(--muted); margin-bottom: 14px; }

/* ── SZOLGÁLTATÁSOK ── */
.szolg-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.szolg-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; align-items: stretch; }
.srv-card { background: var(--bg2); border-radius: var(--radius); padding: 26px 26px 28px; border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.srv-card:hover { transform: translateY(-5px); box-shadow: 0 18px 52px rgba(26,75,110,.10); }
.srv-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.srv-num-inline { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--accent); margin-right: 12px; vertical-align: 4px; }
.srv-card ul { list-style: none; margin: 8px 0 0 0; display: flex; flex-direction: column; gap: 7px; }
.srv-card li { font-size: 14.5px; line-height: 1.55; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.srv-card li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }

/* ── FOLYAMAT ── */
.folyamat-section { background: var(--bg2); }
.folyamat-section h2.section-title { margin-bottom: 72px; }
.steps-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 80px; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 27px; left: 27px; right: 0; height: 1px; background: var(--border); pointer-events: none; z-index: 0; }
.step-circle { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; color: var(--accent); font-weight: 600; margin-bottom: 26px; position: relative; z-index: 1; }
.step h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.72; color: var(--muted); }

/* ── ÁRAK ── */
.arak-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { border-radius: var(--radius); padding: 24px 24px 26px; border: 1.5px solid var(--border); transition: transform .25s, box-shadow .25s; background: var(--bg2); display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 18px 52px rgba(26,75,110,.10); }
.price-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--dark); margin-bottom: 8px; min-height: 52px; }
.price-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; min-height: 66px; }
.price-num { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--dark); margin-bottom: 4px; }
.price-num span { font-size: 16px; font-weight: 400; }
.price-period { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; min-height: 18px; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 14px; }
.incl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.incl-item { font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.incl-item::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.cancel-policy { margin-top: 18px; padding: 14px 24px; background: var(--dark); color: var(--bg); border-radius: var(--radius); display: flex; align-items: center; gap: 16px; }
.cancel-policy .cancel-title { font-family: var(--serif); font-size: 16px; font-weight: 600; flex-shrink: 0; }
.cancel-policy p { font-size: 13px; line-height: 1.55; color: rgba(255,253,247,.88); flex: 1; }
.cancel-policy strong { color: var(--bg); font-weight: 600; }

/* ── GYIK ── */
.gyik-section { background: var(--bg2); }
.gyik-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 88px; align-items: start; margin-top: 56px; }
.gyik-left h2 { margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--dark); text-align: left; gap: 16px; }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .3s, background .3s; color: var(--dark); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--dark); border-color: var(--dark); color: var(--bg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.faq-body p { padding: 0 0 20px; font-size: 14px; line-height: 1.82; color: var(--muted); }

/* ── KAPCSOLAT ── */
.kapcsolat-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; margin-top: 64px; }
.k-info { display: flex; flex-direction: column; }
.k-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.k-row { display: flex; gap: 12px; align-items: flex-start; }
.k-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.k-text strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.k-text span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.map-wrap { border-radius: 14px; overflow: hidden; flex: 1; min-height: 200px; margin-top: 22px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 200px; border: 0; display: block; }

/* WP form styling overrides for Contact Form 7 / WPForms */
.contact-form-wrap { display: flex; flex-direction: column; height: 100%; }
.contact-form-wrap .wpcf7, .contact-form-wrap .wpforms-container { height: 100%; }
.contact-form-wrap p { margin-bottom: 12px; }
.contact-form-wrap label { font-size: 11.5px; font-weight: 600; color: var(--dark); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 5px; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select {
  width: 100%; font-family: var(--sans); font-size: 14px; padding: 10px 14px;
  border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg2);
  color: var(--dark); outline: none; transition: border-color .2s;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus { border-color: var(--dark); }
.contact-form-wrap textarea { resize: vertical; min-height: 110px; }
.contact-form-wrap input[type="submit"], .contact-form-wrap button[type="submit"] {
  background: var(--dark); color: var(--bg); font-size: 14.5px; font-weight: 500;
  padding: 14px 22px; border-radius: 100px; border: none; cursor: pointer;
  width: 100%; margin-top: 12px; transition: background .2s;
}
.contact-form-wrap input[type="submit"]:hover, .contact-form-wrap button[type="submit"]:hover {
  background: var(--dark2);
}

/* ── FOOTER ── */
.site-footer { background: #E8F0F5; padding: 52px 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 56px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer p { font-size: 14px; color: var(--muted); margin: 0; }
.copy-block { display: flex; flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.copy-links { display: flex; gap: 22px; flex-wrap: wrap; }
.copy-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.copy-links a:hover { color: var(--dark); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-wrap { padding: 0 24px; }
  .hero { grid-template-columns: 1fr; padding: 110px 0 64px; }
  .hero-right { display: none; }
  section.fm-section { padding: 72px 24px; }
  .rolam-grid, .gyik-layout, .kapcsolat-layout { grid-template-columns: 1fr; gap: 48px; }
  .rolam-grid > .rolam-img { order: 2; max-width: 100%; aspect-ratio: 4/3; margin: 0; }
  .rolam-grid > .rolam-text { order: 1; }
  .szolg-grid, .arak-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps-row::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .k-details { grid-template-columns: 1fr; }
  .cancel-policy { flex-direction: column; align-items: flex-start; padding: 20px; }
}
