/* ===========================================================
   DM Impresores — stylesheet
   =========================================================== */


@font-face {
  font-family: "Brittany Signature";
  src: url("../assets/fonts/BrittanySignature.ttf") format("truetype");
  
  font-style: normal;
  font-display: swap;
}

:root {
  --header-height: 100px;
  --navy: #171a4a;
  --navy-dark: #10122f;
  --text-body: #5b5f77;
  --bg-light: #f6f7fb;
  --white: #ffffff;
  --border: #e7e8f1;

  --grad-brand: linear-gradient(90deg, #ff5b8a 0%, #b24bf3 45%, #4d6bff 100%);
  --grad-cta: linear-gradient(90deg, #ee4d5f 0%, #9a3fe0 55%, #3f6bf0 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 18px rgba(23, 26, 74, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(23, 26, 74, 0.12);
}

* { box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  scroll-snap-type: y proximity; 
}

main { 
  scroll-snap-type: y proximity;
  padding-top: var(--header-height);
}

main > div.view {
  min-height: 100vh;
}

main > div.view > section,
main > section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-height);
}

main div.view > section:not(:first-child) {
  margin-top:10%;
}

#header-root,
#footer-root,
.site-header,
footer {
  scroll-snap-align: none;
}

.view{
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  margin: 0;
}

p { margin: 0; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  margin: 14px auto 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; }

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(23, 26, 74, 0.25);
}

.btn-primary:hover { background: #23265e; }

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--navy); }

.btn-white {
  background: var(--white);
  color: #7a3fe0;
}

.btn-white:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

/* ===================== HEADER ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 110;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 46px;
  height: 46px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .brand {
  font-family: "Brittany Signature", cursive;
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.02em;
  background: black;
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-text .sub {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #9a9dbb;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding-bottom: 6px;
}

.main-nav a.active {
  color: #7a3fe0;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}

.header-actions .btn { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* ===================== HERO ===================== */

.hero {
  background: var(--bg-light);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-copy h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p.lead {
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 46ch;
}

.hero-copy p.lead strong { color: var(--navy); font-weight: 700; }

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  margin: 34px 0 36px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 130px;
}

.hero-feature .icon-circle {
  color: #7a3fe0;
  flex-shrink: 0;
}

.hero-feature span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.hero-cta { display: flex; gap: 16px; }

.hero-image { position: relative; }

.hero-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

/* decorative animated circle behind hero image */
.hero-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60vh;
  height: 60vh;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.95);
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(23,26,74,0.06);
  animation: drawCircle 850ms cubic-bezier(.2,.8,.2,1) forwards 260ms;
}

.hero-image img { z-index: 1; position: relative; }

@keyframes drawCircle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ===================== ICON CIRCLE (shared) ===================== */

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1ecfe;
  color: #7a3fe0;
}

/* ===================== SERVICES ===================== */

.services { padding: 90px 0 100px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: var(--white);
}

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

.service-card .icon-circle {
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Horizontal snapping banners for services */
.services-snap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.service-banner {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.banner-image {
  width: 10%;
  min-width: 220px;
  height: 52vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(250,250,252,1), rgba(245,247,255,1));
}

.banner-image .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 80%;
}

.banner-content {
  width: 55%;
  padding: 6px 8px;
}

.banner-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  overflow:auto;
}

.banner-content .subtitle {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 860px) {
  .services-snap { gap: 14px; }
  .services-snap { display: block; }
  .service-banner { width: 100%; min-width: auto; display: block; flex-direction: column; padding: 20px 16px; box-sizing: border-box; }
  .banner-image { width: 100%; min-width: auto; height: 220px; }
  .banner-content { width: 100%; }
  .banner-content h3 { font-size: 1.25rem; }
}

/* ===================== INDUSTRIES ===================== */

.industries { padding: 0 0 100px; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
  border: 1px solid var(--border);
}

.industry-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.industry-body {
  padding: 24px;
}

