/* ============================================================
   KŐSZEGI SAJTÓFOTÓ PÁLYÁZAT ? custom.css
   ============================================================ */

/* Google Fonts ? Oswald (headings, condensed/industrial) + Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand colours ? dark/metallic/red, matching the event logo */
  --ksf-bg:           #121212;
  --ksf-bg-alt:       #1a1a1a;
  --ksf-panel:        #202020;
  --ksf-border:       #333333;
  --ksf-red:          #c8112c;
  --ksf-red-hover:    #9c0d22;
  --ksf-silver:       #d4d4d4;
  --ksf-silver-light: #f2f2f2;
  --ksf-text:         #d6d6d6;
  --ksf-text-muted:   #9a9a9a;
  --ksf-white:        #ffffff;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-base:    'Inter', sans-serif;
}


/* ============================================================
   2. BASE ? Body & Typography
   ============================================================ */
body {
  font-family:             var(--font-base);
  font-size:               17px;
  font-weight:             400;
  line-height:             1.7;
  color:                   var(--ksf-text);
  background-color:        var(--ksf-bg);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family:    var(--font-heading);
  color:          var(--ksf-silver-light);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 20px; line-height: 1.35; text-transform: none; letter-spacing: 0; }

@media (max-width: 767.98px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
}

p { margin-bottom: 1rem; }

a {
  color: var(--ksf-red);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ksf-white);
  text-decoration: underline;
}

::selection {
  background: var(--ksf-red);
  color: var(--ksf-white);
}

