/* ═══════════════════════════════════════════════════════════════════════════
   HOUSE OF MANOHAR — SHARED STYLES
   Design System for SSMD Agrotech India Limited Website
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES / DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Primary Colors */
  --red: #8B1A1A;
  --red-mid: #6B1515;
  --red-dark: #4A0F0F;
  --red-lt: #F5E8E8;
  
  /* Accent Colors */
  --gold: #C4960A;
  --gold-lt: #FDF6E3;
  --gold-dark: #8B6914;
  
  /* Neutral Colors */
  --cream: #FDF8F2;
  --white: #FFFFFF;
  --dark: #1C0F09;
  --dark2: #2D1810;
  --mid: #5C4A42;
  --grey: #8B7D76;
  
  /* Semantic Colors */
  --green: #2E7D32;
  --green-lt: #E8F5E9;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max: 1280px;
  --section-pad: 5rem;
  --section-pad-mobile: 3rem;
  
  /* Animation */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* ─── ANNOUNCEMENT BAR ─────────────────────────────────────────────────────── */
.ann-bar {
  background: var(--dark);
  color: var(--gold-lt);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-bar span {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 768px) {
  .ann-bar {
    font-size: 0.6rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ─── HOW WE DELIVER ────────────────────────────────────────────────────── */
.quality-section {
  background: var(--cream);
  padding: 7rem 0;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.quality-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--red);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.quality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.quality-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.quality-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .8rem;
}
.quality-desc {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--mid);
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(139, 26, 26, 0.08);
  transition: all 0.3s var(--ease);
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Nav Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.nav-logo .wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-logo .sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--red);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}

/* Dropdown Arrow */
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

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

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(139, 26, 26, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark2);
  border-bottom: 1px solid rgba(139, 26, 26, 0.06);
  transition: all 0.2s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--red);
  padding-left: 1.5rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Stock Ticker */
.stock-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--cream);
  border: 1px solid rgba(139, 26, 26, 0.1);
  font-size: 0.72rem;
  text-decoration: none;
  transition: all 0.2s;
}

.stock-ticker:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.1);
}

.st-label {
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.05em;
}

.st-price {
  font-weight: 700;
  color: var(--dark);
}

.st-change {
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
}

.st-change.positive {
  background: var(--green-lt);
  color: var(--green);
}

.st-change.negative {
  background: var(--red-lt);
  color: var(--red);
}

/* Nav CTA Button */
.nav-cta {
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--red-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.25);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s var(--ease);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu ul {
  margin-bottom: 2rem;
}

.mobile-menu ul li {
  border-bottom: 1px solid rgba(139, 26, 26, 0.08);
}

.mobile-menu ul li > a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
}

.mobile-submenu {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-submenu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--mid);
}

.mob-cta {
  display: block;
  text-align: center;
  background: var(--red);
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Nav Responsive */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  
  .stock-ticker {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 65px;
    padding: 0 1rem;
  }
  
  .nav-logo .wordmark {
    font-size: 1.2rem;
  }
  
  .nav-logo .sub {
    font-size: 0.55rem;
  }
}

/* ─── PAGE HERO ────────────────────────────────────────────────────────────── */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
}

.page-hero-left {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.page-hero-right {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--red-dark) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 150, 10, 0.15) 0%, transparent 70%);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: var(--grey);
}

.breadcrumb .current {
  color: var(--red);
  font-weight: 600;
}

/* Hero Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-eyebrow .line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero-eyebrow span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hero Title */
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid);
  max-width: 500px;
}

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .page-hero-left {
    padding: 3rem 1.5rem;
  }
  
  .page-hero-right {
    display: none;
  }
}

/* ─── SECTION HEADER ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.section-header h2 em {
  font-style: italic;
  color: var(--red);
}

.section-header p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
}

/* ─── TAG / LABEL ──────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--red);
  margin-bottom: 1rem;
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--red-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--red);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-brand .sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.f-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(196, 150, 10, 0.4);
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 3rem 0 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── WHATSAPP FLOATING BUTTON ─────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ─── SCROLL REVEAL ANIMATIONS ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ─── UTILITY CLASSES ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ─── SELECTION STYLING ────────────────────────────────────────────────────── */
::selection {
  background: var(--red);
  color: var(--white);
}

::-moz-selection {
  background: var(--red);
  color: var(--white);
}

/* ─── SCROLLBAR STYLING ────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-mid);
}

/* ─── FOCUS STYLES (Accessibility) ─────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ─── PRINT STYLES ─────────────────────────────────────────────────────────── */
@media print {
  .ann-bar,
  #main-nav,
  .whatsapp-float,
  .mobile-menu,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  .page-hero {
    min-height: auto;
    padding: 1rem 0;
  }
}
