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

:root {
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --stone-50:  #fafaf9;
  --white: #ffffff;
  --font-main: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 8px;
  --transition: 0.22s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-main); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--gray-600); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ===== HEADER / NAV ===== */
#site-header {
  background: linear-gradient(135deg, #182040 0%, #000000 100%);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 100%;
  min-width: 0;
}

/* Ensure logo doesn't overflow and shrinks gracefully */
.nav-inner .nav-logo {
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  flex-shrink: 0;
}

.nav-logo svg { color: var(--teal-800); }

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
  margin-right: 1.5rem;
}

.nav-links a {
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--gray-400);
  transition: color var(--transition);
  font-weight: 500;
  letter-spacing: .02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active { font-weight: 700; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--white);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: linear-gradient(135deg, #182040 0%, #000000 100%);
  border: none;
  padding: .75rem 1.5rem 1rem;
  gap: .35rem;
  box-shadow: none;
  margin-top: 0;
  position: relative;
  top: -1px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--gray-400);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  background: transparent;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

@media (max-width: 768px) {
  #site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    overflow: visible;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }

  .nav-inner {
    height: 60px;
    padding: 0 1rem;
  }

  .nav-inner img {
    width: 90px !important;
    height: 45px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-mobile {
    top: 0;
    margin-top: 0;
    border-top: none;
  }

  body {
    padding-top: 60px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--rose-500); color: var(--white); }
.btn-primary:hover  { background: var(--rose-600); }
.btn-secondary { background: var(--white); color: var(--gray-900); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-teal      { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-800); }
.btn-outline   { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--teal-900); }

/*===== HERO ===== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;

  height: 680px;

  /* FIX */
  width: 100%;
  background: #000;
}

.hero.fibc-theme,
.hero.pasta-theme {
  background: #000;
}

/* Full background layer */
.hero-visual {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* IMAGE + VIDEO */
.hero-video,
.hero-visual img {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;

  min-width: 100%;
  min-height: 100%;

  max-width: none;

  object-fit: cover;

  /* keeps stone visible */
  object-position: center bottom;

  transform: translate(-50%, -50%) scale(1.03);

  opacity: 0;
  transition:
    opacity .8s ease-in-out,
    transform .8s ease-in-out;

  pointer-events: none;
  z-index: 1;
}

.hero-video.active,
.hero-visual img.active {
  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1.03);

  pointer-events: auto;
}

/* overlay */
.hero-bg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to right,
      rgba(0,0,0,.0) 0%,
      rgba(0,0,0,.00) 60%,
      rgba(0,0,0,.00) 100%
    );

  z-index: 2;
  pointer-events: none;
}

/* content */
.hero .container {
  position: relative;
  z-index: 3;

  display: flex;

  align-items: flex-start; /* changed */

  height: 100%;

  padding: 40px 2rem 0 0; /* changed */

  max-width: 1200px;

  margin: 0 auto;

  width: 100%;
} 

.hero-content {
  position: relative;
  z-index: 3;

  flex: 1;

  max-width: 580px;

  padding: 0;
}

.hero-content h1 {
  margin-bottom: 1.25rem;

  color: #ffffff;

  text-shadow:
    0 2px 12px rgba(0,0,0,.4);
}

.hero-content p {
  font-size: 1.2rem;

  margin-bottom: 2rem;

  color: #fff;

  text-shadow:
    0 1px 6px rgba(0,0,0,.5);
}

.hero-btns {
  display: flex;

  gap: 1rem;

  flex-wrap: wrap;
}

/* mobile */
@media (max-width: 900px) {

  .hero {
    height: auto;
    min-height: 480px;
  }

  .hero .container {
    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    text-align: center;

    padding: 3rem 1.5rem;

    min-height: 480px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: column;

    align-items: flex-start;
  }

}

/* ===== PAGE HEADER ===== */
.page-header {
  background: #1a396f;
  color: var(--white);
  padding: 4.5rem 0;
}