.industry-body .icon-circle {
  width: 52px;
  height: 52px;
  margin-top: -56px;
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
}

.industry-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.industry-body p { font-size: 0.87rem; line-height: 1.55; }

/* ===================== SUBSTRATES ===================== */

.substrates {
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 0 32px;
  text-align: center;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-height);
  overflow-x: hidden;
}

.substrates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
  width: 100%;
  align-items: center;
  align-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
}

.substrate-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: left;
  width: 100%;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  background: var(--white);
  cursor: pointer;
}

.substrate-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 63, 224, 0.35);
  box-shadow: 0 8px 18px rgba(23, 26, 74, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.substrate-chip .icon-circle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.substrate-img {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(23, 26, 74, 0.15);
}

.substrate-chip:hover .substrate-img {
  opacity: 1;
  transform: scale(1);
}

.substrates-note {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ===================== WHY US ===================== */

.why-us {
  padding: 0 0 100px; 
}

.why-us .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.why-us .section-heading h2 { letter-spacing: 0.03em; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  justify-items: center;
}

.why-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.why-item .icon-circle {
  width: 52px;
  height: 52px;
}

.why-item p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
}

/* ===================== TECHNOLOGY ===================== */

.technology { padding: 0 0 60px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.tech-grid img {
  border-radius: var(--radius-md);
  height: 230px;
  width: 100%;
  object-fit: cover;
}

.tech-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}

.tech-banner .icon-circle {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ===================== CTA BANNER ===================== */

.cta-banner {
  margin: 70px auto 90px;
  max-width: 1240px;
  background: var(--grad-cta);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--navy);
  color: #b9bcd6;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text .sub { color: #8b8fb5; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 18px 0 22px;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social a:hover { background: var(--grad-brand); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 11px; font-size: 0.85rem; }
.footer-col a:hover { color: var(--white); }

.footer-col.contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-col.contact svg { flex-shrink: 0; margin-top: 2px; color: #8b8fb5; }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding: 22px 0;
  color: #8b8fb5;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .substrates-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    z-index: 120;
  }
  .main-nav.nav-open ul { flex-direction: column; gap: 0; }
  .main-nav.nav-open li { padding: 12px 32px; }
  .main-nav.nav-open a.active::after { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-image { order: -1; display: none; }
  .hero {
    overflow: visible;
    min-height: auto;
    align-items: flex-start;
    padding: 18px 0 40px;
  }
  .hero-inner { padding: 18px 12px; }
  .hero-copy h1 {
    font-size: 1.6rem;
    line-height: 1.08;
    font-weight: 700;
  }
  .hero-copy p.lead {
    max-width: 100%;
    font-size: 0.98rem;
    margin-top: 12px;
  }
  .hero-features { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 22px; }
  .hero-feature { max-width: 260px; gap: 8px; }
  .hero-feature .icon-circle { width: 36px; height: 36px; }
  .hero-feature span { font-size: 0.78rem; }
  .hero-cta { display: flex; flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 0.92rem; }

  .industries-grid, .tech-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .services-snap { display: block; }
  .service-banner { width: 100%; min-width: auto; display: block; flex-direction: column; padding: 20px 16px; box-sizing: border-box; }
  .banner-image { width: 100%; min-width: auto; height: 220px; }
  .banner-content { width: 100%; }
  .banner-content h3 { font-size: 1.25rem; }
  .substrates { height: auto; padding: 28px 16px; }
  .substrates-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .substrates-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.9rem; }
}

@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-banner { padding: 28px 20px; margin: 48px 16px 64px; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-banner { padding: 14px 12px; gap: 12px; }
  .banner-image { width: 100%; min-width: auto; height: 180px; }
  .banner-image .banner-img { height: 100%; object-fit: cover; }
  .banner-content { width: 100%; padding: 8px 0; }
  .banner-content h3 { font-size: 1.1rem; }
  .banner-content .subtitle { font-size: 0.95rem; }
}
