/* =========================================================
   Freeze N Fry — Fast Food / QSR Aesthetic
   Display: Poppins
   UI/Body: Nunito
   ========================================================= */

:root {
  /* Fast Food Palette */
  --bg: #FDF9F1;         /* Warm, doughy off-white */
  --surface: #FFFFFF;    /* Crisp white for cards */
  --surface-alt: #FDE8E9; /* Light red tint */
  
  --red: #E3000F;        /* Classic QSR Red */
  --yellow: #FFC72C;     /* Classic QSR Golden Yellow */
  
  --text-main: #1A1515;  /* Deep charcoal/black */
  --text-muted: #5C524F; /* Muted brown-grey */
  --border: #1A1515;     /* Solid chunky borders */
  
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy ease */
  --slow: 0.5s;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --max: 82rem;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100%; }

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle noise texture common in modern retro fast food branding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22180%22 height=%22180%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.shell { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Shared Type ---------- */

.label {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.display {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text-main);
  text-transform: uppercase;
  word-wrap: break-word;
}

.highlight-text {
  color: var(--red);
  position: relative;
  display: inline-block;
  padding: 0 0.1em;
  z-index: 1;
}
.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 8%; left: 0; right: 0;
  height: 30%;
  background: var(--yellow);
  z-index: -1;
  border-radius: 20px;
  transform: skewX(-15deg);
}

/* ---------- Header ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 1.25rem;
  transition: all var(--slow) var(--ease);
  background: transparent;
  border-bottom: 2px solid transparent;
}
.masthead.stuck {
  background: var(--surface);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 0 rgba(26,21,21,0.05);
}
.masthead-in { display: flex; align-items: center; gap: 2.5rem; }

.wordmark {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  color: var(--red);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--border);
  transition: transform 0.3s var(--ease);
}
.wordmark:hover { transform: scale(1.05) rotate(-2deg); }

.masthead nav { display: flex; gap: 3rem; }
.masthead nav a {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.5rem 1.2rem;
  transition: color 0.3s var(--ease);
}
.masthead nav a:hover { color: var(--red); }
.masthead nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 8px;
  z-index: -1;
  transform: scale(0.8) translateY(10px);
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.masthead nav a:hover::before {
  transform: scale(1) translateY(0);
  opacity: 1;
}
@media (max-width: 780px) {
  body { padding-bottom: 4rem; }
  .masthead-in {
    flex-direction: row;
  }
  .wordmark {
    margin-right: auto;
  }
  .masthead nav { 
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 3px solid var(--border);
    padding: 0.5rem 0;
    justify-content: space-evenly;
    gap: 0;
    z-index: 100;
    flex-wrap: nowrap;
  }
  .masthead nav a {
    font-size: 0.75rem;
    padding: 0.5rem 0.2rem;
    flex: 1;
    text-align: center;
    letter-spacing: 0.02em;
  }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(8rem, 18vh, 12rem); padding-bottom: clamp(4rem, 8vw, 6rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: end; }
.hero-head { grid-column: 1 / span 12; text-align: center; }

.hero-aside {
  grid-column: 4 / span 6;
  text-align: center;
  margin-top: 2.5rem;
  background: var(--surface);
  border: 4px solid var(--border);
  padding: clamp(1.5rem, 5vw, 2rem) clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--yellow);
  transform: rotate(-2deg);
}
.hero-aside .label {
  display: inline-block;
  background: var(--surface-alt);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 2px solid var(--red);
  color: var(--red);
  margin-bottom: 0.5rem;
}
.hero-aside p:not(.label) { 
  font-size: 1.35rem; 
  font-weight: 700; 
  margin-top: 0; 
  color: var(--text-main); 
  line-height: 1.4;
}
@media (max-width: 900px) { 
  .hero-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .hero-aside { grid-column: auto; } 
}

.hero-foot {
  margin-top: clamp(4rem, 10vw, 6rem);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.hero-mark img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--yellow);
  background: var(--surface);
  padding: 1rem;
  transition: transform 0.4s var(--ease);
}
.hero-mark:hover img { transform: scale(1.05) rotate(5deg); }

.hero-halal img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--yellow);
  background: var(--surface);
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.hero-halal:hover img { transform: scale(1.1) rotate(-8deg); }

.hero-cta { text-align: center; max-width: 26rem; }

/* Badge CTA */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border: 3px solid var(--border);
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 100px;
  max-width: 100%;
  word-wrap: break-word;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 6px 6px 0 var(--border);
}
.badge:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--border);
  background: var(--yellow);
  color: var(--text-main);
}
.badge:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--border);
}
.badge span { position: relative; z-index: 1; }
.badge-note { margin: 1.5rem auto 0; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }

