/* =========================================================
   Denim Crafts — static rebuild
   Recreates the crocal (WordPress/WooCommerce) theme render
   Colors/fonts pulled straight from the site's own DB config
   (denim_options.crocal_eutf_options + per-row shortcode attrs)
   ========================================================= */

:root {
  --color-primary-1: #c29e64; /* gold accent - used site-wide for numerals/labels */
  --color-primary-2: #ff3274; /* gradient start */
  --color-primary-3: #ad0e95; /* gradient end */
  --color-primary-4: #f0ffbd; /* pale lime accent */
  --color-dark: #090808;
  --color-sand: #493f3a;
  --color-sky: #ace2f0;
  --color-lime-bg: #f0ffbd;
  --color-offwhite: #fbfaf9;
  --color-peach: #ffe5bd;
  --color-body: #4a4a4a;
  --color-heading: #171a1d;
  --font-base: "Hind Siliguri", "Segoe UI", Arial, sans-serif;

  --space-1x: 40px;
  --space-2x: 80px;
  --space-3x: 120px;
  --space-4x: 160px;
  --space-5x: 200px;
  --space-6x: 240px;
  --container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
}
p { margin: 0 0 16px; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- utility: heading styles used by crocal_title ---------- */
.small-text {
  display: block;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.subtitle-text {
  display: block;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.leader-text { font-size: 21px; line-height: 1.7; font-weight: 400; }
.gradient-text {
  background: linear-gradient(90deg, var(--color-primary-2), var(--color-primary-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary-3);
}
.left-line { position: relative; padding-left: 76px; }
.left-line::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 60px; height: 2px;
  background: currentColor;
  opacity: .6;
}
h1.display { font-size: 46px; letter-spacing: -.5px; }
h2.display { font-size: 36px; letter-spacing: -.3px; }
@media (min-width: 782px) {
  h1.display { font-size: 62px; }
  h2.display { font-size: 42px; }
}

/* ---------- eyebrow badge (hero) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-2), var(--color-primary-3));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: currentColor; color: #fff; transform: translateY(-2px); }
.btn-solid {
  background: var(--color-heading);
  color: #fff;
  border-color: var(--color-heading);
}
.btn-solid:hover {
  background: var(--color-heading); color: #fff;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.45);
}
.btn-gradient {
  border: none;
  color: #fff;
  background: linear-gradient(120deg, var(--color-primary-2), var(--color-primary-3));
  box-shadow: 0 10px 24px -10px rgba(173, 14, 149, .55);
}
.btn-gradient:hover {
  background: linear-gradient(120deg, var(--color-primary-2), var(--color-primary-3));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(173, 14, 149, .6);
}
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--color-heading); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: box-shadow .25s ease;
}
#site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { flex: 0 1 auto; min-width: 0; }
.site-logo img { height: 40px; width: auto; max-width: 100%; }
.header-icons { flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active { border-color: var(--color-primary-1); color: var(--color-primary-1); }
.header-icons { display: flex; align-items: center; gap: 20px; }
.header-icons a { display: inline-flex; }
.header-icons svg { width: 20px; height: 20px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 22px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--color-heading);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-logo img { height: 28px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.08);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--space-3x) 0; }
.section--sm { padding: var(--space-1x) 0; }
.section--lg { padding: var(--space-4x) 0; }
.section--xl { padding: var(--space-5x) 0; }
.section--xxl { padding: var(--space-6x) 0; }
.section--dark { background: var(--color-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }
.section--sand { background: var(--color-sand); color: #fff; }
.section--sand h1, .section--sand h2, .section--sand h3,
.section--sand h4, .section--sand h5, .section--sand h6 { color: #fff; }
.section--sky { background: var(--color-sky); }
.section--lime { background: var(--color-lime-bg); }
.section--offwhite { background: var(--color-offwhite); }
.section--peach { background: var(--color-peach); color: var(--color-primary-2); }
.section--peach h1 { color: var(--color-primary-2); }
.text-center { text-align: center; }
.narrow { max-width: 670px; margin-left: auto; margin-right: auto; }

@media (max-width: 782px) {
  .section, .section--lg, .section--xl, .section--xxl { padding: var(--space-1x) 0; }
}

/* ---------- hero / parallax banners ---------- */
.banner {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) { .banner { background-attachment: scroll; } }
.banner::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.banner--overlay-dark::after { background: rgba(0,0,0,.5); }
.banner-caption {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.banner-video {
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}

/* ---------- full-bleed text hero (image as backdrop) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 64px; /* clears the sticky header, breathes above the buttons */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}
@media (max-width: 900px) {
  .hero { background-attachment: scroll; min-height: 90vh; min-height: 90svh; padding: 84px 0 56px; }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,8,8,.65), rgba(9,8,8,.55) 55%, rgba(9,8,8,.75));
}
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero h2 { color: #fff; }
.hero p.leader-text { color: rgba(255,255,255,.82); }
.hero .eyebrow { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .eyebrow .dot { background: linear-gradient(135deg, var(--color-primary-4), var(--color-primary-2)); }
.play-btn {
  position: relative; z-index: 2;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(2px);
}
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- icon boxes (crocal_icon_box) ---------- */
.icon-box { text-align: center; transition: transform .3s ease; }
.icon-box:hover { transform: translateY(-6px); }
.icon-box .icon-wrap {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: 50%;
  background: rgba(240, 255, 189, .08);
  border: 1px solid rgba(240, 255, 189, .25);
  color: var(--color-primary-4);
  transition: background .3s ease, border-color .3s ease;
}
.icon-box:hover .icon-wrap { background: rgba(240, 255, 189, .16); border-color: rgba(240, 255, 189, .5); }
.icon-box .icon-wrap svg { width: 100%; height: 100%; }
.icon-box h6 { font-size: 18px; letter-spacing: .5px; }

/* ---------- decorative quote ---------- */
.quote-mark {
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: var(--color-primary-3);
  opacity: .35;
  margin-bottom: -20px;
}

/* ---------- clients logo strip ---------- */
.clients-grid img { filter: grayscale(100%); opacity: .75; transition: opacity .2s ease, filter .2s ease; }
.clients-grid a:hover img,
.clients-grid img:hover { filter: grayscale(0%); opacity: 1; }
.clients-grid { align-items: center; }

/* ---------- image gallery ---------- */
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; border-radius: 2px; }

/* ---------- elevated feature image ---------- */
.img-card {
  border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.35);
  transition: transform .4s ease, box-shadow .4s ease;
}
.img-card:hover { transform: translateY(-4px); box-shadow: 0 32px 56px -24px rgba(0,0,0,.4); }

/* ---------- portfolio carousel ---------- */
.portfolio-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.portfolio-track::-webkit-scrollbar { height: 6px; }
.portfolio-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.portfolio-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  color: #fff;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%);
}
.portfolio-card .cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  font-size: 18px; font-weight: 600;
}
@media (max-width: 900px) { .portfolio-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .portfolio-card { flex-basis: 82%; } }

