/* ====== Brand tokens ====== */
:root {
  --red: #f03233;
  --maroon: #731d1d;
  --cream: #fff7ea;
  --ink: #222;
  --ink-soft: #444;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0,0,0,.15);
  --radius: 18px;
}

/* ====== Reset / base ====== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Baloo 2", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin-inline: auto; }

/* ====== Navigation ====== */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(90deg, var(--red), var(--maroon));
  box-shadow: var(--shadow);
  border-bottom: 6px solid #fff;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}
.brand {
  display: flex; align-items: center; gap: .75rem; color: #fff;
}
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.brand span { font-family: "Anton"; letter-spacing: .5px; font-size: 1.25rem; }
.menu { display: flex; gap: 1rem; flex-wrap: wrap; }
.menu a {
  padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.12);
  color: #fff; border: 2px solid rgba(255,255,255,.45);
  transition: transform .2s, background .3s, border-color .3s;
  font-weight: 700;
}
.menu a:hover { transform: translateY(-3px); background: #fff; color: var(--maroon); border-color: #fff; }

/* ====== Hero ====== */
.hero {
  position: relative; overflow: hidden;
  background: url("images/background.jpg");
  background-size: 240px 240px;
  background-attachment: fixed;
  border-bottom: 8px solid var(--maroon);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url("images/background.jpg");
  pointer-events: none;
}
.hero-wrap { position: relative; z-index: 1; }
.hero-grid {
  min-height: 70vh; /* reduced from 80vh → trims top visually */
  display: grid;
  place-items: center;
  
  grid-template-columns: 1fr min(560px, 60%) 1fr;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem) 0; /* tighter vertical spacing */
  gap: 1rem;
}



/* === Character sizes === */
.hero-side img {
  width: 100%;
  max-width: 420px;
  transition: transform .3s ease;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
}
.hero-side img:hover { transform: scale(1.06); }

.soda-img { transform: rotate(-2deg); align-self: end; }
.ham-img { transform: rotate(3deg); align-self: end; }

/* Logo adjustments */
.hero-card img.logo {
  width: clamp(260px, 30vw, 340px);
  transform: translateY(-180px);
  transition: transform .4s ease, filter .3s ease;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}
.hero-card img.logo:hover {
  transform: translateY(-180px) scale(1.03);
  filter: brightness(1.05);
}

/* ====== Tagline and Buttons ====== */
.tagline {
  font-family: "Anton";
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .5px;
  color: var(--maroon);
}
.cta {
  display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center;
}
.btn {
  font-weight: 800; border: 3px solid var(--maroon); color: var(--white);
  background: linear-gradient(90deg, var(--red), var(--maroon));
  padding: .6rem 1rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
  transition: transform .15s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost { background: #fff; color: var(--maroon); }

/* ====== Section styling ====== */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  position: relative;
  transition: background .8s ease;
}
section:nth-of-type(even){ background: #fff; }
section:nth-of-type(odd){ background: linear-gradient(180deg, #fff7ea, #ffe8d0); }
.section-head {
  display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1.25rem;
}
.section-head .title {
  font-family: "Anton";
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--maroon);
  padding: .2rem .8rem;
  background: #fff; border: 5px solid var(--maroon);
  border-radius: 16px; box-shadow: var(--shadow);
}
.section-sub { text-align: center; color: var(--ink-soft); max-width: 60ch; margin: .3rem auto 0; }

/* ====== Cards ====== */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width:900px){ .grid--3{ grid-template-columns:1fr 1fr; } }
@media (max-width:700px){ .grid--2, .grid--3{ grid-template-columns:1fr; } }
.card {
  background: #fff; border: 5px solid var(--maroon);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, background .8s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }

/* ====== Timer ====== */
.timer { font-family: "Anton"; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tick {
  min-width: 110px; padding: .8rem 1rem; text-align: center;
  background: #fff; border: 5px solid var(--maroon);
  border-radius: 16px; box-shadow: var(--shadow);
}
.tick b { font-size: 2rem; color: var(--maroon); display: block; }
.tick span { color: var(--ink-soft); font-weight: 700; }

/* === Full-width single-line History & Message (fixed for clipping) === */
#history {
  background: linear-gradient(180deg, #fff7ea, #ffe8d0);
  border-top: 6px solid var(--maroon);
  border-bottom: 6px solid var(--maroon);
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden; /* still ensures no scrollbars */
}

.history-full {
  display: flex;
  align-items: center;
  justify-content: space-evenly; /* evenly spaces all four elements */
  gap: 2.5rem;
  width: 100%;
  padding: 0 2rem; /* added internal padding to avoid edge clipping */
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.history-img {
  width: 100%;
  max-width: 260px;
  flex-shrink: 0;
  object-fit: contain; /* ensures full visibility inside the frame */
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
  transition: transform .3s ease;
}
.history-img:hover {
  transform: scale(1.05);
}

.history-text {
  flex: 1;
  max-width: 420px;
  text-align: left;
}

.history-text h3 {
  font-family: "Anton", Impact, sans-serif;
  color: var(--maroon);
  font-size: 1.9rem;
  margin-bottom: .5rem;
}

.history-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Responsive layout */
@media (max-width: 1100px) {
  .history-full {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
  }
  .history-img {
    max-width: 220px;
  }
  .history-text {
    max-width: 90%;
  }
}



/* === Background for Inscription and About === */
#inscription, #about {
  background: url("images/background.jpg") center/200px repeat;
  background-attachment: fixed;
  position: relative;
  border-top: 6px solid var(--maroon);
  border-bottom: 6px solid var(--maroon);
}
#vision{
    
  background: url("images/background.jpg") center/200px repeat;
}
#inscription::before,
#about::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(199, 91, 64, 0.92); /* subtle warm overlay */
  
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* ====== Footer ====== */
.footer {
  background: var(--maroon); color: #fff;
  text-align: center; padding: 1.25rem 0;
  border-top: 6px solid #fff;
}

/* ====== Scroll reveal ====== */
.reveal { opacity: 0; transform: translateY(30px) scale(.98); }
.reveal.is-visible {
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.67,.36,1);
}
.color-shift { background-position: 0% 50%; background-size: 200% 200%; }
.is-visible.color-shift {
  background-image: radial-gradient(circle at 10% 20%, rgba(240,50,51,.10), transparent 30%),
                    radial-gradient(circle at 90% 80%, rgba(115,29,29,.10), transparent 40%);
  transition: background-position 2s ease, background-color 1.2s ease;
  
}
