/* File: public_html/assets/css/site.css */
/* Tangerine Design – Core styles
   - light/dark theme
   - accessibility-first
   - fast, SEO-safe (no layout shift)
*/

/* === SELF-HOSTED FONTS (local woff2) === */
/* Files live in: /assets/fonts/ */

@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("/assets/fonts/inter-v20-latin-regular.woff2") format("woff2");
}
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url("/assets/fonts/inter-v20-latin-500.woff2") format("woff2");
}
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url("/assets/fonts/inter-v20-latin-600.woff2") format("woff2");
}

@font-face{
  font-family:"Sora";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("/assets/fonts/sora-v17-latin-regular.woff2") format("woff2");
}
@font-face{
  font-family:"Sora";
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url("/assets/fonts/sora-v17-latin-600.woff2") format("woff2");
}
@font-face{
  font-family:"Sora";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url("/assets/fonts/sora-v17-latin-700.woff2") format("woff2");
}

/* Optional hard default (only if you DON'T already set these elsewhere) */
/*
:root{
  --td-font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --td-font-head:"Sora",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
body{font-family:var(--td-font-body);}
h1,h2,h3,.td-h1,.td-h2,.td-h3{font-family:var(--td-font-head);}
*/
/* === /SELF-HOSTED FONTS === */

:root {
  --tangerine-500: #E67A3D;
  --tangerine-400: #EE9960;
  --tangerine-600: #C9632F;

  --charcoal-900: #1A1A1A;
  --charcoal-800: #252525;
  --charcoal-700: #3A3A3A;

  --warm-gray-400: #B8B5B2;
  --warm-gray-300: #D6D3D1;

  --off-white: #FAF9F7;
  --sand: #F5F3EF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== THEMES ===== */

.theme-light {
  --bg-primary: var(--off-white);
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #78716C;

  --border-color: #E7E5E4;
  --shadow-color: rgba(28, 25, 23, 0.08);
}

.theme-dark {
  --bg-primary: var(--charcoal-900);
  --bg-secondary: var(--charcoal-800);
  --bg-card: var(--charcoal-800);

  --text-primary: var(--sand);
  --text-secondary: var(--warm-gray-300);
  --text-muted: var(--warm-gray-400);

  --border-color: var(--charcoal-700);
  --shadow-color: rgba(0, 0, 0, 0.45);
}

/* ===== RESET ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ===== UTIL ===== */

.td-container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.td-muted {
  color: var(--text-muted);
}

.td-gradient-text {
  background: linear-gradient(135deg, var(--tangerine-500), var(--tangerine-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.td-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.02;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== TYPOGRAPHY ===== */

.td-h1 {
  font-family: Sora, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.td-h2 {
  font-family: Sora, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.td-h3 {
  font-family: Sora, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.td-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tangerine-500);
  margin-bottom: 0.75rem;
}

.td-lead {
  font-size: 1.1rem;
  max-width: 720px;
}

/* ===== NAV ===== */

.td-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
  border-bottom: 1px solid var(--border-color);
}

/* layout: brand | nav (center) | controls */
.td-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

/* BRAND */
.td-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.td-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.td-brand-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.td-brand-title {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* NAV LINKS (center) */
.td-nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  white-space: nowrap;
}

.td-nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0.95;
}

.td-nav-link:hover {
  color: var(--tangerine-500);
}

.td-nav-link.is-active {
  color: var(--tangerine-500);
  position: relative;
}

.td-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--tangerine-500);
  border-radius: 2px;
  opacity: 0.9;
}

/* CONTROLS (right) */
.td-header-controls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

/* language flags */
.td-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.td-lang-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  filter: saturate(1.05);
}

.td-lang-btn:hover,
.td-lang-btn[aria-pressed="true"] {
  opacity: 1;
}