.page-header h1 { color: var(--white); margin-bottom: .75rem; }
.page-header p  { color: #c8cbcf; font-size: 1.15rem; max-width: 600px; }

/* ===== FEATURE CARDS ===== */
.millet-heading-wrap {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
  margin: 2.5rem 0 1.5rem;
}

.millet-heading-wrap h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  background-color: #1a396f;
  height: 50px;
  line-height: 50px;
  animation: blink 1.1s infinite;
  width: 620px;
  max-width: 100%;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .millet-heading-wrap h3 {
    width: 100%;
    font-size: 1.25rem;
    line-height: 1.4;
    height: auto;
    padding: 6px 4px;
  }
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

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

.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-circle.teal   { background: var(--teal-100); color: var(--teal-800); }
.icon-circle.rose   { background: var(--rose-100); color: var(--rose-500); }

.feature-card h3 { margin-bottom: .5rem; color: var(--gray-900); }

/* ===== TWO-COL SECTION ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.two-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.two-col ul { margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.two-col ul li { display: flex; align-items: flex-start; gap: .65rem; color: var(--gray-700); }

.check-dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  margin-top: 2px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--teal-800);
  font-weight: 600;
  transition: gap var(--transition);
}

.link-arrow:hover { gap: .75rem; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--teal-900);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: #a7f3d0; font-size: 1.15rem; margin-bottom: 2rem; max-width: 520px; margin-inline: auto; }

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--teal-900);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number { font-family: var(--font-main); font-size: 3rem; font-weight: 700; }
.stat-label  { color: #99f6e4; font-size: .95rem; margin-top: .25rem; }

/* ===== MISSION / VISION / VALUES ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.mvv-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.mvv-card h3 { margin: 1rem 0 .75rem; color: var(--gray-900); }

/* ===== EXPERIENCE LIST ===== */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.exp-item {
  border-left: 4px solid var(--teal-700);
  padding-left: 1rem;
}

.exp-item.rose { border-color: var(--rose-500); }
.exp-item h4 { color: var(--gray-900); margin-bottom: .4rem; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.product-card:hover img { transform: scale(1.04); }

.product-card-body { padding: 1.5rem; }
.product-card-body h3 { margin-bottom: .6rem; color: var(--gray-900); }
.product-card-body p  { margin-bottom: 1rem; font-size: .95rem; }

.product-card-body ul { display: flex; flex-direction: column; gap: .4rem; }

.product-card-body ul li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-700);
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-700); flex-shrink: 0; }

/* pasta card */
.pasta-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pasta-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pasta-card img {
  width: 500px;
}

.pasta-card:hover img { transform: scale(1.04); }

.pasta-card-body { padding: 1.5rem; }
.pasta-card-body h3 { margin-bottom: .6rem; color: var(--gray-900); }
.pasta-card-body p  { margin-bottom: 1rem; font-size: .95rem; }

.pasta-card-body ul { display: flex; flex-direction: column; gap: .4rem; }

.pasta-card-body ul li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-700);
}

/* ===== QA GRID ===== */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.qa-item {
  border-left: 4px solid var(--teal-700);
  padding-left: 1.25rem;
}

.qa-item.rose { border-color: var(--rose-500); }
.qa-item h4 { color: var(--gray-900); margin-bottom: .4rem; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2.25rem;
  transition: box-shadow var(--transition);
}

.service-card:hover { box-shadow: var(--shadow-xl); }
.service-card h3 { margin: 1rem 0 .75rem; color: var(--gray-900); }
.service-card p  { margin-bottom: 1.25rem; }

.service-card ul { display: flex; flex-direction: column; gap: .6rem; }

.service-card ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--gray-700);
  font-size: .95rem;
}

.check-sm {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  margin-top: 2px;
}

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.process-grid h4 { color: var(--gray-900); margin-bottom: .5rem; }

/* ===== GLOBAL PRESENCE ===== */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.region-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.region-card:hover { box-shadow: var(--shadow-xl); }
.region-card h3 { color: var(--gray-900); margin-bottom: 1rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1rem; }