/* ---------- Sections ---------- */

section { padding-block: clamp(4rem, 8vw, 6rem); position: relative; }
section.ink { 
  background: var(--red); 
  color: var(--surface);
  border-top: 4px solid var(--border);
  border-bottom: 4px solid var(--border);
}
section.ink .label { color: var(--yellow); }

.section-head {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
}
.section-head .label { margin-bottom: 1rem; display: inline-block; background: var(--surface); padding: 0.4rem 1rem; border-radius: 20px; border: 2px solid var(--border); box-shadow: 3px 3px 0 var(--border); }
section.ink .section-head .label { background: var(--yellow); color: var(--text-main); border-color: var(--text-main); box-shadow: 3px 3px 0 var(--text-main); }
.section-head h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}

/* ---------- Feature Rows -> Chunky Cards ---------- */

.rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  border: none;
}
.row {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  box-shadow: 6px 6px 0 var(--border);
  position: relative;
}
.row:nth-child(even) { background: var(--surface-alt); }
.row:hover {
  transform: translate(-4px, -4px) scale(1.02);
  box-shadow: 10px 10px 0 var(--yellow);
}
.row:nth-child(even):hover { box-shadow: 10px 10px 0 var(--red); }

.row .idx {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border: 3px solid var(--border);
}
.row:nth-child(even) .idx { background: var(--red); color: var(--surface); }

.row h3 {
  font-family: "Poppins", sans-serif;
  margin: 0 0 0.8rem;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--text-main);
}
.row p { margin: 0; color: var(--text-muted); font-size: 1.1rem; line-height: 1.5; font-weight: 600; }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 var(--border);
  background: var(--bg);
}

/* ---------- Asymmetric Prose ---------- */

.prose-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
.prose-a { 
  grid-column: 1 / span 4;
  background: var(--surface);
  border: 4px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 8px 8px 0 var(--border);
}
.prose-b { 
  grid-column: 5 / span 4; 
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--yellow);
  border: 4px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 8px 8px 0 var(--border);
  height: fit-content;
}
.prose-halal {
  grid-column: 9 / span 4;
  margin-top: clamp(5rem, 12vw, 10rem);
  background: var(--surface);
  border: 4px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 8px 8px 0 var(--yellow);
  height: fit-content;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.prose-halal .halal-badge-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid var(--border);
  background: var(--surface);
  padding: 0.25rem;
  box-shadow: 6px 6px 0 var(--border);
  transition: transform 0.4s var(--ease);
}
.prose-halal .halal-badge-img:hover {
  transform: scale(1.08) rotate(6deg);
}
.prose-halal h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.prose-halal p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}
.prose-grid p { margin: 0 0 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text-main); line-height: 1.6; }
.prose-grid p:last-child { margin-bottom: 0; }
.pull {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  font-weight: 900;
  color: var(--red) !important;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .prose-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .prose-a, .prose-b, .prose-halal { grid-column: auto; }
  .prose-b, .prose-halal { margin-top: 0; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--yellow);
  border: 4px solid var(--border);
  border-radius: 32px;
  padding: clamp(1.5rem, 5vw, 5rem);
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap: 3rem;
  box-shadow: 8px 8px 0 var(--border);
}
.contact .lead { grid-column: 1 / span 5; color: var(--text-main); }
.contact .lead p:not(.label) { font-size: 1.25rem; font-weight: 700; margin-top: 1rem; }
.contact .lead .label { 
  display: inline-block; 
  background: var(--surface); 
  padding: 0.4rem 1rem; 
  border-radius: 20px; 
  border: 2px solid var(--border); 
  box-shadow: 3px 3px 0 var(--border); 
  color: var(--text-main);
}

.mt-4 { margin-top: 1.5rem; display: inline-flex; }
.contact-illustration {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  border: 4px solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease);
}
.contact-illustration:hover { transform: rotate(1deg) scale(1.02); }
.contact-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.contact dl { grid-column: 7 / span 6; margin: 0; }
.contact dt { margin-top: 2rem; font-weight: 800; font-family: "Poppins", sans-serif; text-transform: uppercase; color: var(--red); }
.contact dt:first-of-type { margin-top: 0; }
.contact dd {
  margin: 0.5rem 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}
