/* ================= THEME VARIABLES ================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text: #1f2933;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --primary: #111827;
  --secondary: #4888ef;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #020617;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1e293b;
  --primary: #e5e7eb;
}

/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
}

/* ================= UTILITIES ================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1.5rem;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* ================= BUTTONS ================= */
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
}
.btn-primary:hover
{
    background: var(--secondary);
    color: var(--bg);
}

.btn-secondary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.9rem;
}

.btn-secondary:hover
{
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 90%;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ================= THEME TOGGLE ================= */
.theme-toggle {
  margin-left: 1rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  position: relative;
}

/* Tooltip */
.theme-toggle::after {
  content: attr(title);
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Tooltip arrow */
.theme-toggle::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--text) transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Show on hover & focus */
.theme-toggle:hover::after,
.theme-toggle:hover::before,
.theme-toggle:focus-visible::after,
.theme-toggle:focus-visible::before {
  opacity: 0.75;
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  padding: 6rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  color: var(--secondary);
}


.hero-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.hero-content p {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* ================= HERO VISUAL ================= */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fridge-svg {
  width: 100%;
  max-width: 340px;
}

.magnet {
  animation: float 5s ease-in-out infinite;
}

.magnet-2 {
  animation-delay: 1s;
}

.magnet-3 {
  animation-delay: 2s;
}

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







/* ================= ABOUT ================= */
.about {
  background: var(--bg-soft);
  text-align: center;
}

.about h2 {
  font-size: 2rem;
}

.about p {
  margin-top: 1rem;
  max-width: 700px;
  margin-inline: auto;
  color: var(--text-muted);
}

/* ================= VIDEO SECTION ================= */
.video-section {
  background: var(--bg);
  text-align: center;
}

.video-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html[data-theme="dark"] .video-wrapper {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ================= PRODUCTS ================= */
.products
{
    background: var(--bg-soft);
  text-align: center;
}
.products h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {

  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Center alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-card img
{
    width: auto;
    height: 7rem;
    margin: 1rem 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.product-card h3 {
  margin-top: 1rem;
}

.product-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ================= FAQ ================= */


.faq h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}

.faq-item h4 {
  font-weight: 600;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  display: none;
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-width: 300px;
  }
}



/*ABOUT PAGE*?

/* ================= ABOUT PAGE ================= */
.about
{
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 5rem;
}
.about-page h1,
.about-page h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-page p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  margin-inline: auto;
  line-height: 1.6;
}

/* ===== STORY GRID ===== */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card img {
  height: 8rem;
  width: auto;
  margin-bottom: 1rem;
  object-fit: cover;  /* ensures the image fills the container while cropping */
  object-position: center;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.story-card h3 {
  margin-bottom: 0.5rem;
}

/* ===== FAQ ITEMS ===== */

.about-faq {
  margin-top: 3rem;
}

.about-faq .faq-item {
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-faq .faq-item:hover {
  background: var(--bg);
}

.about-faq h4 {
  margin: 0;
  font-weight: 600;
}

.about-faq p {
  margin-top: 0.5rem;
  display: none;
  color: var(--text-muted);
}

/* FAQ Open State */
.about-faq .faq-item.active p {
  display: block;
}

/* ================= CONTACT PAGE ================= */

.contact-page
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-page h1,
.contact-page h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  
}

.contact-page p {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== CONTACT INFO ===== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-details a {
  color: var(--primary);
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
  margin: 2rem;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  width: 60%;
}

.contact-page form
{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column; 
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group .btn-primary
{
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-details {
    gap: 0.6rem;
  }

  .contact-form-section {
    padding: 0 1rem;
  }
}

