/* ============================================================
   SREE CHAKRA SEWING SYSTEMS — MODERN PREMIUM CSS
   Common Styles & Global Components
============================================================ */

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

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --brand-red: #c62828;
  --brand-dark: #a31616;
  --brand-light: #ef5350;
  --text-main: #222;
  --text-muted: #555;
  --text-light: #777;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-light: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: var(--bg-light);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =========================================
   TYPOGRAPHY
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-red);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.5rem;
  font-family: "Poppins", sans-serif;
}

h2 {
  font-size: 2rem;
  font-family: "Poppins", sans-serif;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
  line-height: 1.7;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-dark);
}

/* =========================================
   BUTTONS
========================================= */
button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: var(--brand-red);
  color: #fff;
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

button:active {
  transform: translateY(0);
}

/* =========================================
   FORM ELEMENTS
========================================= */
input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--border-light);
  font-size: 15px;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
  background: var(--bg-white);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

/* =========================================
   STICKY HEADER
========================================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Logo */
.logo img {
  height: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  transition: var(--transition);
  border-radius: 8px;
  display: block;
}

nav ul li a:hover {
  color: var(--brand-red);
  background: rgba(198, 40, 40, 0.08);
}

nav ul li a.active {
  color: var(--bg-white);
  background: var(--brand-red);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

/* =========================================
   GLOBAL UTILITIES
========================================= */
.section {
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.flex {
  display: flex;
  align-items: center;
}

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

.grid {
  display: grid;
  gap: 30px;
}

/* =========================================
   GLOBAL CARD STYLE
========================================= */
.card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 28px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

/* =========================================
   SCROLLBAR (Hidden but functional)
========================================= */
::-webkit-scrollbar {
  display: none;
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================
   RESPONSIVE (GLOBAL)
========================================= */

/* Hamburger Button - Hidden on Desktop */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 24px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: none;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(198, 40, 40, 0.08);
  transform: none;
  box-shadow: none;
}

@media (max-width: 992px) {
  .main-header {
    padding: 14px 24px;
  }

  nav ul {
    gap: 4px;
  }

  nav ul li a {
    padding: 8px 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 60px 16px;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 20px;
    z-index: 1000;
  }

  .logo img {
    height: 40px;
  }

  /* Hamburger Menu Toggle Display */
  .mobile-menu-toggle {
    display: block;
    z-index: 1005;
    /* Above everything */
    margin-left: 10px;
    background: transparent;
    color: var(--text-main);
  }

  /* Navigation Drawer for Mobile */
  nav.navbar {
    position: fixed;
    top: 0;
    right: 0;
    /* CHANGE THIS */
    transform: translateX(100%);
    /* HIDE using transform */
    width: min(320px, 85%);
    height: 100dvh;
    background: var(--bg-white);
    z-index: 1003;
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    padding: 80px 24px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  nav.navbar.active {
    transform: translateX(0);
    /* SHOW */
  }

  nav.navbar.active {
    right: 0;
    visibility: visible;
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 16px 20px;
    font-size: 17px;
    width: 100%;
    border-radius: 12px;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav ul li a.active {
    background: var(--brand-red);
    color: #fff;
    border-bottom: none;
  }

  /* Overlay when menu is open */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1002;
    /* Below navbar, above header content */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Standardizing responsive typography */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 36px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 15px;
  }
}

/* Fix product card wrapping if needed in common */
@media (max-width: 600px) {
  .product-card {
    width: 100% !important;
  }
}

/* =========================================
   GLOBAL FORM STYLES (Standardized)
========================================= */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 2px solid var(--brand-red);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  font-family: "Poppins", sans-serif;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  color: #333;
  font-weight: 500;
  text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
  font-size: 15px;
  background: #fff;
}

.contact-form button {
  background-color: var(--brand-red);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 25px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.contact-form button:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
}

/* =========================================
   MODERN PREMIUM FOOTER (Global)
========================================= */
.modern-footer {
  position: relative;
  background: linear-gradient(135deg,
      #c62828 0%,
      #d32f2f 30%,
      #e53935 50%,
      #d32f2f 70%,
      #a31616 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: #fff;
  padding: 50px 20px 20px;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(198, 40, 40, 0.3);
  margin-top: 60px;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
  background-position:
    40px 0,
    40px 0,
    0 0,
    0 0;
  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: 0.6;
  pointer-events: none;
}

.footer-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.modern-footer h3 {
  color: #fff;
  margin: 0;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.footer-links a.active {
  background: #fff;
  color: var(--brand-red);
}

.footer-bottom {
  position: relative;
  text-align: center;
  padding-top: 20px;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}