/* Metallic gradient heading treatment ? used sparingly on hero/section titles */
.metal-heading {
  color: var(--ksf-silver);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .metal-heading {
    background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 35%, #8f8f8f 62%, #cfcfcf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Small red kicker label + accent rule, echoes the logo's cross-lines */
.eyebrow {
  display:        inline-block;
  font-family:    var(--font-heading);
  font-size:      14px;
  font-weight:    600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--ksf-text-muted);
  margin-bottom:  10px;
}

.accent-rule {
  display:          block;
  width:            64px;
  height:           3px;
  background-color: var(--ksf-red);
  margin:           0 0 20px;
  border:           none;
}

.accent-rule.mx-auto { margin-left: auto; margin-right: auto; }


/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn-ksf {
  display:          inline-flex;
  align-items:      center;
  gap:              8px;
  background-color: var(--ksf-red);
  color:            var(--ksf-white);
  font-family:      var(--font-heading);
  font-size:        15px;
  font-weight:      600;
  letter-spacing:   0.04em;
  text-transform:   uppercase;
  padding:          13px 28px;
  border:           none;
  border-radius:    2px;
  text-decoration:  none;
  transition:       background-color 0.2s ease, transform 0.15s ease;
}

.btn-ksf:hover,
.btn-ksf:focus {
  background-color: var(--ksf-red-hover);
  color:             var(--ksf-white);
  text-decoration:   none;
  transform:         translateY(-1px);
}

.btn-ksf-outline {
  display:          inline-flex;
  align-items:      center;
  gap:              8px;
  background-color: transparent;
  color:            var(--ksf-silver-light);
  font-family:      var(--font-heading);
  font-size:        15px;
  font-weight:      600;
  letter-spacing:   0.04em;
  text-transform:   uppercase;
  padding:          12px 27px;
  border:           1px solid var(--ksf-silver-light);
  border-radius:    2px;
  text-decoration:  none;
  transition:       background-color 0.2s ease, color 0.2s ease;
}

.btn-ksf-outline:hover,
.btn-ksf-outline:focus {
  background-color: var(--ksf-silver-light);
  color:             var(--ksf-bg);
  text-decoration:   none;
}


/* ============================================================
   4. IMAGE UTILITIES
   ============================================================ */
.bg-image {
  background-repeat:   no-repeat;
  background-position: center center;
}

.bg-cover { background-size: cover; }


/* ============================================================
   5. NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top:      0;
  z-index:  1030;
}

.navbar-ksf {
  background-color: rgba(18, 18, 18, 0.96);
  border-bottom:     1px solid var(--ksf-border);
  padding:            10px 0;
}

.navbar-ksf .navbar-brand img { height: 42px; width: auto; }

.navbar-ksf .nav-link {
  color:          var(--ksf-text);
  font-family:    var(--font-heading);
  font-size:      15px;
  font-weight:    500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding:        8px 0;
  transition:     color 0.15s ease;
}

.navbar-ksf .navbar-nav { gap: 32px; }

.navbar-ksf .nav-link:hover,
.navbar-ksf .nav-link.active {
  color: var(--ksf-red);
}

.navbar-ksf .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-ksf .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-ksf .btn-ksf { padding: 10px 22px; font-size: 14px; }


/* ============================================================
   6. HOME HERO
   ============================================================ */
.section-hero {
  background-color: #000;
}

.section-hero .hero-photo {
  height:   560px;
  overflow: hidden;
}

.section-hero .hero-photo .bg-image { height: 100%; }

.section-hero .hero-caption {
  background-color: var(--ksf-bg-alt);
  border-bottom:     1px solid var(--ksf-border);
  padding:           56px 0;
  text-align:        center;
}

.section-hero .hero-caption .lead {
  max-width:  760px;
  margin:     0 auto 28px;
  color:      var(--ksf-text);
  font-size:  18px;
}

@media (max-width: 991.98px) {
  .section-hero .hero-photo { height: 380px; }
}

@media (max-width: 575.98px) {
  .section-hero .hero-photo { height: 260px; }
  .section-hero .hero-caption { padding: 40px 0; }
}


/* ============================================================
   6b. SUB-PAGE HERO
   ============================================================ */
.section-subpage-hero {
  height:            220px;
  overflow:          hidden;
  background-color: #000;
  position:          relative;
}

.section-subpage-hero .bg-image {
  height:   100%;
  opacity:  0.55;
}

.section-subpage-hero .subpage-hero-title {
  position:  absolute;
  inset:     0;
  display:   flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.section-subpage-hero .subpage-hero-title h1 {
  margin: 0;
}

@media (max-width: 767.98px) {
  .section-subpage-hero { height: 160px; }
}


/* ============================================================
   7. SECTION ? GENERIC SPACING / ALT BACKGROUNDS
   ============================================================ */
.section-alt { background-color: var(--ksf-bg-alt); }

.text-center-heading { text-align: center; }


/* ============================================================
   8. INTRO / ABOUT SECTION
   ============================================================ */
.venue-card {
  background-color: var(--ksf-panel);
  border:            1px solid var(--ksf-border);
  border-left:       3px solid var(--ksf-red);
  padding:           28px 32px;
  border-radius:     2px;
}

.venue-card h3 {
  color:         var(--ksf-silver-light);
  margin-bottom: 8px;
}

.youth-callout {
  background-color: var(--ksf-panel);
  border:            1px solid var(--ksf-border);
  border-left:       3px solid var(--ksf-silver);
  padding:           28px 32px;
  border-radius:     2px;
}


/* ============================================================
   9. KEY FACTS / DATES STRIP
   ============================================================ */
.section-facts {
  background-color: #000;
  border-top:        1px solid var(--ksf-border);
  border-bottom:      1px solid var(--ksf-border);
}

.fact-item {
  text-align: center;
  padding:    36px 16px;
}

.fact-item + .fact-item {
  border-left: 1px solid var(--ksf-border);
}

@media (max-width: 767.98px) {
  .fact-item + .fact-item { border-left: none; border-top: 1px solid var(--ksf-border); }
}

.fact-item .fact-value {
  font-family:    var(--font-heading);
  font-size:      30px;
  font-weight:    700;
  color:          var(--ksf-red);
  line-height:    1.15;
  margin-bottom:  6px;
}

.fact-item .fact-label {
  font-size:      13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--ksf-text-muted);
}


/* ============================================================
   10. CATEGORIES GRID
   ============================================================ */
.category-card {
  background-color: var(--ksf-panel);
  border:            1px solid var(--ksf-border);
  padding:           26px 22px;
  height:            100%;
  border-radius:     2px;
  transition:        border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  border-color: var(--ksf-red);
  transform:    translateY(-3px);
}

.category-card .category-index {
  font-family:  var(--font-heading);
  font-size:    26px;
  font-weight:  700;
  color:        var(--ksf-red);
  line-height:  1;
  margin-bottom: 12px;
  display:      block;
}

.category-card h3 {
  font-size:      16px;
  font-weight:    600;
  margin-bottom:  6px;
  color:          var(--ksf-silver-light);
}

.category-card p {
  font-size:  13px;
  color:      var(--ksf-text-muted);
  margin-bottom: 0;
}


/* ============================================================
   11. HOW TO APPLY ? STEPS
   ============================================================ */
.step-card {
  background-color: var(--ksf-panel);
  border:            1px solid var(--ksf-border);
  padding:           30px;
  height:            100%;
  border-radius:     2px;
}

.step-card .step-number {
  font-family:  var(--font-heading);
  font-size:    40px;
  font-weight:  700;
  color:        var(--ksf-red);
  line-height:  1;
  margin-bottom: 14px;
}

.step-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.step-card li { margin-bottom: 6px; }

.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.checklist li {
  position:      relative;
  padding-left:  28px;
  margin-bottom: 12px;
}

.checklist li::before {
  content:      "\f00c";
  font-family:  "Font Awesome 5 Free";
  font-weight:  900;
  color:        var(--ksf-red);
  position:     absolute;
  left:         0;
  top:          2px;
  font-size:    14px;
}

.email-callout {
  background-color: #000;
  border:            1px dashed var(--ksf-border);
  padding:           24px 28px;
  border-radius:     2px;
  text-align:        center;
}

.email-callout a.btn-ksf { margin-top: 10px; }


/* ============================================================
   12. GALLERY
   ============================================================ */
.gallery-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   6px;
}

