/* ============================================================================
   Marton Szakértő Kft — theme stylesheet
   Faithful to the live Betheme look. Edit tokens at the top to retune.
   ========================================================================== */

:root {
    /* --- brand colors --- */
    --color-accent:        #655d4c;   /* olive-brown — footer headings, primary buttons, link hover */
    --color-accent-hover:  #4d4636;
    --color-text:          #2b2b2b;
    --color-muted:         #6a6a6a;
    --color-line:          #e5e3df;
    --color-bg:            #ffffff;
    --color-bg-alt:        #fafafa;   /* RÓLUNK section background */
    --color-subheader-bg:  #f4f2ee;   /* page-title strip */
    --color-footer-bg:     #ffffff;
    --color-footer-text:   #000000;
    --color-footer-note:   #a8a8a8;
    --color-overlay:       rgba(0, 0, 0, .35);

    /* --- typography --- */
    --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --fs-body:     16px;
    --fs-small:    14px;
    --fs-large:    18px;
    --fs-h1:       36px;
    --fs-h2:       38px;       /* "RÓLUNK", "FONTOS", section headings */
    --fs-h3:       22px;
    --fs-hero:     46px;
    --fs-hero-sub: 18px;
    --lh-body:     1.6;
    --lh-heading:  1.2;
    --ls-heading:  .12em;      /* big letter-spacing on hero/section titles */

    /* --- spacing & layout --- */
    --container-max: 1220px;
    --gutter:        24px;
    --header-h:      96px;
    --radius:        2px;

    /* --- shadows / motion --- */
    --shadow-soft: 0 2px 4px rgba(0,0,0,.06);
    --t-fast:  .15s ease;
    --t-med:   .35s ease;
    --t-slow:  .9s ease;
}

/* ----- reset (minimal) ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    color: var(--color-text);
    margin: 0 0 .6em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1em; }
a  { color: var(--color-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
strong { font-weight: 700; }

/* Container helper */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px var(--gutter);
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }

.header-contact {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-contact__lines {
    font-size: var(--fs-small);
    color: var(--color-muted);
    line-height: 1.4;
    text-align: right;
}
.header-contact__lines a { color: var(--color-muted); }
.header-contact__lines a:hover { color: var(--color-accent); text-decoration: none; }
.header-action { white-space: nowrap; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    gap: 4px;
    flex-direction: column;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
}

/* ============================================================================
   NAV
   ========================================================================== */
.primary-nav {
    border-top: 1px solid var(--color-line);
    background: var(--color-bg);
}
.nav-list {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: stretch;
}
.nav-list__item { position: relative; }
.nav-list__item > a {
    display: inline-block;
    padding: 14px 18px;
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fs-small);
    letter-spacing: .04em;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-list__item > a:hover,
.nav-list__item.is-current > a {
    color: var(--color-accent);
    text-decoration: none;
}
.nav-list__item.is-current > a {
    box-shadow: inset 0 -3px 0 var(--color-accent);
}

/* Dropdown */
.submenu-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: 6px 8px;
    color: var(--color-text);
}
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav-list__item.has-children:hover > .submenu,
.nav-list__item.has-children:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu__item a {
    display: block;
    padding: 10px 18px;
    color: var(--color-text);
    font-size: var(--fs-small);
}
.submenu__item a:hover,
.submenu__item.is-current a {
    background: var(--color-bg-alt);
    color: var(--color-accent);
    text-decoration: none;
}

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    cursor: pointer;
}
.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    text-decoration: none;
}
.btn--ghost {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn--ghost:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ============================================================================
   SUBHEADER (page-title strip on all non-home pages)
   ========================================================================== */
.subheader {
    background: var(--color-subheader-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 36px 0;
    text-align: center;
}
.subheader h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

/* ============================================================================
   HERO (homepage) — slide bg + white rectangle card anchored bottom-left
   ========================================================================== */
.hero {
    position: relative;
    height: 560px;
    background: #1a1a1a;
}
/* Slides clip themselves via inset:0 — no overflow:hidden on .hero,
   so the white card can extend past the bottom edge without being chopped. */
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity var(--t-slow);
}
.hero__slide.is-active { opacity: 1; }

/* White rectangle. Sits bottom-left, partly extending below the slide.
   Two columns: stacked serif headline | vertical divider | wrapped subtitle. */
.hero__card {
    position: absolute;
    left: 6%;
    bottom: 0;
    transform: translateY(22%);
    background: #fff;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    padding: 36px 56px 36px 44px;
    display: grid;
    /* Headline column sized to its longest natural line; subtitle takes the rest. */
    grid-template-columns: min-content 1px minmax(280px, 1fr);
    column-gap: 36px;
    align-items: center;
    max-width: 780px;
    z-index: 2;
}
.hero__headline {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 500;
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
    /* Tight line-height for the stacked MARTON / SZAKÉRTŐ / KFT lines. */
    line-height: 1.08;
    margin: 0;
}
.hero__divider {
    width: 1px;
    align-self: stretch;
    background: var(--color-line);
    min-height: 110px;
}
.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-hero-sub);
    color: var(--color-muted);
    line-height: 1.55;
    margin: 0;
}

