/* =====================================================
   LAYOUT.CSS — PRODUCTION READY
   Global layout rules: containers, structure, sections,
   header / footer
   Project: Print Tech Gravures Pvt Ltd
===================================================== */

/* =====================================================
   PAGE CONTAINER
===================================================== */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* =====================================================
   BASE SECTION SPACING
===================================================== */
section {
  padding-block: 3rem;
}

/* First section adjustment */
#page-intro {
  padding-top: 0;
}

/* =====================================================
   SECTION BACKGROUND VARIANTS
===================================================== */
.section-white {
  background-color: var(--color-white);
}

.section-muted {
  background-color: var(--color-bg-section);
}

.section-dark {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-white);
}

/* =====================================================
   SECTION SIZE MODIFIERS
===================================================== */
.section-sm {
  padding-block: 1.5rem;
}

.section-lg {
  padding-block: 8rem;
}

/* =====================================================
   SECTION TYPE 1: HERO
===================================================== */
.section-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 0;
}

/* =====================================================
   SECTION TYPE 2: ONE COLUMN
===================================================== */
.section-one.section-center .container {
  text-align: center;
}

.section-one.section-center p {
  margin-inline: auto;
}

/* =====================================================
   SECTION TYPE 3: TWO COLUMN (Text + Media)
===================================================== */

/* Neutralize inherited spacing */
.section-two {
  padding: 0;
  min-height: 60vh;
  display: flex;
}

/* Prevent section-lg from breaking full-bleed layouts */
.section-two.section-lg {
  padding: 0;
}

/* Grid wrapper */
.section-two .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: stretch;
}

/* ---------- TEXT COLUMN ---------- */
.section-two .col-text {
  display: flex;
  align-items: center;
}

.section-two .col-text .container {
  max-width: 520px;
  padding-block: 4rem;
}

/* ---------- MEDIA COLUMN ---------- */
.section-two .col-media {
  display: flex;
  flex-direction: column;
}

.section-two .col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- REVERSED LAYOUT ---------- */
.section-two.reverse .two-col {
  direction: rtl;
}

.section-two.reverse .two-col > * {
  direction: ltr;
}

/* =====================================================
   PAGE INTRO OVERRIDES
===================================================== */
#page-intro.section-two {
  min-height: auto;
}

#page-intro.section-two .col-text {
  align-items: flex-start;
}

#page-intro.section-two .col-text .container {
  padding-block: 2rem;
}

/* =====================================================
   HEADER — STRUCTURE ONLY
===================================================== */
.header-top {
  background-color: var(--color-bg-section);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.header-top-inner {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- LOGO ---------- */
.site-logo img {
  height: 48px;
}

.site-logo .logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-family: "Greyhound", serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.6vw, 1.85rem);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- DESKTOP NAVIGATION ---------- */
.primary-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav .nav-menu li {
  position: relative;
}

.primary-nav .nav-menu li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: var(--color-border);
}

.primary-nav .nav-menu a {
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background-color: var(--color-bg-section);
  font-size: 0.95rem;
}

.footer-main .footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-block: 3rem 2rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  text-align: center;
}

/* =====================================================
   GENERIC GRIDS
===================================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

/* =====================================================
   UTILITIES
===================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* =====================================================
   CTA CARD — FULL WIDTH
===================================================== */
.cta-card {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-brand-blue);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cta-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-brand-blue);
  opacity: 0.85;
  z-index: 2;
}

.cta-card .cta-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  max-width: 720px;
}

.cta-card h2,
.cta-card p {
  color: var(--color-white);
}

.cta-card p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-card .hero-cta {
  margin-top: 1.5rem;
}

.cta-card.cta-lg { min-height: 460px; }
.cta-card.cta-sm { min-height: 300px; }

/* =====================================================
   MAP SUPPORT
===================================================== */
.map-embed {
  width: 100%;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
}

.section-two .col-media .map-embed {
  flex: 1;
}

.section-two .col-media .map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   HARD OVERRIDES
===================================================== */
section.section-two,
section.section-two.section-lg {
  padding: 0 !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* =====================================================
   RESPONSIVE — ALL MOBILE & TABLET RULES
   (KEEP ALL MOBILE WORK BELOW THIS LINE)
===================================================== */

/* ---------- ≤1024px ---------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- ≤768px (TABLET & MOBILE) ---------- */
@media (max-width: 768px) {

  /* Section Two */
  .section-two {
    min-height: auto;
  }

  .section-two .two-col {
    grid-template-columns: 1fr;
  }

  .section-two .col-text .container {
    padding-block: 2.5rem;
  }

  .section-two .col-media img {
    height: auto;
  }

  /* CTA */
  .cta-card {
    min-height: auto;
    padding-block: 4rem;
  }

  .cta-card .cta-content {
    max-width: 100%;
  }
}

/* ---------- ≤640px (SMALL MOBILE) ---------- */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.section-two .col-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.section-two .col-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}