/* ---------- image carousel (flexible) ---------- */
.image-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.image-track img {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  height: 320px; object-fit: cover; border-radius: 2px;
}
@media (max-width: 900px) { .image-track img { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .image-track img { flex-basis: 85%; } }

/* ---------- team ---------- */
.team-card { text-align: center; }
.team-card img { border-radius: 4px; margin-bottom: 18px; aspect-ratio: 3/4; object-fit: cover; }
.team-card .role { color: var(--color-primary-1); font-size: 14px; font-weight: 600; }

/* ---------- feature list (sustainability 2x2) ---------- */
.feature-list h6 { font-size: 16px; margin-bottom: 6px; }
.feature-list p { font-size: 14px; margin-bottom: 0; }

/* ---------- contact page ---------- */
.map-embed { width: 100%; height: 480px; border: 0; display: block; filter: grayscale(15%); }
.address-card h6 { font-size: 16px; }
.contact-form { text-align: left; max-width: 640px; margin: 0 auto; }
.contact-form .field { margin-bottom: 22px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-body);
  outline: none;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-heading); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: #999; margin-top: 24px; }

/* ---------- generic empty state (shop/cart/checkout) ---------- */
.empty-state { text-align: center; padding: var(--space-4x) 0; }
.empty-state svg { width: 64px; height: 64px; color: #ccc; margin-bottom: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: #999;
}
#site-footer a { color: var(--color-primary-1); }

/* fade-in-up animation used across sections */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.is-visible { opacity: 1; transform: none; }
