/* =============================================================
   CHENAPODA BALASORE — SUNBEAM BAGELS STYLE REDESIGN
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   CSS VARIABLES
   ───────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #FFF8E7; /* Warm cream */
  --bg-secondary: #EEDBC5;
  --text-main: #3E2723; /* Deep dark brown */
  --text-light: #5D4037;
  
  --accent-orange: #E75A33;
  --accent-yellow: #F5A623;
  --accent-brown: #7A4420;
  
  --navbar-gradient: linear-gradient(to right, #e73c33, #f5a623, #d8b4e2);

  /* Typography */
  --font-serif: 'Fraunces', serif;
  --font-script: 'Pacifico', cursive;
  --font-sans: 'DM Sans', sans-serif;

  /* Layout */
  --nav-height: 80px;
  --container-width: 1200px;
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial; /* Lenis handles this */
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.section__eyebrow {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.section__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background-color: var(--text-main);
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.bg-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('images/chhena_poda_3d.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.bg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay to make text pop */
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 10;
  color: #fff;
}

.hero__title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-transform: capitalize;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero__title-accent {
  display: block;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   NAVBAR (BOTTOM FLOATING/DOCKED)
   ───────────────────────────────────────────────────────────── */
.navbar-wrapper {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 800px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-wrapper.active {
  bottom: 0;
  width: 100%;
  max-width: 100%;
}

.navbar__inner {
  background: var(--navbar-gradient);
  border-radius: 50px;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: border-radius 0.4s ease;
}

.navbar-wrapper.active .navbar__inner {
  border-radius: 0;
  padding: 1rem 4rem;
}

.navbar__brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 800;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__link {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.navbar__link:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT SECTION
   ───────────────────────────────────────────────────────────── */
.about {
  background-color: var(--bg-secondary);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__description {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.about__image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   PRODUCTS SECTION
   ───────────────────────────────────────────────────────────── */
.products {
  background-color: var(--bg-primary);
  text-align: center;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  text-align: left;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 2rem;
}

.product-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.product-card__price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background-color: var(--text-main);
  color: #fff;
  padding: 6rem 0 2rem;
}

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

.footer__brand-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-yellow);
}

.footer a {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer a:hover {
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero__title { font-size: 3rem; }
  .about__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  
  .navbar__links {
    display: none; /* simple hidden state for mobile in this rewrite */
  }
}

/* SERVICES & BLOG */
.services__grid, .blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; text-align: left; }
.service-card, .blog-card { background: #fff; padding: 2rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.blog-card { padding: 0; overflow: hidden; }
.blog-card__image-wrap { aspect-ratio: 16/9; }
.blog-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 2rem; }
.blog-card__title { font-size: 1.5rem; margin: 0.5rem 0; }

/* CONTACT SECTION & FORMS */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 2px solid #EEDBC5; border-radius: 8px; font-family: var(--font-sans); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-orange); }
.contact__detail { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact__socials { display: flex; gap: 1rem; margin-top: 2rem; }
.contact__social-link { width: 40px; height: 40px; background: var(--bg-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: 0.3s; }
.contact__social-link:hover { background: var(--accent-orange); color: #fff; }

/* LOADING SCREEN */
#loader { position: fixed; inset: 0; background: var(--bg-primary); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.8s ease, visibility 0.8s; }
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-icon { font-size: 4rem; animation: spin 2s linear infinite; margin-bottom: 1rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* HOVER ANIMATIONS */
.btn:hover, .product-card:hover, .service-card:hover, .blog-card:hover { transform: scale(1.02); }


.loader-image { width: 150px; height: 150px; border-radius: 50%; animation: spinImage 3s linear infinite; }
@keyframes spinImage { 100% { transform: rotate(360deg); } }
.since-text { display: block; font-size: 0.8rem; font-family: var(--font-sans); color: var(--accent-orange); letter-spacing: 1px; font-weight: 500; text-transform: uppercase; margin-top: 4px; }


/* PROEXIMA AI POPUP */
.proexima-popup { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.proexima-popup.show { opacity: 1; visibility: visible; }
.proexima-popup__content { background: #FFF9F2; padding: 3rem 2rem; border-radius: 24px; max-width: 480px; width: 90%; text-align: center; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.25); transform: translateY(40px) scale(0.95); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); border: 2px solid var(--accent-orange); }
.proexima-popup.show .proexima-popup__content { transform: translateY(0) scale(1); }
.proexima-popup__close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--bg-secondary); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.proexima-popup__close:hover { background: var(--accent-orange); color: #fff; transform: rotate(90deg); }
.proexima-popup__icon { font-size: 3.5rem; margin-bottom: 1rem; animation: float 3s ease-in-out infinite; display: inline-block; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.proexima-popup__title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; color: var(--accent-orange); line-height: 1.2; }
.proexima-popup__text { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; color: var(--text-main); }
.proexima-popup__note { font-size: 0.9rem; color: #777; margin-top: 1.5rem; font-style: italic; }
@media (max-width: 768px) { .contact__inner { grid-template-columns: 1fr; gap: 3rem; } }

