/* =====================================================
   COMPONENTS.CSS — PRODUCTION BUILD
   Reusable UI components & behaviors
   Project: Print Tech Gravures Pvt Ltd
===================================================== */

/* =====================================================
   BUTTONS
===================================================== */
.button,
a.button,
.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  border-radius: 3px;

  border: 1px solid var(--color-brand-orange);
  background-color: var(--color-brand-orange);
  color: var(--color-white);

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
a.button:hover,
.nav-cta:hover {
  background-color: var(--color-white);
  color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  text-decoration: none;
}

/* Outline variant */
.button.button-outline {
  background-color: transparent;
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.button.button-outline:hover {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
}

/* =====================================================
   SECTION HEADINGS
===================================================== */
section h2 {
  position: relative;
  padding-bottom: 0.5rem;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--color-brand-orange);
  margin-top: 0.5rem;
}

.section-center h2 {
  text-align: center;
}

.section-center h2::after {
  margin-inline: auto;
}

/* =====================================================
   HEADER & NAVIGATION (NON-LAYOUT)
===================================================== */
.primary-nav a.active {
  color: var(--color-brand-blue);
  font-weight: var(--fw-semibold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 24px;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-black);
}

/* Hamburger → cross */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO — POSITIONING CONTEXT
===================================================== */
#hero {
  position: relative;
}

/* =====================================================
   HERO ENQUIRY FORM — FLOAT RIGHT (DESKTOP)
===================================================== */
#hero #enquiryform {
  position: absolute;
  top: calc(50% + (var(--header-height) / 2));
  right: 6vw;
  transform: translateY(-50%);
  z-index: 5;
  }

#hero #enquiryform .enquiry-card {
  width: 100%;
  max-width: 420px;
}

/* =====================================================
   HERO CAROUSEL
===================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Text overlay */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: 20rem;
  padding-left: clamp(1rem, 2.5vw, 2rem);
}

.hero-content h1 {
  color: var(--color-white);
}

.hero-content p {
  color: var(--color-surface);
}

/* Left offset (home only) */
#hero .hero-content .container {
  max-width: 720px;
  margin-left: 6vw;
  margin-right: auto;
}

/* =====================================================
   CARDS
===================================================== */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-brand-orange);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-top-color: var(--color-brand-blue);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
}

.card p {
  color: var(--color-text-secondary);
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem 1rem;
}
.gallery-item picture {
  height: auto;
}

.gallery-item img {
  width: 100%;
  height: auto;        /* CRITICAL */
  object-fit: contain; /* or remove entirely if preferred */
}
/* =====================================================
   ENQUIRY FORM — SINGLE SOURCE OF TRUTH
===================================================== */
.hero-enquiry {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  background-color: transparent;
  margin-top: 1.5rem;
}

.enquiry-card {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 3rem 3rem 2.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.enquiry-title {
  font-size: 1.6rem;
  font-weight: var(--fw-semibold);
}

.enquiry-divider {
  margin: 0.75rem 0 2.5rem;
}

.form-field {
  margin-bottom: 1.75rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  height: 52px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d0d7de;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-brand-blue);
  outline: none;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #d93025;
}

.hp-field {
  display: none !important;
}

/* WhatsApp submit */
.whatsapp-submit {
  width: 100%;
  height: 56px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background-color: #25D366;
  border-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.whatsapp-submit:hover {
  background-color: #1ebe5d;
}

.form-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* =====================================================
   CONTACT PAGE MAP
===================================================== */
.map-embed--contact {
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   FAQ
===================================================== */
#page-intro {
  padding-block: 5rem 3.5rem;
}

main section article {
  max-width: 860px;
  margin-bottom: 2.5rem;
}

main section article h3 {
  font-weight: var(--fw-semibold);
}

main section article p {
  color: var(--color-text-secondary);
}

/* =====================================================
   404 PAGE
===================================================== */
#error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

#error-404 h1 {
  font-size: 4rem;
  color: var(--color-brand-blue);
}

