/* ==========================================================================
   Johjam Printers LTD - Main Style Sheet (style.css)
   ========================================================================== */

/* --- Root Variables & Theme Colors --- */
:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --orange: #f57c00;
  --orange-dark: #e65100;
  --red: #c62828;
  --dark-bg: #0f2b1a;
  --body-bg: #fefaf5;
  --card-bg: #ffffff;
  --text-main: #1e1e2a;
  --text-muted: #4a5568;
  --border-light: #ffe0b5;
  --transition-fast: 0.25s ease-in-out;
}

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 80px 0;
}

/* --- Shared Component: Section Headings --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--green), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Header & Navigation Bar --- */
header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(95deg, var(--green), var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
  padding: 8px;
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(95deg, var(--green), var(--orange));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(95deg, var(--green-dark), var(--orange-dark));
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

.btn-secondary {
  background: linear-gradient(95deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(95deg, var(--orange-dark), var(--red));
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: #ffffff;
}

/* --- Swiper Hero Customizations --- */
.hero-swiper {
  width: 100%;
  height: 600px;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  color: #ffffff;
  max-width: 900px;
  padding: 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  margin: 0 20px;
}

.slide-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #f1f5f9;
}

.slide-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.slide-buttons .btn-primary,
.slide-buttons .btn-secondary {
  flex: 1;
  max-width: 260px;
}

/* --- Page Components: Layout Systems --- */
.corporate-intro {
  background: #ffffff;
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.corporate-intro p {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Layout Grids --- */
.bag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.bag-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.bag-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.bag-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.bag-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: var(--green);
  color: #ffffff;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin: 10px auto 0 auto;
}

/* --- Custom Banner Component --- */
.page-banner {
  background-size: cover;
  background-position: center;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-overlay {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 800px;
  margin: 0 20px;
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.banner-content p {
  font-size: 1.2rem;
  color: #e2e8f0;
}

/* --- Split Presentation Block --- */
.split-hero-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.story-text {
  flex: 1;
}

.story-image {
  flex: 1;
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

/* --- Guarantees & Contact Wrappers --- */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  background: linear-gradient(115deg, #fef3e2, #fff4e6);
  border-radius: 40px;
  padding: 4rem 2.5rem;
}

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

.guarantee-item i {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.guarantee-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card-item {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid rgba(0,0,0,0.03);
}

.contact-card-item i {
  font-size: 1.8rem;
  color: var(--orange);
  margin-top: 4px;
}

.contact-card-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

/* --- Interactive Forms Layout --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}

.form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: #fafafa;
  color: var(--text-main);
}

.form-group textarea {
  border-radius: 20px;
  resize: vertical;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.1);
}

.form-message {
  margin-top: 15px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
}

/* --- Footers Structure --- */
footer.main-footer {
  background: var(--dark-bg);
  color: #dddddd;
  padding: 5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  position: relative;
  font-weight: 700;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 35px;
  height: 3px;
  background-color: var(--orange);
}

.footer-col p, .footer-col ul {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: #dddddd;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--orange);
  padding-left: 6px;
}

.attribution-footer {
  background-color: #08180f;
  color: #888888;
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.attribution-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.attribution-footer a:hover {
  color: var(--orange);
}

/* --- Modern Responsive Media Queries --- */
@media (max-width: 1024px) {
  .bag-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .split-hero-row {
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background: #ffffff;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
    align-items: stretch;
    text-align: center;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a.btn-outline {
    display: flex;
    padding: 12px 24px !important;
  }

  .hero-swiper { height: 500px; }
  .slide-content h2 { font-size: 2.2rem; }
  .slide-content p { font-size: 1.05rem; }
  .slide-buttons { flex-direction: column; gap: 0.75rem; }
  .slide-buttons .btn-primary, .slide-buttons .btn-secondary { max-width: 100%; width: 100%; }
  
  .section-title { font-size: 2rem; }
  .bag-grid, .contact-wrapper, .form-row, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-hero-row { flex-direction: column; gap: 2rem; }
  
  .story-image img { height: 280px; }
  .form-card { padding: 2rem 1.5rem; }
  .page-banner { height: 280px; }
  .banner-content h1 { font-size: 2.2rem; }
}


/* --- Compact Slider Buttons & Pagination Adjustments --- */
.slide-buttons {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-sm {
  padding: 10px 22px !important;
  font-size: 0.9rem !important;
  max-width: 180px !important;
  flex: 1;
}

/* Customizing the Swiper pagination dots style */
.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--orange) !important;
  opacity: 1;
  width: 24px; /* Makes the active dot look like an elegant pill dashboard indicator */
  border-radius: 5px;
}

@media (max-width: 480px) {
  .slide-buttons {
    gap: 0.5rem;
  }
  .btn-sm {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
}

