/*
Theme Name: Hajósiskola
Theme URI: https://hajosiskola.hu/
Author: Hajósiskola
Description: Egyedi, page-builder nélküli WordPress téma a Hajósiskola új weboldalához. V0.1 design sprint.
Version: 0.1.0
Text Domain: hajosiskola
*/

:root {
  --navy: #071d32;
  --navy-2: #0c2944;
  --blue: #087eae;
  --blue-dark: #056487;
  --sky: #eaf4f8;
  --accent: #f26a4f;
  --white: #fff;
  --text: #17232d;
  --muted: #687783;
  --border: #dfe7eb;
  --shadow: 0 16px 50px rgba(7, 29, 50, .10);
  --radius: 18px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 5px 30px rgba(7,29,50,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-branding { display: flex; align-items: center; min-width: 190px; }
.custom-logo { max-height: 58px; width: auto; }
.brand-text { font-weight: 800; letter-spacing: -.03em; font-size: 1.05rem; }
.brand-subtitle { display:block; font-size:.62rem; font-weight:700; letter-spacing:.12em; opacity:.75; text-transform:uppercase; }
.main-navigation ul {
  display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0;
}
.main-navigation a { font-size: .86rem; font-weight: 700; }
.main-navigation a:hover { opacity: .72; }
.header-cta, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: .84rem; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.header-cta { background: var(--accent); color: var(--white); }
.header-cta:hover, .button:hover { transform: translateY(-2px); }
.menu-toggle { display:none; border:0; background:none; color:inherit; padding:10px; cursor:pointer; }

/* Hero */
.hero {
  position: relative; min-height: min(820px, 92vh); color: var(--white);
  display:flex; align-items:center; overflow:hidden; 
  /*background: var(--navy);*/
    background:
        linear-gradient(
            90deg,
            rgba(7, 29, 50, 0.90) 0%,
            rgba(7, 29, 50, 0.70) 32%,
            rgba(7, 29, 50, 0.20) 65%,
            rgba(7, 29, 50, 0.05) 100%
        ),
        url("images/hero-bg.png") center center / cover no-repeat;
  
}

/* A hero tartalma maradjon az előtérben */
.hero .container {
    position: relative;
    z-index: 1;
}


@media (max-width: 768px) {
    .hero {
        min-height: 650px;
        background-position: 62% center;
        background-image:
            linear-gradient(
                180deg,
                rgba(7, 29, 50, 0.80) 0%,
                rgba(7, 29, 50, 0.55) 50%,
                rgba(7, 29, 50, 0.35) 100%
            ),
            url("images/hero-bg.png");
    }
}


.hero-slides, .hero-slide { position:absolute; inset:0; }
.hero-slide {
  background-image: linear-gradient(120deg, #0b304b 0%, #126f91 48%, #8ab6c2 100%);
  background-size:cover; background-position:center;
  opacity:0; transform:scale(1);
  animation: heroFade 18s infinite;
}
.hero-slide:nth-child(1) { opacity:1; animation-delay:0s; }
.hero-slide:nth-child(2) { animation-delay:6s; }
.hero-slide:nth-child(3) { animation-delay:12s; }
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(4,19,34,.80) 0%, rgba(4,19,34,.46) 46%, rgba(4,19,34,.16) 100%);
}
.hero-content { position:relative; z-index:2; padding: 170px 0 100px; max-width: 820px; }
.eyebrow {
  display:inline-flex; align-items:center; gap:10px; margin-bottom:22px;
  color:#d7f2fb; font-size:.78rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
}
.eyebrow::before { content:""; width:28px; height:2px; background:var(--accent); }
.hero h1 {
  margin:0; max-width:800px; font-family:"DM Serif Display", Georgia, serif;
  font-weight:400; font-size:clamp(3.5rem, 7vw, 6.7rem); line-height:.96; letter-spacing:-.045em;
}
.hero-lead { max-width:650px; margin:28px 0 34px; font-size:clamp(1rem,1.5vw,1.2rem); color:rgba(255,255,255,.88); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.button-primary { background:var(--accent); color:#fff; }
.button-secondary { border:1px solid rgba(255,255,255,.45); color:#fff; background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.hero-scroll {
  position:absolute; z-index:3; bottom:28px; left:50%; transform:translateX(-50%);
  width:38px; height:58px; border:1px solid rgba(255,255,255,.5); border-radius:22px;
}
.hero-scroll::after { content:""; position:absolute; left:50%; top:12px; width:4px; height:9px; border-radius:5px; background:#fff; transform:translateX(-50%); animation:scrollDot 1.7s infinite; }

/* General sections */
.section { padding: 110px 0; }
.section-soft { background: var(--sky); }
.section-dark { background: var(--navy); color:#fff; }
.section-heading { max-width:720px; margin-bottom:48px; }
.section-kicker { color:var(--blue); font-size:.76rem; font-weight:900; text-transform:uppercase; letter-spacing:.14em; margin-bottom:12px; }
.section-dark .section-kicker { color:#7bd0ec; }
.section-title {
  margin:0; font-family:"DM Serif Display", Georgia, serif; font-size:clamp(2.6rem,5vw,4.6rem);
  line-height:1; font-weight:400; letter-spacing:-.035em;
}
.section-intro { color:var(--muted); font-size:1.05rem; margin:18px 0 0; }
.section-dark .section-intro { color:rgba(255,255,255,.68); }

/* Goal cards */
.goal-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.goal-card {
  position:relative; min-height:300px; border-radius:var(--radius); overflow:hidden;
  background:var(--navy); color:#fff; isolation:isolate;
}
.goal-card::before {
  content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 20%,rgba(4,19,34,.88) 100%); z-index:-1;
}
.goal-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .6s ease; }
.goal-card:hover img { transform:scale(1.05); }
.goal-content { position:absolute; inset:auto 24px 24px; }
.goal-number { color:#9eddec; font-size:.72rem; font-weight:900; letter-spacing:.15em; }
.goal-card h3 { margin:6px 0 6px; font-size:1.35rem; }
.goal-card p { margin:0; color:rgba(255,255,255,.75); font-size:.88rem; }

/* Courses */
.course-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.course-card {
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fff;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:transparent; }
.course-image { aspect-ratio: 16/10; overflow:hidden; background:linear-gradient(135deg,#0b304b 0%,#087eae 55%,#9cced9 100%); }
.course-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.course-card:hover .course-image img { transform:scale(1.04); }
.course-body { padding:26px; }
.course-meta { color:var(--blue); font-size:.72rem; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.course-card h3 { margin:9px 0 10px; font-size:1.35rem; line-height:1.2; }
.course-card p { color:var(--muted); font-size:.9rem; margin:0 0 22px; }
.course-footer { display:flex; align-items:end; justify-content:space-between; gap:16px; padding-top:18px; border-top:1px solid var(--border); }
.course-price { font-size:1.12rem; font-weight:900; }
.course-link { color:var(--blue); font-weight:900; font-size:.86rem; }

/* Trust */
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(255,255,255,.14); margin-top:50px; }
.trust-item { padding:34px 28px; background:var(--navy); }
.trust-number { font-family:"DM Serif Display", Georgia, serif; font-size:2.6rem; color:#fff; }
.trust-item strong { display:block; margin-top:4px; }
.trust-item span { display:block; margin-top:6px; color:rgba(255,255,255,.6); font-size:.86rem; }

/* Pathway */
.pathway { display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; margin-top:65px; }
.pathway::before { content:""; position:absolute; top:38px; left:12%; right:12%; height:1px; background:var(--border); }
.path-step { position:relative; text-align:center; }
.path-dot { position:relative; z-index:1; margin:0 auto 24px; width:76px; height:76px; display:grid; place-items:center; border-radius:50%; background:#fff; border:1px solid var(--border); font-weight:900; color:var(--blue); }
.path-step h3 { margin:0 0 7px; font-size:1rem; }
.path-step p { margin:0 auto; max-width:190px; color:var(--muted); font-size:.82rem; }

/* CTA */
.cta {
  position:relative; overflow:hidden; background:var(--navy-2); color:#fff; border-radius:28px; padding:70px;
}
.cta::after {
  content:""; position:absolute; width:420px; height:420px; border-radius:50%;
  right:-180px; top:-200px; background:rgba(8,126,174,.28);
}
.cta-content { position:relative; z-index:1; max-width:720px; }
.cta h2 { margin:0; font-family:"DM Serif Display",Georgia,serif; font-weight:400; font-size:clamp(2.4rem,4vw,4rem); line-height:1; }
.cta p { color:rgba(255,255,255,.72); max-width:580px; margin:18px 0 26px; }

/* Footer */
.site-footer { background:#041524; color:#fff; padding:60px 0 30px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:50px; }
.footer-brand h2 { font-family:"DM Serif Display",Georgia,serif; font-weight:400; font-size:2.2rem; margin:0 0 10px; }
.footer-brand p, .footer-col a, .footer-col p { color:rgba(255,255,255,.58); font-size:.86rem; }
.footer-col h3 { margin:0 0 16px; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; }
.footer-col ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-bottom { margin-top:45px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.42); font-size:.75rem; display:flex; justify-content:space-between; gap:20px; }

/* Mobile */
@media (max-width: 1024px) {
  .main-navigation { display:none; position:absolute; top:76px; left:24px; right:24px; padding:22px; background:#fff; color:var(--navy); border-radius:16px; box-shadow:var(--shadow); }
  .main-navigation.is-open { display:block; }
  .main-navigation ul { flex-direction:column; align-items:flex-start; gap:16px; }
  .menu-toggle { display:block; }
  .header-cta { display:none; }
  .goal-grid { grid-template-columns:repeat(2,1fr); }
  .course-grid { grid-template-columns:repeat(2,1fr); }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 700px) {
  .container { width:min(calc(100% - 36px), var(--container)); }
  .header-inner { min-height:74px; }
  .hero { min-height:760px; }
  .hero-content { padding-top:130px; }
  .hero h1 { font-size:clamp(3rem,15vw,4.5rem); }
  .hero-actions { align-items:stretch; flex-direction:column; max-width:320px; }
  .button { width:100%; }
  .section { padding:76px 0; }
  .goal-grid, .course-grid, .trust-grid, .footer-grid { grid-template-columns:1fr; }
  .goal-card { min-height:250px; }
  .pathway { grid-template-columns:1fr; gap:30px; }
  .pathway::before { top:38px; bottom:38px; left:50%; width:1px; height:auto; right:auto; }
  .path-step { display:grid; grid-template-columns:76px 1fr; text-align:left; align-items:center; column-gap:22px; }
  .path-dot { grid-row:span 2; margin:0; }
  .path-step p { margin:0; max-width:none; }
  .cta { padding:42px 28px; border-radius:20px; }
  .footer-bottom { flex-direction:column; }
}

/* Motion */
@keyframes heroFade {
  0%, 27% { opacity:1; transform:scale(1); }
  33%, 94% { opacity:0; transform:scale(1.035); }
  100% { opacity:0; transform:scale(1); }
}
@keyframes scrollDot {
  0% { transform:translate(-50%,0); opacity:0; }
  30% { opacity:1; }
  100% { transform:translate(-50%,20px); opacity:0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* =========================================================
   MEGA MENU — v0.5
   ========================================================= */

.main-navigation > ul > li {
  position: relative;
}

/* Top-level trigger */
.main-navigation .top-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.menu-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.has-mega-menu:hover > .top-menu-link .menu-chevron,
.has-mega-menu:focus-within > .top-menu-link .menu-chevron,
.has-mega-menu.is-open > .top-menu-link .menu-chevron {
  transform: rotate(225deg) translateY(-1px);
}

/* Invisible bridge prevents the menu from closing while moving into it. */
.has-mega-menu::after {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 100%;
  height: 24px;
}

/* Panel */
.mega-menu-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 18px);
  left: 50%;
  width: min(960px, 86vw);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.has-mega-menu:hover > .mega-menu-panel,
.has-mega-menu:focus-within > .mega-menu-panel,
.has-mega-menu.is-open > .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Actual white card */
.mega-menu-inner {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 29, 50, .08);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(7, 29, 50, .20);
  padding: 28px 30px 0;
}

/* Remove any accidental WP submenu inside the panel */
.has-mega-menu > .sub-menu {
  display: none !important;
}

/* Columns */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.mega-menu-column {
  min-width: 0;
}

.mega-menu-heading {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mega-menu-links {
  display: grid;
  gap: 3px;
}

.mega-menu-course {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 5px 7px;
  margin-left: -7px;
  margin-right: -7px;
  border-radius: 8px;
  color: var(--navy) !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mega-menu-course:hover {
  background: #f1f8fb;
  color: var(--blue) !important;
}

.mega-menu-course-title {
  min-width: 0;
}

.mega-menu-course-arrow {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
  color: var(--blue);
}

.mega-menu-course:hover .mega-menu-course-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-menu-all {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--border);
  color: var(--blue) !important;
  font-size: .68rem !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.mega-menu-all:hover {
  color: var(--navy) !important;
}

/* Bottom guidance CTA */
.mega-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 26px -30px 0;
  padding: 17px 30px;
  background: #f1f8fb;
  border-top: 1px solid #e0edf2;
}

.mega-menu-bottom strong {
  display: block;
  color: var(--navy);
  font-size: .78rem;
  line-height: 1.3;
}

.mega-menu-bottom span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .67rem;
}

.mega-menu-bottom > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue) !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.mega-menu-bottom > a:hover {
  color: var(--navy) !important;
}

.mega-menu-mobile-title {
  display: none;
}

/* Tablet */
@media (max-width: 1100px) and (min-width: 1025px) {
  .mega-menu-panel {
    width: min(880px, 90vw);
  }

  .mega-menu-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .mega-menu-bottom {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .mega-menu-course {
    font-size: .72rem !important;
  }
}

/* Mobile / tablet navigation */
@media (max-width: 1024px) {

  .has-mega-menu::after {
    display: none;
  }

  .mega-menu-panel {
    position: static;
    width: auto;
    padding: 0;
    margin: 4px 0 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
    display: none;
  }

  .has-mega-menu.is-open > .mega-menu-panel {
    display: block;
  }

  .mega-menu-inner {
    overflow: visible;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu-grid {
    display: block;
  }

  .mega-menu-column {
    border-top: 1px solid rgba(7, 29, 50, .10);
  }

  .mega-menu-heading {
    position: relative;
    margin: 0;
    padding: 13px 6px;
    color: var(--navy);
    font-size: .72rem;
    cursor: pointer;
  }

  .mega-menu-heading::after {
    content: "+";
    position: absolute;
    right: 7px;
    top: 8px;
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 400;
  }

  .mega-menu-column.is-open .mega-menu-heading::after {
    content: "−";
  }

  .mega-menu-links {
    display: none;
    padding: 0 6px 13px;
  }

  .mega-menu-column.is-open .mega-menu-links {
    display: grid;
  }

  .mega-menu-course {
    margin: 0;
    min-height: 32px;
    padding: 5px 0;
    font-size: .78rem !important;
  }

  .mega-menu-course-arrow {
    opacity: 1;
    transform: none;
  }

  .mega-menu-all {
    margin-top: 7px;
  }

  .mega-menu-bottom {
    display: block;
    margin: 12px 0 0;
    padding: 14px 6px;
    background: transparent;
    border-top: 1px solid rgba(7, 29, 50, .10);
  }

  .mega-menu-bottom > a {
    margin-top: 7px;
  }
}



/* =========================================================
   HERO – STATIC IMAGE
   ========================================================= */

.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    isolation: isolate;
    background: #071d32;
}

/* Hero fotó */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: url("images/hero-bg.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Sötétítés + bal oldali szöveg kontraszt */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(7, 29, 50, 0.94) 0%,
            rgba(7, 29, 50, 0.82) 24%,
            rgba(7, 29, 50, 0.52) 43%,
            rgba(7, 29, 50, 0.18) 67%,
            rgba(7, 29, 50, 0.04) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Desktop */
@media (min-width: 769px) {
    .hero {
        min-height: 700px;
    }

    .hero-background {
        background-position: center center;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero {
        min-height: 680px;
    }

    .hero-background {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 29, 50, 0.90) 0%,
                rgba(7, 29, 50, 0.68) 42%,
                rgba(7, 29, 50, 0.38) 100%
            );
    }
}