/* ===== KSV COTTON MILLS - Brand Colors ===== */
:root {
  --red: #ff3333;
  --blue: #333399;
  --white: #ffffff;
  --dark: #1a1a2e;
  --light-bg: #f7f7ff;
  --text: #2d2d2d;
  --text-muted: #666;
  --border: #e0e0f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--blue);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--white); text-decoration: none; margin-left: 12px; }
.topbar a:hover { color: #ffcccc; }
.topbar-left { display: flex; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 5px; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(51,51,153,0.10);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
nav ul { list-style: none; display: flex; gap: 6px; align-items: center; }
nav ul li a {
  display: block;
  padding: 8px 16px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--red);
  background: #fff0f0;
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  padding: 9px 20px !important;
}
.nav-cta:hover { background: #cc0000 !important; color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; }
.hamburger span { width: 26px; height: 2px; background: var(--blue); display: block; transition: 0.3s; }

/* ===== CONTAINER ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, #1a1a6e 60%, #0d0d3d 100%);
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/5\ Spinning.jpeg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #cc0000; }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ===== STAT STRIP ===== */
.stat-strip {
  background: var(--red);
  color: var(--white);
  padding: 22px 0;
}
.stat-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.9rem; font-weight: 800; }
.stat-item span { font-size: 13px; opacity: 0.9; letter-spacing: 0.5px; }

/* ===== SECTION COMMON ===== */
section { padding: 80px 0; }
.section-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-title span { color: var(--red); }
.section-desc { color: var(--text-muted); max-width: 560px; line-height: 1.8; }
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }

/* ===== ABOUT STRIP (homepage) ===== */
.about-strip { background: var(--light-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 6px; object-fit: cover; height: 380px; display: block; }
.about-img-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--blue);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.about-img-badge span { display: block; font-size: 2rem; font-weight: 900; color: var(--red); }
.about-text ul { list-style: none; margin: 20px 0; }
.about-text ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}
.about-text ul li::before { content: '▸'; color: var(--red); flex-shrink: 0; font-size: 14px; margin-top: 3px; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(51,51,153,0.12); border-color: var(--red); }
.service-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.service-card-body { padding: 22px; }
.service-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.service-icon {
  width: 42px; height: 42px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 18px;
}

/* ===== TEAM ===== */
.team-section { background: var(--light-bg); }
.team-grid { display: flex; gap: 40px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(51,51,153,0.10);
  width: 280px;
  text-align: center;
  transition: 0.3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(51,51,153,0.18); }
.team-card img { width: 100%; height: 300px; object-fit: cover; object-position: top; display: block; }
.team-card-body {
  padding: 22px 18px;
  border-top: 3px solid var(--red);
}
.team-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.team-card-body p { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 4px; }
.team-card-body small { color: var(--text-muted); font-size: 13px; display: block; margin-top: 10px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(51,51,153,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
  color: var(--white); font-weight: 600; font-size: 14px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== PATRONS ===== */
.patrons-section { background: var(--white); }
.patrons-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.patron-badge {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: 0.2s;
  text-align: center;
}
.patron-badge:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), #1a1a6e);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.cta-banner p { opacity: 0.85; margin-bottom: 30px; font-size: 1.05rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; margin-top: 50px; }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.contact-item strong { display: block; font-size: 15px; color: var(--dark); }
.contact-item span { color: var(--text-muted); font-size: 14px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: 0.2s;
  color: var(--text);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51,51,153,0.08);
}
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}
.btn-submit:hover { background: #cc0000; }

/* ===== MAP ===== */
.map-wrap { margin-top: 20px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 420px; }
.map-full { margin-top: 0; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
.map-full iframe { height: 480px; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; color: var(--red); width: 16px; height: 16px; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.footer-bottom a { color: var(--red); text-decoration: none; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue), #1a1a6e);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { opacity: 0.82; font-size: 1.05rem; }
.breadcrumb { font-size: 13px; margin-top: 12px; opacity: 0.7; }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { color: #ffcccc; }

/* ===== CAPACITY TABLE ===== */
.table-wrap { overflow-x: auto; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table thead tr { background: var(--blue); color: var(--white); }
table thead th { padding: 12px 16px; text-align: left; font-weight: 600; }
table tbody tr:nth-child(even) { background: var(--light-bg); }
table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table tbody tr:hover { background: #eeeeff; }

/* ===== VISION/MISSION ===== */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.vm-card {
  border-radius: 8px;
  padding: 36px 30px;
  color: var(--white);
}
.vm-card.vision { background: linear-gradient(135deg, var(--blue), #2222aa); }
.vm-card.mission { background: linear-gradient(135deg, var(--red), #cc0000); }
.vm-card h3 { font-size: 1.3rem; margin-bottom: 16px; font-weight: 800; }
.vm-card p { opacity: 0.9; line-height: 1.8; }

/* ===== PRODUCTIONS ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.prod-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px;
  background: var(--white);
  border-top: 4px solid var(--red);
  transition: 0.3s;
}
.prod-card:hover { box-shadow: 0 8px 24px rgba(51,51,153,0.12); transform: translateY(-3px); }
.prod-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.prod-card .big-num { font-size: 2rem; font-weight: 900; color: var(--red); }
.prod-card span { font-size: 13px; color: var(--text-muted); }

/* ===== SUCCESS ALERT ===== */
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .about-img-badge { right: 0; bottom: 0; }
}
@media (max-width: 640px) {
  section { padding: 55px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 14px; z-index: 998; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .team-grid { flex-direction: column; align-items: center; }
}