.hero__dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}
.hero__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background var(--t-fast);
}
.hero__dot.is-active { background: #fff; }

/* ============================================================================
   FONTOS block (homepage) — regulatory notice section
   ========================================================================== */
.fontos {
    background: var(--color-bg);
    padding: 140px 0 32px;        /* extra top space to clear hero card overlap */
}
.fontos__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.fontos__body {
    max-width: 1100px;
    color: var(--color-text);
    font-size: var(--fs-body);
    line-height: 1.65;
}
.fontos__body p { margin-bottom: .8em; }
.fontos__body em { font-style: italic; }
.fontos__body strong { font-weight: 700; }

/* ============================================================================
   Section heading (shared: FONTOS title, RÓLUNK title)
   ========================================================================== */
.section-heading {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 500;
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
    margin: 0 0 14px;
    line-height: 1.1;
}
.section-heading--leading { margin-bottom: 28px; }
.section-heading__underline {
    width: 80px; height: 1px;
    margin: 0 0 24px;
    background: var(--color-accent);
}

/* ============================================================================
   RÓLUNK block (homepage) — two-column: photo left, text right
   ========================================================================== */
.rolunk {
    background: var(--color-bg);
    padding: 8px 0 80px;
}
.rolunk__break {
    max-width: var(--container-max);
    margin: 0 auto 56px;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 28px;
}
.rolunk__break-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
    white-space: nowrap;
    margin: 0;
}
.rolunk__break-rule {
    flex: 1;
    height: 1px;
    background: var(--color-accent);
    opacity: .55;
}
.rolunk__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.rolunk__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.rolunk__copy { padding: 8px 0; }
.rolunk__lead {
    font-size: var(--fs-large);
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 18px;
}
.rolunk__lead em { font-style: italic; }
.rolunk__body {
    color: var(--color-muted);
    margin: 0 0 28px;
    line-height: 1.7;
}
.rolunk__cta { margin: 0; }

/* ============================================================================
   PAGE-BODY (default template)
   ========================================================================== */
.page-body {
    padding: 56px 0 72px;
}
.page-body .container {
    max-width: 920px;
}
.page-body p { margin-bottom: 1.1em; }
.page-body h2 {
    margin-top: 1.8em;
    margin-bottom: .6em;
}
.page-body ul, .page-body ol {
    margin: 0 0 1.3em 1.4em;
}
.page-body li { margin-bottom: .25em; }
.page-body img {
    margin: 8px 0 8px 0;
    border-radius: var(--radius);
}
.page-body img.alignleft  { float: left;  margin: 4px 24px 12px 0; max-width: 45%; }
.page-body img.alignright { float: right; margin: 4px 0 12px 24px; max-width: 45%; }
.page-body img.aligncenter { margin: 8px auto; }
.page-body a { text-decoration: underline; }
.page-body a:hover { color: var(--color-accent-hover); }
.page-body .style2 {
    font-size: var(--fs-large);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: .04em;
    text-align: center;
    margin: 1.5em 0 .8em;
}