.tag {
  background: var(--teal-50);
  color: var(--teal-800);
  border-radius: 999px;
  padding: .2rem .75rem;
  font-size: .82rem;
  font-weight: 500;
}

.label-sm { font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }

.corridors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.corridor-item {
  border: 2px solid var(--teal-700);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-900);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.adv-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.adv-num.teal { background: var(--teal-100); color: var(--teal-800); }
.adv-num.rose { background: var(--rose-100); color: var(--rose-600); }

.advantages-grid h4 { color: var(--gray-900); margin-bottom: .5rem; }

.map-placeholder {
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  border-radius: 12px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--teal-900);
}

.map-placeholder svg { width: 56px; height: 56px; color: var(--teal-800); }
.map-placeholder p { font-size: .95rem; color: var(--teal-700); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}

.form-group textarea { resize: none; min-height: 150px; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--teal-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover { background: var(--teal-800); transform: translateY(-1px); }

.success-msg {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.success-msg.show { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-msg h3 { color: var(--gray-900); margin-bottom: .5rem; }

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon.teal { background: var(--teal-100); color: var(--teal-800); }
.contact-icon.rose { background: var(--rose-100); color: var(--rose-500); }

.contact-item h4 { color: var(--gray-900); margin-bottom: .3rem; }
.contact-item p  { margin: 0; font-size: .95rem; }

.hours-box {
  background: var(--stone-50);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: .5rem;
}

.hours-box h4 { color: var(--gray-900); margin-bottom: .75rem; }
.hours-box p  { font-size: .9rem; margin-bottom: .25rem; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #16a34a;
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  margin-top: .5rem;
  transition: background var(--transition);
}

.wa-btn:hover { background: #15803d; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3.5rem 0 0;
  margin-top: auto;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo svg { color: #fb7185; }

.footer-desc { color: var(--gray-400); font-size: .9rem; line-height: 1.7; }

.footer-heading { font-size: .85rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); letter-spacing: .06em; text-transform: uppercase; }

.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: var(--gray-400); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact span { color: var(--gray-400); font-size: .9rem; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.25rem 0;
  text-align: center;
  color: var(--gray-400);
  font-size: .88rem;
}

/* ===== PAGE VISIBILITY ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== UTILITIES ===== */
.bg-white   { background: var(--white); }
.bg-stone   { background: var(--stone-50); }
.bg-teal    { background: var(--teal-900); }
.text-center { text-align: center; }
.text-teal   { color: var(--teal-800); }

.section-intro { max-width: 740px; margin: 0 auto; text-align: center; margin-bottom: 3.5rem; }
.section-intro h2 { color: var(--gray-900); margin-bottom: 1rem; }
.section-intro p  { font-size: 1.05rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .two-col        { grid-template-columns: 1fr; }
  .two-col img    { height: 280px; }
  .services-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .qa-grid        { grid-template-columns: 1fr; }
  .exp-grid       { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .corridors-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .hero-btns    { flex-direction: column; align-items: stretch; }
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
}

/* ===== SIMPLE LOAD + SCROLL ANIMATIONS ===== */
body {
  overflow-x: hidden;
}

.hero-content,
.page-header,
.load,
.section-intro {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-content {
  animation-delay: 0.18s;
}

.section-intro,
.page-header {
  animation-delay: 0.2s;
}

/* Scroll reveal targets */
.feature-card, .product-card, .pasta-card, .service-card,
.mvv-card, .region-card, .qa-item, .exp-item,
.process-grid > div, .stats-grid > div, .contact-item,
.two-col > div, .corridor-item, .advantages-grid > div,
.leftedout, .who-we-are-block, .home-about {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.feature-card.reveal-visible,
.product-card.reveal-visible,
.pasta-card.reveal-visible,
.service-card.reveal-visible,
.mvv-card.reveal-visible,
.region-card.reveal-visible,
.qa-item.reveal-visible,
.exp-item.reveal-visible,
.process-grid > div.reveal-visible,
.stats-grid > div.reveal-visible,
.contact-item.reveal-visible,
.two-col > div.reveal-visible,
.corridor-item.reveal-visible,
.advantages-grid > div.reveal-visible,
.leftedout.reveal-visible,
.who-we-are-block.reveal-visible,
.home-about.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.product-card.reveal-visible:hover,
.pasta-card.reveal-visible:hover {
  transform: translateY(-4px) !important;
}

.feature-card.reveal-visible:hover {
  transform: translateY(-3px) !important;
}

.home-about.reveal-visible:hover {
  transform: translateY(-2px) !important;
}

.feature-card {
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.home-about:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-card:nth-child(2),
.product-card:nth-child(2),
.pasta-card:nth-child(2),
.service-card:nth-child(2),
.mvv-card:nth-child(2),
.region-card:nth-child(2),
.home-about:nth-child(2) {
  transition-delay: 0.08s;
}

.feature-card:nth-child(3),
.product-card:nth-child(3),
.pasta-card:nth-child(3),
.service-card:nth-child(3),
.mvv-card:nth-child(3),
.region-card:nth-child(3),
.home-about:nth-child(3) {
  transition-delay: 0.16s;
}

.feature-card:nth-child(4),
.product-card:nth-child(4),
.pasta-card:nth-child(4),
.service-card:nth-child(4),
.mvv-card:nth-child(4),
.region-card:nth-child(4),
.home-about:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .feature-card, .product-card, .pasta-card, .service-card,
  .mvv-card, .region-card, .qa-item, .exp-item,
  .process-grid > div, .stats-grid > div, .contact-item,
  .two-col > div, .corridor-item, .advantages-grid > div,
  .leftedout, .who-we-are-block, .home-about {
    opacity: 1 !important;
    transform: none !important;
  }
}

.protected-image {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* ===== LOADER ===== */
#crown-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0d2347 0%, #182040 50%, #0a1628 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#crown-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-crown-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #7fc9ff;
  border-right-color: rgba(127,201,255,0.3);
  animation: ringSpinOuter .55s linear infinite;
}

.loader-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #f43f5e;
  border-left-color: rgba(244,63,94,0.3);
  animation: ringSpinInner .4s linear infinite reverse;
}

@keyframes ringSpinOuter { to { transform: rotate(360deg); } }
@keyframes ringSpinInner { to { transform: rotate(360deg); } }

.loader-crown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: crownPulse .6s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    filter: drop-shadow(0 0 8px  rgba(127,201,255,0.6)); }
  50%       { transform: translate(-50%, -50%) scale(1.12); filter: drop-shadow(0 0 18px rgba(127,201,255,1)); }
}

.loader-orbit {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  animation: ringSpinOuter 2.2s linear infinite;
}

.loader-orbit::before,
.loader-orbit::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7fc9ff;
  top: 50%; left: 0;
  transform: translateY(-50%);
  box-shadow: 0 0 8px #7fc9ff;
}

.loader-orbit::after {
  left: auto; right: 0;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

.loader-brand {
  text-align: center;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.2s;
}

.loader-brand-name {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  color: #7fc9ff;
  letter-spacing: 0.04em;
}

.loader-brand-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.loader-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(127,201,255,0.5);
  animation: dotBounce .5s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.08s; }
.loader-dots span:nth-child(3) { animation-delay: 0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; background: #7fc9ff; }
}

/* ===== INDEXING ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ===== HOME ABOUT ===== */
.home-about {
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.home-about h2 {
  color: #1a396f;
  font-weight: 700;
}

.home-about strong {
  color: #1a396f;
  font-weight: 600;
}

.home-about img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  object-fit: cover;
}

@media (max-width: 768px) {
  .home-about {
    gap: 2rem;
    padding: 2.5rem 1rem;
  }

  .home-about h2 {
    font-size: 2.1rem;
    text-align: center;
  }

  .home-about p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
  }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: .6rem;
  transition: transform var(--transition);
  display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #182040 0%, #000000 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: .5rem 0;
  padding-top: 12px;
  min-width: 220px;
  z-index: 200;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .88rem;
  color: var(--gray-400);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ===== PRODUCT / SPEC TABLE ===== */
.fibc-spec-card {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fibc-spec-card .product-card-body {
  padding: 0;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.product-table td {
  border: 1px solid #e5e5e5;
  padding: 18px;
  vertical-align: top;
  line-height: 1.5;
  font-weight: 400;
}

.desktop-table td:nth-child(odd) {
  background: #f7f7f7;
  width: 18%;
  font-weight: 600;
}

.desktop-table td:nth-child(even) {
  width: 32%;
  font-weight: 500;
}

.product-table tr:hover td {
  background: #fafafa;
}

.mobile-table {
  display: none;
}

@media (max-width: 900px) {
  .desktop-table {
    display: none;
  }

  .mobile-table {
    display: table;
    border-collapse: collapse;
  }

  .mobile-table td {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    border: 1px solid #e5e5e5;
    background: #fff;
  }

  .mobile-table td:first-child {
    width: 110px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    background: #f7f7f7;
  }

  .mobile-table td:last-child {
    font-weight: 400;
  }
}
/* ===================================================
   MOBILE RESPONSIVE — COMPREHENSIVE OVERHAUL
   =================================================== */

/* --- Hero: mobile-specific images --- */
/* Desktop hero images show by default */
.hero-slide.desktop-hero { display: block; }
.hero-slide.mobile-hero  { display: none;  }

@media (max-width: 768px) {
  /* Swap to mobile hero images */
  .hero-slide.desktop-hero { display: none !important; }
  .hero-slide.mobile-hero  {
    display: block !important;
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%) scale(1.03);
    opacity: 0;
    transition: opacity .8s ease-in-out, transform .8s ease-in-out;
    pointer-events: none;
    z-index: 1;
  }

  .hero-slide.mobile-hero.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero sizing on mobile */
  .hero {
    height: 520px;
    min-height: 400px;
  }

  .hero .container {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    min-height: 100%;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Two-column sections stack --- */
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col img {
    height: 240px;
    order: -1;
  }

  /* --- Products grid — 1 col on very small --- */
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  /* --- Stats grid --- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-number { font-size: 2.2rem; }

  /* --- Features grid --- */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* --- Services/QA/Exp grids stack --- */
  .services-grid,
  .qa-grid,
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* --- Process steps --- */
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* --- Contact grid stack --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* --- Footer grid stack --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  /* --- Advantages grid --- */
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* --- Corridors --- */
  .corridors-grid {
    grid-template-columns: 1fr;
  }

  /* --- Page header text --- */
  .page-header {
    padding: 3rem 0;
  }

  .page-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* --- Section intro padding --- */
  .section-intro {
    margin-bottom: 2rem;
  }

  /* --- Pasta card image fix --- */
  .pasta-card img {
    width: 100%;
  }

  /* --- Home about section --- */
  .home-about {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  /* --- CTA band --- */
  .cta-band {
    padding: 3.5rem 0;
  }

  .cta-band p {
    font-size: 1rem;
  }

  /* --- Spec tables --- */
  .fibc-spec-card {
    margin: 20px auto;
    border-radius: 8px;
  }

  /* --- Mobile nav link spacing --- */
  .nav-mobile a {
    padding: .85rem 1rem;
    font-size: 0.95rem;
  }
}

/* Extra-small phones */
@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    height: 460px;
  }

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

/* Tablet - between 769 and 960 */
@media (min-width: 769px) and (max-width: 960px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: .82rem;
  }

  .hero {
    height: 580px;
  }

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

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

/* Fix: always keep toggle in view on small screens */
@media (max-width: 768px) {
  #site-header .container {
    overflow: visible;
  }

  /* Prevent any horizontal overflow */
  #main-content {
    overflow-x: hidden;
  }
}
@media (max-width: 768px) {
  .section-sm + .section {
    padding-top: 1.5rem;
  }
}
@media (max-width: 768px) {
  .section-sm .section-intro p {
    margin-bottom: -100px !important;
  }
}
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}