/* =====================================================
   CONTENT LISTS
===================================================== */
.section-one ul li::before,
.section-two ul li::before,
.section-lg ul li::before {
  content: "•";
  color: var(--color-brand-orange);
  margin-right: 0.5rem;
}

/* =====================================================
   FOOTER
===================================================== */
.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* =====================================================
   RESPONSIVE — ALL MOBILE & TABLET RULES
   (KEEP ALL MOBILE WORK BELOW THIS LINE)
===================================================== */

/* ---------- ≤1200px (NAVIGATION) ---------- */
@media (max-width: 1200px) {

  .nav-toggle {
    display: flex;
  }

  .primary-nav .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .primary-nav .nav-menu.is-open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--color-white);
    overflow-y: auto;
    z-index: 999;
    align-items: flex-start;
  }

  .primary-nav .nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .primary-nav .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.25rem 1.25rem;
    text-align: left;
    line-height: 1;
  }

  .primary-nav .nav-menu.is-open li::after {
    display: none;
  }
}

@media (max-width: 1024px) {

  /* HERO */
  .hero-carousel {
    aspect-ratio: 4 / 5;
    min-height: auto;
  }

  .hero-content {
    position: absolute;
    inset: 0;
    padding-top: 6.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    z-index: 2;
  }

  /* ENQUIRY — SEPARATE SECTION */
  .hero-enquiry-wrapper {
    position: static;
    transform: none;
    background: #fff;
    padding: 3.5rem 1rem 4rem;
  }

  .hero-enquiry {
    margin-top: 0;
    padding: 0;
  }
}

/* =====================================================
   MOBILE UX FIX — HERO / CAROUSEL / ENQUIRY
   (≤768px ONLY — DESKTOP SAFE)
===================================================== */
@media (max-width: 768px) {

  .hero-carousel {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 420px;
    overflow: hidden;
    background: #000;
  }

  .hero-slides,
  .hero-slide {
    position: absolute;
    inset: 0;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Overlay stays */
  .hero-carousel::after {
    display: block;
  }

  /* ---------------------------
     HERO CONTENT — ON IMAGE
  ---------------------------- */
  .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
  }

  .hero-content h1 {
    color: var(--color-white);
  }

  .hero-content p {
    color: var(--color-surface);
  }

  /* Prevent desktop offset */
  #hero .hero-content .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem; 
  }

  /* ---------------------------
     ENQUIRY FORM — BELOW HERO
  ---------------------------- */
  .hero-enquiry-wrapper {
    position: static;
    transform: none;
    padding: 2.5rem 1rem 2.5rem;
    background: #ffffff;
  }

  .hero-enquiry {
    margin: 0;
    padding: 0;
  }

  /* ---------------------------
     REMOVE EXTRA GAPS AFTER FORM
  ---------------------------- */
  section h2 {
    margin-top: 0rem;
  }
}


.hero-content {
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .hero-carousel {
    height: auto;
    min-height: calc(100vh - var(--header-height));
  }
  .hero-enquiry-wrapper {
    position: absolute;
    top: calc(50% + (var(--header-height) / 2));
    right: 6vw;
    transform: translateY(-50%);
    z-index: 5;
  }
}

/* =====================================================
   MOBILE ONLY — FIX HERO CONTENT EMPTY SPACE
===================================================== */
@media (max-width: 768px) {

  #hero .hero-content {
    display: flex;
    align-items: center;   /* ← THIS IS THE KEY FIX */
  }

  #hero .hero-content .container {
    padding-top: 0;        /* remove fake vertical offset */
    margin-top: -2rem;     /* optional fine-tune */
  }
}

/* =====================================================
   MOBILE ONLY — FORCE <picture> TO FILL HERO
===================================================== */
@media (max-width: 768px) {

  #hero .hero-slide picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  #hero .hero-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