/* theme toggle */
.td-theme-toggle {
  background: transparent;
  border: 0;
  padding: 4px;              /* FIX: ne omoljon össze */
  width: 32px;               /* FIX: egyvonalban a zászlókkal */
  height: 32px;
  display: inline-flex;      /* FIX */
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  color: var(--text-primary); /* FIX: SÖTÉT módban is látszik */
}

.td-theme-toggle:hover {
  opacity: 1;
}

.td-theme-toggle i {
  color: var(--text-primary);
}

.td-theme-toggle i {
  color: currentColor;
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 820px) {
  .td-nav-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .td-brand-title {
    font-size: 16px;
  }

  .td-header-controls {
    margin-left: auto;
  }

  .td-nav-links {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    white-space: normal;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 8px;
    padding: 6px 0 4px;
  }
}

@media (max-width: 420px) {
  .td-brand-link img {
    width: 36px;
    height: 36px;
  }

  .td-nav-link {
    font-size: 13px;
  }
}

/* ===== HERO ===== */

.td-hero {
  padding: clamp(64px, 12vw, 140px) 0;
}

.td-hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}

.td-btn-primary {
  background: linear-gradient(135deg, var(--tangerine-500), var(--tangerine-600));
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 122, 61, 0.35);
}

.td-btn-primary:hover {
  transform: translateY(-2px);
}

.td-btn-secondary {
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* ===== SECTIONS ===== */

.td-section {
  padding: 80px 0;
}

.td-section-head {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== GRID / CARDS ===== */

.td-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.td-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 28px var(--shadow-color);
}

.td-card-pad {
  padding: 28px;
}

.td-card-hover:hover {
  transform: translateY(-6px);
}

.td-icon {
  font-size: 1.4rem;
  color: var(--tangerine-500);
  margin-bottom: 12px;
}

/* ===== FAQ ===== */

/* =========================
   TD FAQ – existing markup
   ========================= */

.td-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

/* FAQ card */
.td-faq-item {
  border: 1px solid var(--border-color, rgba(0,0,0,.10));
  border-radius: 16px;
  background: var(--bg-secondary, #fff);
  overflow: hidden;
  transition: border-color .15s ease, background-color .15s ease;
}

/* Open state */
.td-faq-item.is-open {
  background: rgba(242, 138, 46, .06);
  border-color: rgba(242, 138, 46, .45);
}

/* Question button */
.td-faq-q {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 18px;

  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary, #111);
}

.td-faq-q:hover {
  background: rgba(0,0,0,.03);
}

.td-faq-q:focus-visible {
  outline: 3px solid rgba(242, 138, 46, .35);
  outline-offset: 2px;
}

/* Title + subtitle */
.td-faq-q strong {
  display: block;
}

.td-faq-q .td-muted {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted, rgba(0,0,0,.65));
}

/* Plus / close icon */
.td-faq-plus {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1.5px solid var(--accent, #f28a2e);
  color: var(--accent, #f28a2e);

  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  transition:
    transform .15s ease,
    background-color .15s ease,
    color .15s ease,
    border-color .15s ease;
}

/* Open state – finomabb, nem harsány */
.td-faq-item.is-open .td-faq-plus {
  background: rgba(242, 138, 46, .12);
  color: var(--accent, #f28a2e);
  border-color: rgba(242, 138, 46, .45);

  /* optikai középre húzás */
  transform: rotate(45deg) translateY(-0.5px);
}

/* Answer */
.td-faq-a {
  padding: 0 18px 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted, rgba(0,0,0,.75));
}

/* Mobile */
@media (max-width: 520px) {
  .td-faq-q {
    padding: 16px 14px;
  }

  .td-faq-a {
    padding: 0 14px 16px;
  }

  .td-faq-plus {
    width: 36px;
    height: 36px;
  }
}

/* ===== FOOTER ===== */

.td-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.td-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.td-footer-links {
  display: flex;
  gap: 20px;
}

.td-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.td-footer a:hover {
  color: var(--tangerine-500);
}

.td-utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 24px;
  font-size: 13px;
  opacity: 0.85;
}

/* ===== MOBILE HAMBURGER NAV ===== */
.td-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.td-nav-toggle i {
  font-size: 18px;
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .td-nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  /* controls always visible on top row */
  .td-header-controls {
    margin-left: auto;
    gap: 10px;
  }

  .td-nav-toggle {
    display: inline-flex;
  }

  /* NAV becomes dropdown panel */
  .td-nav-links {
    width: 100%;
    order: 3;
    display: none;             /* closed */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 6px;
  }

  .td-nav.is-open .td-nav-links {
    display: flex;             /* open */
  }

  .td-nav-link {
    padding: 12px 6px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
  }

  .td-nav-link.is-active::after {
    display: none;             /* underline helyett egyszerűbb mobilon */
  }

  .td-nav-link.is-active {
    color: var(--tangerine-500);
  }
}
/* =========================
   Klaro (your DOM) - TD skin (FULL)
   Targets:
   #klaro .cookie-modal .cm-modal.cm-klaro
   ========================= */

#klaro .cookie-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  font-family:var(--font-body, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

#klaro .cookie-modal .cm-bg{
  background:rgba(0,0,0,.55) !important;
  backdrop-filter:blur(8px);
}

/* Modal shell */
#klaro .cookie-modal .cm-modal.cm-klaro{
  background:var(--bg, #fff) !important;
  color:var(--text-primary, #fff) !important;
  border:1px solid var(--border-color, rgba(255,255,255,.12));
  border-radius:20px;
  box-shadow:0 24px 90px rgba(0,0,0,.45);
  /*max-width:820px;*/
  width:min(820px, calc(100vw - 20px));
  margin:10vh auto 0;
  overflow:hidden;
}

/* Header */
#klaro .cookie-modal .cm-header{
  padding:22px 22px 14px;
  border-bottom:1px solid var(--border-color, rgba(255,255,255,.12));
}

#klaro .cookie-modal .cm-header .title{
  margin:0 0 10px;
  font-family:var(--font-head, Sora, Inter, system-ui, sans-serif);
  font-weight:800;
  font-size:clamp(22px, 3.2vw, 40px);
  line-height:1.12;
  letter-spacing:-0.02em;
  color:var(--text-primary, #fff) !important;
}

#klaro .cookie-modal .cm-header p{
  margin:0;
  color:var(--text-muted, rgba(255,255,255,.72));
  font-size:1rem;
  line-height:1.45;
}

