/* ==========================================================================
   S G M PACKAGING — design system
   Palette: raw cotton, bale twine, dyed-gold, indigo thread
   Type: Fraunces (display) / Work Sans (body) / IBM Plex Mono (spec/labels)
   ========================================================================== */

:root{
  --cotton:       #F4EFE6;
  --cotton-soft:  #ECE3D0;
  --cotton-deep:  #E4D8BE;
  --ink:          #221E19;
  --ink-soft:     #4A443C;
  --ink-faint:    #7A7266;
  --gold:         #A9762F;
  --gold-deep:    #7C5720;
  --gold-tint:    #F0DFC0;
  --indigo:       #33465C;
  --indigo-deep:  #202E3E;
  --twine:        #8A8378;
  --line:         #D9CFBC;
  --white:        #FFFDF9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1{ font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size: 1.35rem; font-weight: 600; }
h4{ font-size: 1.05rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section{ position: relative; }

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--soft{ background: var(--cotton-soft); }
.section--ink{ background: var(--ink); color: var(--cotton); }
.section--ink p{ color: #CFC6B7; }
.section--ink h2, .section--ink h3, .section--ink h4{ color: var(--cotton); }

:focus-visible{
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* -------------------------------- Buttons -------------------------------- */

.btn{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover{ background: var(--ink); color: var(--cotton); transform: translateY(-1px); }

.btn--gold{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn--gold:hover{ background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }

.btn--ghost-light{
  border-color: rgba(244,239,230,0.5);
  color: var(--cotton);
}
.btn--ghost-light:hover{ background: var(--cotton); color: var(--ink); }

.btn--sm{ padding: 0.7em 1.2em; font-size: 0.74rem; }

/* -------------------------------- Header -------------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}
.brand__mark{ width: 36px; height: 36px; flex-shrink: 0; }
.brand small{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--twine);
  font-weight: 400;
  margin-top: 2px;
}

.nav__links{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a{
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a.is-active{ color: var(--gold-deep); }
.nav__links a.is-active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold-deep);
}

.nav__cta{ display: flex; align-items: center; gap: 14px; }

.nav__toggle{
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span{ width: 18px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 900px){
  .nav__links{
    position: fixed;
    top: 69px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cotton);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav__links.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__toggle{ display: flex; }
  .nav__cta .btn span.btn-label-full{ display: none; }
}

/* Phones: the logo + phone button + quote button + hamburger no longer fit
   on one row, so trim the CTA row down to what's essential and let the
   phone number live in the mobile menu / footer / WhatsApp button instead. */
@media (max-width: 560px){
  .container{ padding: 0 18px; }
  .nav{ padding: 12px 0; }
  .brand{ font-size: 1.05rem; gap: 8px; }
  .brand small{ display: none; }
  .brand__mark{ width: 30px; height: 30px; }
  .nav__cta{ gap: 8px; }
  .nav__cta a[href^="tel:"]{ display: none; }
  .btn--sm{ padding: 0.6em 0.9em; font-size: 0.68rem; }
  h1{ font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero{ padding: 48px 0 36px; }
  .section{ padding: 56px 0; }
  .sub-brand{ padding: 30px 22px; }
  .stats-band{ gap: 14px; }
  .footer-links li, .site-footer p{ overflow-wrap: anywhere; }
}

/* -------------------------------- Hero -------------------------------- */

.hero{
  padding: 90px 0 60px;
  overflow: hidden;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.hero h1{ margin-bottom: 0.4em; }
.hero__lede{ font-size: 1.12rem; max-width: 46ch; }

.hero__stats{
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-deep);
  line-height: 1;
}
.hero__stat span{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--twine);
}

.hero__actions{ display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.hero__art{ position: relative; }
.hero__art img{
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(34,30,25,0.45);
}
@media (max-width: 900px){
  .hero__art img{ aspect-ratio: 16/9; }
}

/* -------------------------------- Weave divider -------------------------------- */

.weave{
  height: 34px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 64px 34px;
  opacity: 0.55;
}
.weave--dark{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34' viewBox='0 0 64 34'%3E%3Cg fill='none' stroke='%238A8378' stroke-width='2'%3E%3Cpath d='M0 8 C 8 0, 24 0, 32 8 S 56 16, 64 8'/%3E%3Cpath d='M0 24 C 8 16, 24 16, 32 24 S 56 32, 64 24'/%3E%3C/g%3E%3C/svg%3E");
}
.weave--gold{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34' viewBox='0 0 64 34'%3E%3Cg fill='none' stroke='%23A9762F' stroke-width='2'%3E%3Cpath d='M0 8 C 8 0, 24 0, 32 8 S 56 16, 64 8'/%3E%3Cpath d='M0 24 C 8 16, 24 16, 32 24 S 56 32, 64 24'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

/* -------------------------------- Cards / grid -------------------------------- */

.grid{
  display: grid;
  gap: 26px;
}
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid--3, .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover{
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(34,30,25,0.35);
}
.card__icon{ width: 42px; height: 42px; margin-bottom: 18px; color: var(--gold-deep); }
.card p{ font-size: 0.94rem; margin-bottom: 1.2em; }
.card a.card__link{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* Product card (with image) */
.p-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(34,30,25,0.4); }
.p-card__art{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cotton-deep), var(--cotton-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.p-card__art svg{ width: 58%; height: 58%; }
.p-card__art img{ width: 100%; height: 100%; object-fit: cover; }
.p-card__body{ padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.p-card__body p{ font-size: 0.92rem; flex: 1; }

/* Row layout used on the products index (photo beside text, not on top) */
.p-card--row{ flex-direction: row; align-items: stretch; }
.p-card--row .p-card__art{ width: 38%; aspect-ratio: auto; flex-shrink: 0; }
@media (max-width: 700px){
  .p-card--row{ flex-direction: column; }
  .p-card--row .p-card__art{ width: 100%; aspect-ratio: 4/3; }
}

/* -------------------------------- Spec tag -------------------------------- */

.spec-tag{
  background: var(--white);
  border: 1px dashed var(--twine);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.spec-tag__title{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
  display: block;
}
.spec-tag dl{ margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; }
.spec-tag dt{ color: var(--twine); }
.spec-tag dd{ margin: 0; color: var(--ink); text-align: right; }

/* -------------------------------- Product detail -------------------------------- */

.product-block{
  display: grid;
  grid-template-columns: 0.85fr 0.75fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.product-block:last-child{ border-bottom: none; }
@media (max-width: 980px){
  .product-block{ grid-template-columns: 1fr; }
}
.product-block__art{
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--cotton-deep), var(--cotton-soft));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-block__art svg{ width: 60%; height: 60%; }
.product-block__art img{ width: 100%; height: 100%; object-fit: cover; }
.product-block h3{ margin-bottom: 0.3em; }
.product-block .btn{ margin-top: 20px; }

/* -------------------------------- Stats band -------------------------------- */

.stats-band{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 0;
}
@media (max-width: 760px){ .stats-band{ grid-template-columns: repeat(2, 1fr); } }
.stats-band__item b{
  font-family: var(--font-display);
  font-size: 2.4rem;
  display: block;
  color: var(--gold);
}
.stats-band__item span{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B9AF9C;
}

/* -------------------------------- SGM band -------------------------------- */

.sub-brand{
  border: 1px solid var(--indigo);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  color: var(--cotton);
  padding: 52px;
}
.sub-brand h2, .sub-brand h3{ color: var(--cotton); }
.sub-brand p{ color: #C6D0DA; }
.sub-brand .eyebrow{ color: #9FC6D9; }
.sub-brand .eyebrow::before{ background: #9FC6D9; }

/* -------------------------------- Forms -------------------------------- */

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--twine);
}
.field input, .field select, .field textarea{
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.field--full{ grid-column: 1 / -1; }

.form-note{
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* -------------------------------- Footer -------------------------------- */

.site-footer{
  background: var(--ink);
  color: #C9C1B2;
  padding: 70px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: var(--cotton); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; }
.site-footer .brand{ color: var(--cotton); margin-bottom: 14px; }
.site-footer p{ color: #A69C89; font-size: 0.92rem; }
.footer-links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ font-size: 0.9rem; color: #C9C1B2; }
.footer-links a:hover{ color: var(--gold); }
.footer-bottom{
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #3A352C;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #85795F;
  font-family: var(--font-mono);
}
.footer-bottom a{ color: #85795F; }
.footer-bottom a:hover{ color: var(--gold); }

/* -------------------------------- WhatsApp float -------------------------------- */

.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  background: #3fae55;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.wa-float:hover{ transform: scale(1.07); }
.wa-float svg{ width: 28px; height: 28px; }

/* -------------------------------- Utility -------------------------------- */

.text-center{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }
.max-60{ max-width: 60ch; }
.mt-0{ margin-top: 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.text-center{ margin-left: auto; margin-right: auto; }
.badge-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.badge{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-soft);
  background: var(--white);
}
.breadcrumb{
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--twine);
  margin-bottom: 18px;
}
.breadcrumb a{ color: var(--gold-deep); }
.page-hero{ padding: 60px 0 40px; }
