/* =======================================================
   DEKORCSAPAT – Flat Asymmetric Mosaic Style (Light Theme)
   ======================================================= */

:root {
  --bg-main:       #f0f2f5;
  --bg-intro:      #ffffff;
  --text-dark:     #1a202c;
  --text-light:    #ffffff;
  --text-muted:    #4a5568;
  --border-color:  #cbd5e1;
  --shadow-color:  #cbd5e1; /* Discreet soft grey shadow */
  --shadow-flat:   5px 5px 0px 0px var(--shadow-color);
  --shadow-hover:  9px 9px 0px 0px var(--shadow-color);
  --transition:    all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Vibrant Tile Background Colors */
  --bg-padlo:      #ff4757; /* Coral Red */
  --bg-molino:     #1e90ff; /* Sky Blue */
  --bg-rollup:     #ffa502; /* Warm Yellow */
  --bg-szelember:  #ff6348; /* Neon Orange */
  --bg-givomez:    #2f3542; /* Dark Slate Navy */
  --bg-szavazo:    #2ed573; /* Emerald Green */
  --bg-asishop:    #ff6b81; /* Hot Pink */
  --bg-berdtf:     #4f46e5; /* Indigo */
  --bg-bulldogs:   #6d28d9; /* Deep Purple */
}

/* ── Base Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* STRICTLY NO ROUNDED CORNERS */
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Header ── */
.site-header {
  position: relative;
  z-index: 10;
  padding: 20px 0;
  border-bottom: 2px solid var(--border-color);
  background-color: #ffffff;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Colorful Overlapping SVG Logo */
.site-logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.site-logo-text span {
  background: linear-gradient(90deg, var(--bg-padlo), var(--bg-molino), var(--bg-asishop));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-contact {
  display: flex;
  gap: 16px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  border: 2px solid var(--border-color);
  padding: 8px 16px;
  background-color: #ffffff;
  box-shadow: 3px 3px 0px var(--shadow-color);
  transition: var(--transition);
}

.contact-item i {
  color: var(--bg-padlo);
}

.contact-item:nth-child(2) i {
  color: var(--bg-molino);
}

.contact-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--shadow-color);
  background-color: #f8fafc;
}

/* ── Main Container ── */
.grid-container {
  max-width: 1240px;
  width: 100%;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* ── Mosaic Grid ── */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-flow: dense;
}

/* ── Generic Tile Styles ── */
.tile {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-flat);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tile-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.tile-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.tile-icon {
  font-size: 24px;
  margin-bottom: 16px;
  width: fit-content;
  transition: var(--transition);
}

.tile h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-all;
}

.tile p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  opacity: 0.95;
  flex: 1;
}

.tile-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* Tile hover scale & shadow */
.tile:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.05);
}

.tile:hover .tile-action {
  gap: 10px;
}

/* ── Asymmetric Grid Cell Spanning ── */

/* Tile 1: LARGE INTRO (2x2) */
.tile-intro {
  grid-column: span 2;
  grid-row: span 2;
  background-color: var(--bg-intro);
  color: var(--text-dark);
}

.tile-intro .intro-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.tile-intro h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.tile-intro p {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  border: 2px solid var(--border-color);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 2px 2px 0px var(--shadow-color);
}

/* Tile 2: Szavazófülke Bolt - TALL (1x2) */
.tile-szavazo {
  grid-column: span 1;
  grid-row: span 2;
  background-color: var(--bg-szavazo);
  color: var(--text-light);
}

.tile-szavazo h3 {
  color: var(--text-light);
}

.tile-szavazo .tile-icon {
  color: var(--text-light);
}

.tile-languages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--text-light);
  padding: 12px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}

.lang-link:hover {
  background-color: var(--text-light);
  color: var(--bg-szavazo);
  transform: translateX(6px);
  box-shadow: 3px 3px 0px var(--shadow-color);
}

.lang-link .flag {
  font-size: 16px;
}

/* Tile 3: Molinógyár - WIDE (2x1) */
.tile-molino {
  grid-column: span 2;
  grid-row: span 1;
  background-color: var(--bg-molino);
  color: var(--text-light);
}

.tile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tile-molino .tile-icon {
  margin-bottom: 0;
  color: var(--text-light);
}

.tile-molino p {
  max-width: 85%;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Standard 1x1 Tiles Background Mapping ── */
.tile-padlo { background-color: var(--bg-padlo); color: var(--text-light); }
.tile-rollup { background-color: var(--bg-rollup); color: var(--text-light); }
.tile-szelember { background-color: var(--bg-szelember); color: var(--text-light); }
.tile-givomez { background-color: var(--bg-givomez); color: var(--text-light); }
.tile-asishop { background-color: var(--bg-asishop); color: var(--text-light); }
.tile-berdtf { background-color: var(--bg-berdtf); color: var(--text-light); }
.tile-bulldogs { background-color: var(--bg-bulldogs); color: var(--text-light); }

/* Ensure all link actions on colored tiles look clean */
.tile:not(.tile-intro) .tile-action {
  color: var(--text-light);
}

.tile:not(.tile-intro) .tile-icon {
  color: var(--text-light);
}

.tile:not(.tile-intro) p {
  color: rgba(255, 255, 255, 0.95);
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 2px solid var(--border-color);
  background-color: #ffffff;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ── Responsive breakpoints ── */
@media (max-width: 900px) {
  .site-header {
    padding: 16px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }
  .header-contact {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  .contact-item {
    width: 100%;
    justify-content: center;
  }
  .grid-container {
    margin: 20px auto 40px;
  }
  .mosaic-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 18px;
  }
  
  /* Reset spans on mobile */
  .tile-intro,
  .tile-szavazo,
  .tile-molino {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  
  .tile-intro .intro-content {
    padding: 24px;
  }
  
  .tile-languages {
    margin-top: 16px;
  }
}
