/* ==========================================================================
   Mipru's Kitchen - Complete Responsive Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --primary-navy: #0a192f;
  --secondary-navy: #112240;
  --dark-footer: #060e1a;
  --warm-gold: #e0a938;
  --gold-hover: #c9932b;
  --gradient-gold: linear-gradient(135deg, #e0a938 0%, #f59e0b 100%);
  --bg-light: #f8fafc;
  --surface-white: #ffffff;
  --text-dark: #0f172a;
  --text-light: #f1f5f9;
  --muted-text: #475569;
  --muted-light: #cbd5e1;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- Base Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.script-accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--warm-gold);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted-text);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 169, 56, 0.25);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  background: var(--gradient-gold);
  color: var(--primary-navy);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(224, 169, 56, 0.35);
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo-badge {
  transform: rotate(-12deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-tagline-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--warm-gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted-light);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--warm-gold);
}

.btn-nav-quote {
  background: var(--gradient-gold);
  color: var(--primary-navy) !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(224, 169, 56, 0.3);
  transition: all 0.3s ease !important;
}

.btn-nav-quote:hover {
  background: #ffffff;
  color: var(--primary-navy) !important;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding: 70px 0 80px 0;
  background: linear-gradient(180deg, var(--primary-navy) 0%, var(--dark-footer) 100%);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 20px 0;
}

.hero-content h1 span {
  color: var(--warm-gold);
}

/* Centered hero description for subpages */
.hero-description {
  font-size: 1.1rem;
  color: var(--muted-light);
  margin: 0 auto 32px auto;
  max-width: 600px;
}

/* Left-aligned hero description for homepage hero grid */
.hero-grid .hero-description {
  margin-left: 0;
  margin-right: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--gradient-gold);
  color: var(--primary-navy);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(224, 169, 56, 0.25);
  text-align: center;
}

.btn-hero-primary:hover {
  background: #ffffff;
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
}

.hero-visual-stack {
  position: relative;
  width: 100%;
}

.hero-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--secondary-navy);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Story & Founder Layouts --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.story-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.story-img-main {
  grid-column: span 2;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story-img-sub {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story-content > *:first-child,
.founder-content > *:first-child {
  margin-top: 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.founder-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid var(--warm-gold);
  box-shadow: var(--shadow-lg);
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Services Section --- */
.services-section {
  background: #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrapper {
  position: relative;
  height: 200px;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.service-content h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.service-content p {
  color: var(--muted-text);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.link-arrow {
  color: var(--warm-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Quality Banner --- */
.experience-banner {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
}

.experience-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.feature-icon {
  color: var(--warm-gold);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* --- Contact Page Grids --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-grid > * > *:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.contact-card-info strong {
  display: block;
  color: var(--primary-navy);
}

.contact-card-info span {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.badge-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(224, 169, 56, 0.15);
  color: var(--warm-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* --- Client Marquee --- */
.clients-marquee-section {
  background-color: var(--primary-navy);
  padding: 50px 0 60px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(224, 169, 56, 0.25);
  border-bottom: 1px solid rgba(224, 169, 56, 0.25);
}

.logo-marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-shrink: 0;
  min-width: 100%;
  animation: scrollHorizontal 25s linear infinite;
}

.logo-card {
  width: 170px;
  height: 85px;
  background: #ffffff;
  border: 1px solid rgba(224, 169, 56, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes scrollHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 30px)); }
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-footer);
  color: #cbd5e1;
  padding: 60px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-brand h3,
.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Alignment Fixes
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid,
  .story-grid,
  .founder-grid,
  .contact-grid,
  .experience-grid {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 45px 0;
  }

  /* Navigation Toggle */
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-navy);
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
  }

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

  /* Universal Mobile Text & Element Alignment */
  .hero {
    padding: 45px 0 55px 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-description {
    margin: 0 auto 24px auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .story-grid,
  .founder-grid,
  .contact-grid,
  .services-grid,
  .form-row,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Mobile Content Block Alignment */
  .story-content,
  .founder-content {
    text-align: left;
  }

  .founder-avatar {
    width: 160px;
    height: 160px;
  }

  .contact-card {
    text-align: left;
  }

  .experience-banner {
    padding: 30px 20px;
    text-align: center;
  }

  .feature-item {
    text-align: left;
  }

  .footer-grid {
    text-align: left;
  }

  /* Clean Image Dimensions on Mobile */
  .story-image-wrapper img {
    max-height: 320px;
  }

  .story-img-main {
    height: 180px;
  }

  .story-img-sub {
    height: 130px;
  }
}