/* ============================================================================
   CONTACT page
   ========================================================================== */
.contact { padding: 48px 0 72px; }
.contact__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact__map iframe {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}
.contact__card h2 {
    font-size: var(--fs-h3);
    margin-bottom: 16px;
}
.contact__card p { margin-bottom: 14px; }
.contact__extra { margin-top: 40px; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    border-top: 1px solid var(--color-line);
    padding: 22px 0;
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    text-align: center;
}
.copyright {
    margin: 0;
    color: var(--color-footer-text);
    font-size: var(--fs-small);
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    :root {
        --fs-hero:     30px;
        --fs-hero-sub: 16px;
        --fs-h1:       26px;
        --fs-h2:       28px;
    }
    .header-contact__lines { display: none; }   /* free up width — KAPCSOLAT button is enough */
    .hero { height: 420px; }
    .hero__card {
        left: var(--gutter);
        right: var(--gutter);
        max-width: none;
        transform: translateY(28%);
        padding: 22px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero__divider { display: none; }
    .hero__headline { white-space: normal; }

    .fontos { padding-top: 180px; }
    .rolunk__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .rolunk__break { margin-bottom: 32px; }

    .nav-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; padding: 0; gap: 0; }
    .nav-list__item > a { padding: 14px var(--gutter); width: 100%; display: block; box-shadow: none !important; border-bottom: 1px solid var(--color-line); }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; box-shadow: none; padding: 0;
        max-height: 0; overflow: hidden;
        transition: max-height var(--t-med);
    }
    .nav-list__item.has-children.is-open .submenu { max-height: 600px; }
    .submenu__item a { padding-left: calc(var(--gutter) * 2); }
    .submenu-toggle {
        display: inline-block;
        position: absolute;
        right: var(--gutter);
        top: 6px;
    }

    .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .header-action { display: none; }   /* logo + hamburger only on small phones */
    .hero { height: 320px; }
    .rolunk { padding: 44px 0 40px; }
}

/* ============================================================================
   IN-BODY FLOATED IMAGES (Cégünkről)
   WordPress-style alignleft / alignright wrapping around regulatory paragraphs.
   ========================================================================== */
.page-body img.alignleft,
.page-body figure.alignleft {
    float: left;
    max-width: 240px;
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 2px;
}
.page-body img.alignright,
.page-body figure.alignright {
    float: right;
    max-width: 320px;
    height: auto;
    margin: 0 0 16px 24px;
    border-radius: 2px;
}
.page-body figure { margin: 0; padding: 0; }
.page-body figure img { width: 100%; height: auto; }

@media (max-width: 700px) {
    .page-body img.alignleft,
    .page-body figure.alignleft,
    .page-body img.alignright,
    .page-body figure.alignright {
        float: none;
        margin: 16px auto;
        display: block;
        max-width: 100%;
    }
}

/* ============================================================================
   DOWNLOADS (Letöltések)
   ========================================================================== */
.downloads {
    list-style: none;
    padding: 0;
    margin: 16px 0 28px;
}
.downloads li { padding: 4px 0; }
.downloads li a { color: var(--color-text); font-weight: 700; }
.downloads li a:hover { color: var(--color-accent); }
.downloads-group {
    margin-top: 36px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-accent);
}

/* ============================================================================
   STYLE2 — centered olive lead heading used on Egyéb szolgáltatások / Tanúsítás
   ========================================================================== */
.page-body .style2 {
    text-align: center;
    font-size: var(--fs-large);
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: .08em;
    margin: 4px 0 28px;
    font-weight: 600;
}
