/* =============================================
   NutriFitHealth — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=Rajdhani:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --blue:      #00AEFF;
  --green:     #00DE94;
  --lime:      #89F336;
  --dark:      #050a0f;
  --dark2:     #0a1520;
  --dark3:     #0d1e2c;
  --card-bg:   rgba(10, 21, 32, 0.85);
  --text:      #e8f4fc;
  --text-muted:#8fafc8;
  --border:    rgba(0, 174, 255, 0.18);
  --glow-blue: 0 0 24px rgba(0, 174, 255, 0.35);
  --glow-green:0 0 24px rgba(0, 222, 148, 0.35);
  --font-head: 'Bebas Neue', 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-ui:   'Rajdhani', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

img { max-width: 100%; display: block; }

/* =============================================
   HEX PATTERN BACKGROUND
   ============================================= */
/*.hex-bg {
  background-color: var(--dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(0,174,255,0.07)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52l28-16 28 16v32z' fill='none' stroke='rgba(0,174,255,0.07)' stroke-width='1'/%3E%3Cpath d='M56 66L28 50V18L56 2' fill='none' stroke='rgba(0,174,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
}

.hex-bg-green {
  background-color: var(--dark2);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(0,222,148,0.06)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52l28-16 28 16v32z' fill='none' stroke='rgba(0,222,148,0.06)' stroke-width='1'/%3E%3Cpath d='M56 66L28 50V18L56 2' fill='none' stroke='rgba(0,222,148,0.06)' stroke-width='1'/%3E%3C/svg%3E");
} */

.hex-bg {
  background-color: var(--dark);
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='52' viewBox='0 0 70 52'%3E%3Cg fill='none' stroke='rgba(0,174,255,0.16)' stroke-width='2' stroke-linejoin='round'%3E%3C!-- Row A --%3E%3Cpath d='M10 0 L30 0 L40 17.3205 L30 34.641 L10 34.641 L0 17.3205 Z'/%3E%3C!-- Row B --%3E%3Cpath d='M40 17.3205 L60 17.3205 L70 34.641 L60 51.9615 L40 51.9615 L30 34.641 Z'/%3E%3C/g%3E%3C/svg%3E");
}


/*

.hex-bg-green {
  background-color: var(--dark2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='78' viewBox='0 0 90 78'%3E%3Cg stroke='rgba(0,222,148,0.16)' stroke-width='2' fill='none'%3E%3Cpath d='M15 1 L45 1 L60 26 L45 51 L15 51 L0 26 Z'/%3E%3Cpath d='M15 1 L45 1 L60 26 L45 51 L15 51 L0 26 Z' transform='translate(45,26)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 78px;
}
*/

.hex-bg-green {
  background-color: var(--dark2);
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='52' viewBox='0 0 70 52'%3E%3Cg fill='none' stroke='rgba(0,222,148,0.16)' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 0 L30 0 L40 17.3205 L30 34.641 L10 34.641 L0 17.3205 Z'/%3E%3Cpath d='M40 17.3205 L60 17.3205 L70 34.641 L60 51.9615 L40 51.9615 L30 34.641 Z'/%3E%3C/g%3E%3C/svg%3E");
}


/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 76px;
  background: rgba(5, 10, 15, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar__logo img {
  height: 62px;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.3s;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--blue);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__cta {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--dark) !important;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s !important;
  white-space: nowrap;
}

.navbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-blue);
  color: var(--dark) !important;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero__photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1920&q=85');
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) saturate(0.65);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(5,10,15,0.6) 20%, rgba(5,10,15,0.15) 70%),
    linear-gradient(to bottom, rgba(5,10,15,0.55) 0%, transparent 40%, rgba(5,10,15,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__hex-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32z' fill='none' stroke='rgba(0,174,255,0.15)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V52l28-16 28 16v32z' fill='none' stroke='rgba(0,174,255,0.15)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0, 222, 148, 0.35);
  background: rgba(0, 222, 148, 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title .word-blue {
  color: var(--blue);
  text-shadow: 0 0 40px rgba(0, 174, 255, 0.5);
}

.hero__title .word-green {
  color: var(--green);
  text-shadow: 0 0 40px rgba(0, 222, 148, 0.5);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 174, 255, 0.4);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 174, 255, 0.1);
  transform: translateY(-2px);
  color: var(--blue);
}