.contact dd a { position: relative; display: inline-block; transition: transform 0.2s; }
.contact dd a:hover { transform: scale(1.05) rotate(1deg); color: var(--red); }
.contact dd a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--border);
}
@media (max-width: 900px) {
  .contact { display: flex; flex-direction: column; gap: 2rem; }
  .contact .lead, .contact dl { grid-column: auto; }
  .contact dl { margin-top: 0; }
}

/* ---------- Footer ---------- */

.colophon { padding-block: 4rem; border-top: 4px solid var(--border); background: var(--surface); margin-top: clamp(4rem, 8vw, 6rem); }
.colophon-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 3rem; /* Row gap and column gap */
  font-size: 0.95rem; font-weight: 700; color: var(--text-main);
  font-family: "Poppins", sans-serif; text-transform: uppercase;
}
.colophon-in > div {
  text-align: left;
}
.colophon a { transition: color 0.3s; }
.colophon a:hover { color: var(--red); }
.colophon nav { display: flex; gap: 2rem; flex-wrap: wrap; }

.designer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #FFFBEF; /* Warm paper-stamp color */
  border: 2px dashed var(--border);
  outline: 2px solid var(--border);
  outline-offset: -6px; /* Classic stamp inner border line */
  border-radius: 4px; /* Stamp card shape */
  padding: 0.6rem 1.1rem;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 5px 5px 0 var(--border);
  transition: all 0.25s var(--ease);
  transform: rotate(-1.5deg);
  text-decoration: none;
  position: relative;
  top: -2.5px; /* Offset vertical center to compensate for shadow/tilt visual heavy bottom */
}
.designer-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 2px;
  filter: grayscale(1) opacity(0.85); /* Stamped ink look */
  transition: all 0.25s var(--ease);
}
.designer-badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.designer-badge .badge-tag {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 2px;
}
.designer-badge .badge-name {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.designer-badge:hover {
  transform: translate(2px, 2px) rotate(1deg); /* Bouncy press-down & shift angle */
  box-shadow: 2px 2px 0 var(--border);
  background: var(--yellow); /* Stamped highlight color */
}
.designer-badge:hover img {
  filter: none; /* Logo lights up to original color */
  transform: scale(1.15) rotate(-5deg);
}
.designer-badge:active {
  transform: translate(5px, 5px) rotate(0deg);
  box-shadow: 0 0 0 var(--border);
}

@media (max-width: 960px) {
  .colophon-in {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }
  .colophon-in > div {
    text-align: center;
  }
  .colophon nav {
    justify-content: center;
    gap: 1.5rem;
  }
}

/* ---------- Motion ---------- */

@keyframes bounceRise {
  0%   { opacity: 0; transform: translateY(40px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-10px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

.js .stagger > * { opacity: 0; animation: bounceRise 0.8s var(--ease) forwards; }
.js .stagger > *:nth-child(1) { animation-delay: 0.1s; }
.js .stagger > *:nth-child(2) { animation-delay: 0.2s; }
.js .stagger > *:nth-child(3) { animation-delay: 0.3s; }
.js .stagger > *:nth-child(4) { animation-delay: 0.4s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .stagger > *, .js [data-reveal] { animation: none; opacity: 1; transform: none; transition: none; }
  .row, .badge, .masthead { transition: none; }
}

/* ---------- Legal Pages ---------- */

.legal { padding-top: clamp(8rem, 18vh, 12rem); padding-bottom: 8rem; max-width: 48rem; }
.legal h1 { font-family: "Poppins", sans-serif; font-weight: 900; font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0 0 1rem; text-transform: uppercase; color: var(--red); text-shadow: 2px 2px 0 var(--border); }
.legal h2 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.8rem; margin: 4rem 0 1rem; color: var(--text-main); text-transform: uppercase; }
.legal p, .legal li { color: var(--text-muted); font-size: 1.15rem; font-weight: 600; line-height: 1.7; }
.legal ul { padding-left: 1.5rem; }
.legal li { margin: 0.5rem 0; }
.legal .updated { font-family: "Poppins", sans-serif; font-size: 0.95rem; color: var(--text-main); margin: 0 0 3rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; display: inline-block; background: var(--yellow); padding: 0.5rem 1rem; border: 2px solid var(--border); border-radius: 12px; transform: rotate(-2deg); }
.legal a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s; }
.legal a:hover { color: var(--text-main); }