/* Body */
#klaro .cookie-modal .cm-body{
  padding:10px 22px 6px;
}

#klaro .cookie-modal .cm-purposes{
  list-style:none;
  margin:0;
  padding:0;
}

#klaro .cookie-modal .cm-purpose{
  position:relative;
  padding:16px 0;
  border-bottom:1px solid var(--border-color, rgba(255,255,255,.12));
}

/* Hide "details" UX entirely (no caret, no services list, no powered by) */
#klaro .cookie-modal .cm-services,
#klaro .cookie-modal .cm-caret,
#klaro .cookie-modal .cm-content,
#klaro .cookie-modal .cm-service,
#klaro .cookie-modal .cm-powered-by{
  display:none !important;
}

/* ===== Label row: title left, switch right ===== */
#klaro .cookie-modal .cm-list-input{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  pointer-events:auto !important;
}

#klaro .cookie-modal .cm-list-label{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  cursor:pointer !important;
  width:100% !important;
}

#klaro .cookie-modal .cm-list-title{
  font-weight:800;
  font-size:1.05rem;
  color:var(--text-primary, #fff);
  min-width:0;
}

#klaro .cookie-modal .cm-required{
  margin-left:8px;
  font-size:.9rem;
  color:var(--text-muted, rgba(255,255,255,.65));
  white-space:nowrap;
}

#klaro .cookie-modal .cm-list-description{
  margin:8px 0 0;
  color:var(--text-muted, rgba(255,255,255,.72));
}