/* =============================================
   SECTIONS
   ============================================= */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-label.green { color: var(--green); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: linear-gradient(90deg, rgba(0,174,255,0.12), rgba(0,222,148,0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
}

.stats-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-item__label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   FOOD PHOTO STRIP
   ============================================= */
.food-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 210px;
  overflow: hidden;
  position: relative;
}

.food-strip__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--dark) 0%, transparent 12%, transparent 88%, var(--dark) 100%),
    linear-gradient(to bottom, rgba(5,10,15,0.3) 0%, transparent 30%, transparent 70%, rgba(5,10,15,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

.food-strip__cell {
  position: relative;
  overflow: hidden;
}

.food-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(0.7);
  transition: transform 0.55s ease, filter 0.55s ease;
  display: block;
}

.food-strip__cell:hover img {
  transform: scale(1.08);
  filter: brightness(0.78) saturate(1.1);
}

.food-strip__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 3;
}

.food-strip__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem;
  background: linear-gradient(to top, rgba(5,10,15,0.92), transparent);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  z-index: 3;
}

/* =============================================
   RECIPE CARDS
   ============================================= */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-blue);
  border-color: rgba(0, 174, 255, 0.4);
}

.recipe-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(0.82);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.recipe-card:hover .recipe-card__image {
  transform: scale(1.04);
  filter: brightness(0.88) saturate(1.05);
}

.recipe-card__image-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.recipe-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(5,10,15,0.72));
}

.recipe-card__image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--dark3) 0%, #0e2235 100%);
  position: relative;
}

.recipe-card__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(5,10,15,0.8));
}

.recipe-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.tag-blue { background: rgba(0,174,255,0.15); color: var(--blue); border: 1px solid rgba(0,174,255,0.3); }
.tag-green { background: rgba(0,222,148,0.15); color: var(--green); border: 1px solid rgba(0,222,148,0.3); }
.tag-lime { background: rgba(137,243,54,0.15); color: var(--lime); border: 1px solid rgba(137,243,54,0.3); }

.recipe-card__body {
  padding: 1.5rem;
}

.recipe-card__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.recipe-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.recipe-card__meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.recipe-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.recipe-card__meta svg {
  width: 14px; height: 14px;
  fill: var(--blue);
}

/* =============================================
   MACRO BADGE
   ============================================= */
.macros-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.macro-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 130px;
  transition: border-color 0.3s;
}

.macro-badge:hover { border-color: var(--green); }

.macro-badge__value {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
}

.macro-badge__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   CATEGORY PILLS
   ============================================= */
.category-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cat-pill {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--dark);
  border-color: transparent;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter {
  background: linear-gradient(135deg, rgba(0,174,255,0.1) 0%, rgba(0,222,148,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  min-width: 220px;
  background: rgba(5,10,15,0.6);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus { border-color: var(--blue); }

/* =============================================
   FEATURE CARDS
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 222, 148, 0.4);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,174,255,0.2), rgba(0,222,148,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-card__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: rgba(5, 10, 15, 0.98);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.65;
}

.footer__col-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,174,255,0.1);
}

/* =============================================
   DIVIDER
   ============================================= */
.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  border: none;
  margin: 0;
}

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,174,255,0); }
  50%       { box-shadow: 0 0 20px 6px rgba(0,174,255,0.25); }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 130px 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,174,255,0.1) 0%, transparent 70%);
}

/* =============================================
   RECIPE DETAIL
   ============================================= */
.recipe-detail {
  max-width: 860px;
  margin: 0 auto;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ingredients-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.ingredients-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.step-card__num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--blue);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-wrap.open { display: flex; }

.modal {
  background: var(--dark2);
  border: 1px solid rgba(0, 174, 255, 0.25);
  border-radius: 20px;
  max-width: 740px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__photo-header {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.modal__photo-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.75);
  display: block;
}

.modal__photo-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,15,0.2) 0%, rgba(10,21,32,0.97) 100%);
}

.modal__photo-header-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  z-index: 2;
}

.modal__title {
  font-family: var(--font-head);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.modal__subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 10, 15, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}

.modal__close:hover { background: rgba(255,255,255,0.15); }

.modal__body { padding: 2rem; }

.modal__macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.modal__macro-box {
  background: rgba(5, 10, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}

.modal__macro-val {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--green);
  line-height: 1;
}

.modal__macro-lbl {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.modal__section { margin-bottom: 1.75rem; }

.modal__section-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.modal__ingredients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal__ingredients li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0,174,255,0.06);
}

.modal__ingredients li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.modal__step {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  background: rgba(5, 10, 15, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.modal__step-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--blue);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.modal__step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal__step-text strong { color: var(--text); }

.recipe-click-hint {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  padding-top: 0.5rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .modal__macros { grid-template-columns: repeat(2, 1fr); }
  .modal__photo-header { height: 180px; }
  .modal__title { font-size: 1.5rem; }
}
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(5,10,15,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .food-strip { grid-template-columns: repeat(2, 1fr); }
  .modal__macros { grid-template-columns: repeat(2, 1fr); }
  .modal__photo-header { height: 180px; }
  .modal__title { font-size: 1.5rem; }
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(5,10,15,0.97);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .navbar__cta { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
}
