/* =========================================================
   0) Imports
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nanum+Brush+Script&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


/* =========================================================
   1) Root variables (colors, fonts)
   ========================================================= */
:root {
  /* Palette */
  --primary-color:   #E96A2C;  /* Vibrant Orange */
  --secondary-color: #4B3A33;  /* Earthy Brown   */
  --accent1-color:   #F2B67A;  /* Soft Peach     */
  --accent2-color:   #8A9A5B;  /* Olive Green    */

  /* Fonts */
  --body-font:    "Inter", Helvetica, Arial, sans-serif;
  --heading-font: "Playfair Display", Georgia, serif;
}


/* =========================================================
   2) Base / Reset
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: white;     /* var(--primary-color);  */
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.4;
}

h1, h2 {
  font-family: var(--heading-font);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }


/* =========================================================
   3) Layout helpers
   ========================================================= */
.container {
  max-width: 1100px;       /* keep header and main aligned to the same column */
  margin-inline: auto;     /* centers left/right */
  padding-inline: 16px;    /* safe gutter on narrow screens */
}


/* =========================================================
   4) Header (background spans full width)
   ========================================================= */
.site-header {
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(0,0,0,.06);
  /* no grid/flex here—let the inner bar handle layout */
}


/* =========================================================
   5) Header bar: NAV — LOGO — NAV (flex)
   ========================================================= */
#nav-logo.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: 8px;
}

/* Side navs flex to balance space so the logo remains centered */
.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Center the items in the UL itself; remove default spacing */
.nav-left ul,
.nav-right ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

/* Logo block keeps only the space it needs and is centered in the row */
.branding {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  position: relative; /* for the heat shimmer effect */
  cursor: pointer;
}


/* Logo image */
#nav-logo .branding img {
  height: 200px;
  width: auto;
  object-fit: contain;
  display: block;

  mix-blend-mode: multiply;
  filter:
    drop-shadow(0 0 10px rgba(255, 160, 80, 0.6))
    drop-shadow(0 0 24px rgba(233, 106, 44, 0.45));
}

/* heat shimmer and wobble effect */

@keyframes heatShimmer {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.branding::before,
.branding img {
  transition:
    filter 0.5s ease,
    inset 0.5s ease,
    opacity 0.5s ease;
}


.branding::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  z-index: -1;
  transform-origin: center bottom;

  background: radial-gradient(
    circle at 50% 60%,
    rgba(255, 245, 220, 0.95),  /* white-hot core */
    rgba(255, 200, 120, 0.85),  /* yellow heat */
    rgba(233, 106, 44, 0.65),   /* orange */
    rgba(180, 40, 30, 0.45),    /* deep red falloff */
    transparent 72%
  );

  filter: blur(28px);
  opacity: 0.9;

  animation:
    heatShimmer 4.5s ease-in-out infinite,
    heatWobble 6s ease-in-out infinite,
    heatFlicker 1.8s linear infinite;

  transition:
    inset 0.5s ease,
    filter 0.5s ease,
    opacity 0.5s ease;
}

@keyframes heatWobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.branding:hover::before {
  inset: -50%;
  filter: blur(38px);
  opacity: 1;

  animation:
    heatBurst 0.35s cubic-bezier(.2,.8,.4,1) 1,
    heatShimmer 2.2s ease-in-out infinite,
    heatWobble 3.8s ease-in-out infinite,
    heatFlicker 1.1s linear infinite;
}

.branding:hover img {
  filter:
    drop-shadow(0 0 28px rgba(255, 210, 160, 0.95))
    drop-shadow(0 0 60px rgba(233, 106, 44, 0.8))
    drop-shadow(0 0 90px rgba(180, 40, 30, 0.6));
}


@keyframes heatBurst {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes heatFlicker {
  0%   { opacity: 0.78; }
  20%  { opacity: 0.82; }
  40%  { opacity: 0.76; }
  60%  { opacity: 0.85; }
  80%  { opacity: 0.8; }
  100% { opacity: 0.78; }
}


/* Header nav links */
#nav-logo nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

#nav-logo a {
  text-decoration: none;
  font-weight: 600;
  color: var(--secondary-color);
}


/* =========================================================
   6) Main content
   ========================================================= */
#title {
  text-align: center;
  margin: 25px auto 0;
  width: fit-content;
  color: var(--secondary-color);
}

#contentFeatured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: end;
  gap: 15px;
  margin-block: 24px;
}

.card {
  padding: 20px;
  margin: 20px;
  width: 300px;
  height: auto;
  text-align: center;
}

.card h2 {
  margin-top: 12px;
  color: var(--secondary-color);
}

.card-img {
  width: 100%;
  transition: transform .5s;
  box-shadow: 5px 5px 10px var(--accent1-color);
}

.card-img:hover {
  opacity: .9;
  transform: scale(1.1);
}


/* =========================================================
   7) Footer
   ========================================================= */
footer {
  background-color: white;  /* var(--primary-color); */
  padding: 16px;
  color: var(--secondary-color);
}

footer p {
  margin: 0;
  text-align: center;
  font-size: .9rem;
} 


/* =========================================================
   8) Responsive
   ========================================================= */
@media (max-width: 900px) {
  /* Hide side navs; keep logo centered */
  .nav-left,
  .nav-right {  
    flex: 1 1 100%;
    order: 2;   
  }
  #nav-logo.header-bar {   
    flex-wrap: wrap;
    row-gap: .5rem;
    justify-content: center;
  }

  .nav-left ul,
  .nav-right ul {
    justify-content: center;
  }

  #nav-logo a {
    padding: 10px 12px;
    display: inline-block;
  }

  /* Put the logo in the first row, centered */
  .branding {
    flex: 0 0 100%;
    order: 1;
    justify-content: center;
  }

  /* Stack featured cards */
  #contentFeatured {
    grid-template-columns: 1fr;
  }

  .card {
    width: min(420px, 100%);
    margin-inline: auto;
  }
  /* ===== FORM PAGE STYLING ===== */

form {
  max-width: 700px;
  margin: 40px auto;
}
/* ===== FORM STRUCTURE ===== */

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-section {
  margin-top: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-list input {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
}

.categories {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.submit-container {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  padding: 10px 30px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  cursor: pointer;
}
}