/* ===== REAL toggle (state = input:checked) ===== */
#klaro .cookie-modal .cm-switch{
  margin-left:auto !important;
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
}

#klaro .cookie-modal .cm-switch .slider{
  width:56px !important;
  height:32px !important;
  border-radius:999px !important;
  position:relative !important;
  background:rgba(255,255,255,.14) !important;           /* OFF */
  border:1px solid rgba(255,255,255,.22) !important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08) !important;
}

/* prevent double-knob from any Klaro default */
#klaro .cookie-modal .cm-switch .slider::after{ content:none !important; }

#klaro .cookie-modal .cm-switch .slider::before{
  content:"" !important;
  position:absolute !important;
  top:50% !important;
  left:4px !important;
  width:24px !important;
  height:24px !important;
  transform:translateY(-50%) !important;                 /* OFF: left */
  border-radius:999px !important;
  background:#fff !important;
  box-shadow:0 6px 14px rgba(0,0,0,.18) !important;
  transition:transform .18s ease, background-color .18s ease !important;
}

/* ON = checked (narancs + pötty jobbra) */
#klaro .cookie-modal .cm-list-input:checked + .cm-list-label .cm-switch .slider{
  background:var(--accent, #f28a2e) !important;
  border-color:transparent !important;
}

#klaro .cookie-modal .cm-list-input:checked + .cm-list-label .cm-switch .slider::before{
  transform:translate(24px, -50%) !important;
}

/* half-checked is NOT "on" visually */
#klaro .cookie-modal .cm-list-input.half-checked + .cm-list-label .cm-switch .slider{
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.22) !important;
}
#klaro .cookie-modal .cm-list-input.half-checked + .cm-list-label .cm-switch .slider::before{
  transform:translateY(-50%) !important;
}

/* disabled (necessary) */
#klaro .cookie-modal .cm-list-input:disabled + .cm-list-label{
  cursor:not-allowed !important;
  opacity:.95 !important;
}

/* if Klaro adds .active, ignore it (state is input:checked) */
#klaro .cookie-modal .cm-switch .slider.active{
  background:inherit !important;
}

/* Footer */
#klaro .cookie-modal .cm-footer{
  padding:14px 22px 18px;
  background:transparent;
}

#klaro .cookie-modal .cm-footer-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Buttons – TD style */
#klaro .cookie-modal .cm-btn{
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  border:1px solid var(--border-color, rgba(255,255,255,.14));
  background:rgba(255,255,255,.06);
  color:var(--text-primary, #fff);
  cursor:pointer;
}

#klaro .cookie-modal .cm-btn:hover{ filter:brightness(1.06); }

#klaro .cookie-modal .cm-btn-accept,
#klaro .cookie-modal .cm-btn-accept-all{
  background:var(--accent, #f28a2e);
  border-color:transparent;
  color:#fff;
}

#klaro .cookie-modal .cm-btn-decline{
  background:transparent;
}

/* Mobile */
@media (max-width:520px){
  #klaro .cookie-modal .cm-modal.cm-klaro{
    margin-top:6vh;
    border-radius:16px;
  }

  #klaro .cookie-modal .cm-header,
  #klaro .cookie-modal .cm-body,
  #klaro .cookie-modal .cm-footer{
    padding-left:14px;
    padding-right:14px;
	margin-bottom:20px!important;
  }

  #klaro .cookie-modal .cm-footer-buttons{
    flex-direction:column;
  }

  #klaro .cookie-modal .cm-btn{
    width:100%;
  }
}
/* =========================
   Cookie settings floating button
   ========================= */

#td-cookie-settings {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 64px;
  height: 64px;
  border-radius: 50%;


  align-items: center;
  justify-content: center;

  background: #fff;
  color: var(--accent, #f28a2e);

  border: 2px solid var(--accent, #f28a2e);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

#td-cookie-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

#td-cookie-settings i {
  font-size: 36px;
}