@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  display:  block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #000;
}

.gallery-item img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity:   0.9;
}

.gallery-item::after {
  content:    "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position:   absolute;
  inset:      0;
  display:    flex;
  align-items: center;
  justify-content: center;
  color:      var(--ksf-white);
  font-size:  22px;
  opacity:    0;
  background: rgba(200, 17, 44, 0.35);
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after { opacity: 1; }


/* ============================================================
   13. CONTACT / CTA SECTION
   ============================================================ */
.section-contact {
  background-color: var(--ksf-bg-alt);
  border-top:         1px solid var(--ksf-border);
}

.contact-info-item {
  display:      flex;
  align-items:  flex-start;
  gap:          16px;
  margin-bottom: 24px;
}

.contact-info-item i {
  color:      var(--ksf-red);
  font-size:  20px;
  margin-top: 3px;
  width:      22px;
  text-align: center;
}

.contact-info-item a,
.contact-info-item p { color: var(--ksf-text); margin-bottom: 0; }

.contact-info-item a:hover { color: var(--ksf-red); }


/* ============================================================
   14. PAGE CONTENT BLOCK (subpage rich text)
   ============================================================ */
.section-page-content {
  background-color: var(--ksf-bg);
}

.section-page-content .content-inner {
  max-width: 860px;
  margin:    0 auto;
}

.section-page-content h2 {
  margin-top: 48px;
}

.section-page-content h2:first-child { margin-top: 0; }

.section-page-content h3 {
  color:         var(--ksf-silver-light);
  font-weight:   600;
  margin-top:    28px;
  margin-bottom: 8px;
}

.section-page-content .accent-rule { margin-bottom: 24px; }

.section-page-content p { color: var(--ksf-text); }

.section-page-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.section-page-content ul li {
  color:         var(--ksf-text);
  margin-bottom: 6px;
}

.section-page-content a { text-decoration: underline; }

.section-page-content .lead-block {
  background-color: var(--ksf-panel);
  border:            1px solid var(--ksf-border);
  border-left:       3px solid var(--ksf-red);
  padding:           24px 28px;
  border-radius:     2px;
  margin-bottom:     36px;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.footer-ksf {
  background-color: #000;
  border-top:         1px solid var(--ksf-border);
  color:              var(--ksf-text-muted);
  padding-top:        56px;
  padding-bottom:     32px;
}

.footer-ksf img { height: 44px; width: auto; margin-bottom: 18px; }

.footer-ksf h3 {
  color:          var(--ksf-silver-light);
  font-size:      15px;
  margin-bottom:  16px;
}

.footer-ksf ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.footer-ksf ul li { margin-bottom: 8px; }

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

.footer-ksf .social-icon {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  width:            38px;
  height:           38px;
  border:           1px solid var(--ksf-border);
  border-radius:    50%;
  color:            var(--ksf-silver-light);
  margin-right:     8px;
  transition:       border-color 0.2s ease, color 0.2s ease;
}

.footer-ksf .social-icon:hover {
  border-color: var(--ksf-red);
  color:        var(--ksf-red);
}

.footer-copyright {
  border-top:  1px solid var(--ksf-border);
  margin-top:  40px;
  padding-top: 24px;
  font-size:   13px;
}


/* ============================================================
   16. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline:        3px solid var(--ksf-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration:       .01ms !important;
    animation-duration:        .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior:           auto !important;
  }
}

/* Swipebox overrides ? red arrows/close to match brand */
#swipebox-top-bar #swipebox-title { color: #fff; }
