/*
Theme Name: Indie Site
Theme URI: https://example.com/
Author: Codex
Description: A packaging-focused WordPress theme for custom boxes and independent brands.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: indie-site
*/

:root {
  --ink: #17316f;
  --navy: #14285f;
  --text: #25335b;
  --muted: #647094;
  --mint: #d8f0e4;
  --mint-strong: #bee7d2;
  --cream: #fff7df;
  --coral: #ff7c6e;
  --yellow: #ffd84d;
  --blue: #2446a8;
  --line: #d8deef;
  --paper: #ffffff;
  --soft: #f6f8ff;
  --shadow: 0 22px 50px rgba(20, 40, 95, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Elementor may wrap editable page content in a boxed container. */
body.elementor-page main#content,
body.elementor-page main#content > .elementor,
body.elementor-page main#content .e-con.e-parent,
body.elementor-page main#content .e-con-inner,
body.elementor-page main#content .elementor-element,
body.elementor-page main#content .elementor-widget-container {
  width: 100%;
  max-width: none;
}

body.elementor-page main#content .e-con.e-con-boxed > .e-con-inner {
  max-width: none;
  padding: 0;
}

body.elementor-page main#content .elementor-widget-text-editor {
  color: inherit;
  font: inherit;
}

body.elementor-page main#content .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--wp--preset--font-family--system-font, Inter, system-ui, sans-serif);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 49, 111, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 520px) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 28px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  transform: skewY(-8deg);
}

.brand__mark::before {
  position: absolute;
  top: -10px;
  left: 7px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: var(--mint);
  content: "";
}

.header-search {
  position: relative;
}

.header-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 48px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faff;
  color: var(--text);
  font: inherit;
  outline: 0;
}

.header-search span {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--ink);
  font-size: 21px;
  transform: translateY(-50%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--coral);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(36, 70, 168, 0.22);
}

.button--secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.hero {
  overflow: hidden;
  padding: 34px 0 56px;
  background: linear-gradient(180deg, var(--mint) 0%, #eaf7ef 54%, #fff 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: 44px;
}

.hero__visual {
  min-height: 530px;
  border-radius: 8px;
  background: url("assets/hero.svg") center / contain no-repeat;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: #24345f;
  font-size: 20px;
}

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

.trust {
  padding-top: 28px;
}

.trust__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.logo-strip span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(23, 49, 111, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.band {
  padding: 78px 0;
  background: #fff;
}

.band--soft {
  background: var(--soft);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section__head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section__head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 49, 111, 0.07);
}

.product-card__art {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  background: var(--cream);
}

/* Draw the product art without empty HTML nodes, which page builders may remove. */
.product-card__art::before {
  width: 142px;
  height: 120px;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: #2c4fc5;
  box-shadow: 18px 18px 0 rgba(23, 49, 111, 0.1);
  content: "";
}

.product-card:nth-child(2) .product-card__art::before {
  background: #fff;
  box-shadow:
    inset 0 0 0 28px var(--mint-strong),
    18px 18px 0 rgba(23, 49, 111, 0.1);
}

.product-card:nth-child(3) .product-card__art::before {
  background: #f3b2a6;
}

.product-card:nth-child(4) .product-card__art::before {
  background: #f8f3df;
}

.product-card:nth-child(2) .product-card__art {
  background: #e8ecff;
}

.product-card:nth-child(3) .product-card__art {
  background: #ffe8df;
}

.product-card:nth-child(4) .product-card__art {
  background: #ddf4e9;
}

.box-art {
  position: relative;
  width: 142px;
  height: 120px;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 18px 18px 0 rgba(23, 49, 111, 0.1);
}

.product-card__art:has(.box-art)::before {
  display: none;
}

.box-art::before {
  position: absolute;
  top: -54px;
  left: 18px;
  width: 96px;
  height: 48px;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--coral);
  content: "";
  transform: skewX(-10deg);
}

.box-art::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 16px;
  border-radius: 999px;
  background: var(--yellow);
  content: "";
}

.box-art--mailer {
  background: #2c4fc5;
}

.box-art--product::before {
  background: var(--mint-strong);
}

.box-art--shipper {
  background: #f3b2a6;
}

.box-art--eco {
  background: #f8f3df;
}

.product-card__body {
  padding: 24px;
}

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
}

.product-card p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.how {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.how__panel {
  position: sticky;
  top: 104px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-weight: 950;
}

.feature:nth-child(2) .feature__icon {
  background: var(--yellow);
}

.feature:nth-child(3) .feature__icon {
  background: #ffd9d2;
}

.feature h3,
.feature p {
  margin: 0;
}

.feature h3 {
  color: var(--ink);
  font-size: 21px;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.story__media {
  position: relative;
  min-height: 410px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 40, 95, 0.14), rgba(255, 124, 110, 0.14)),
    #fff7df;
  box-shadow: var(--shadow);
}

.story__media::before,
.story__media::after {
  position: absolute;
  border: 4px solid var(--ink);
  border-radius: 12px;
  content: "";
}

.story__media::before {
  top: 78px;
  left: 74px;
  width: 190px;
  height: 148px;
  background: var(--mint);
  transform: rotate(-8deg);
}

.story__media::after {
  right: 70px;
  bottom: 76px;
  width: 210px;
  height: 164px;
  background: #fff;
  box-shadow: inset 0 0 0 28px #2c4fc5;
  transform: rotate(8deg);
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.gallery-card__image {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(23, 49, 111, 0.08), rgba(255, 216, 77, 0.18)),
    var(--mint);
}

.gallery-card:nth-child(2) .gallery-card__image {
  background:
    linear-gradient(135deg, rgba(255, 124, 110, 0.25), rgba(255, 247, 223, 0.6)),
    #e8ecff;
}

.gallery-card:nth-child(3) .gallery-card__image {
  background:
    linear-gradient(135deg, rgba(36, 70, 168, 0.18), rgba(216, 240, 228, 0.8)),
    #fff7df;
}

.gallery-card h3 {
  margin: 0;
  padding: 20px 20px 8px;
  color: var(--ink);
  font-size: 22px;
}

.gallery-card span {
  display: block;
  padding: 0 20px 22px;
  color: var(--blue);
  font-weight: 850;
}

.cta {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
}

.cta p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta .button {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: none;
}

.page-hero {
  padding: 74px 0 56px;
  background: linear-gradient(180deg, var(--mint) 0%, #fff 100%);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  gap: 46px;
  align-items: center;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1;
}

.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #24345f;
  font-size: 19px;
}

.support-card {
  padding: 28px;
  border: 1px solid rgba(23, 49, 111, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.support-card h2,
.support-card p {
  margin: 0;
}

.support-card h2 {
  color: var(--ink);
  font-size: 24px;
}

.support-card p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.form-panel,
.aside-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 49, 111, 0.07);
}

.form-panel {
  padding: 30px;
}

.aside-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.form-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section h2,
.aside-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.choice-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
  color: var(--text);
  font: inherit;
  outline: 0;
}

.field textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 70, 168, 0.12);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

.choice input:checked + span {
  border-color: var(--blue);
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.file-drop {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 20px;
  border: 2px dashed #bfc8e3;
  border-radius: 8px;
  background: #f9fbff;
  color: var(--muted);
  text-align: center;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
}

.form-note,
.aside-list {
  color: var(--muted);
  font-size: 14px;
}

.aside-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-list strong {
  display: block;
  color: var(--ink);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.editorial-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
}

.editorial-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.about-visual {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.28), rgba(216, 240, 228, 0.8)),
    #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.about-visual::before,
.about-visual::after {
  position: absolute;
  border: 5px solid var(--ink);
  border-radius: 14px;
  content: "";
}

.about-visual::before {
  width: 220px;
  height: 170px;
  left: 70px;
  top: 98px;
  background: #fff;
  box-shadow: inset 0 0 0 34px var(--blue);
  transform: rotate(-9deg);
}

.about-visual::after {
  width: 190px;
  height: 146px;
  right: 62px;
  bottom: 82px;
  background: var(--coral);
  transform: rotate(10deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stat {
  min-height: 138px;
  padding: 24px;
  background: #fff;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.values-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 49, 111, 0.07);
}

.value-card {
  padding: 26px;
}

.value-card span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-weight: 950;
}

.value-card h3,
.post-card h2 {
  margin: 22px 0 10px;
  color: var(--ink);
}

.value-card p,
.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-card {
  overflow: hidden;
  text-decoration: none;
}

.post-card__media {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(23, 49, 111, 0.08), rgba(255, 216, 77, 0.25)),
    var(--mint);
}

.post-card__media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-card:nth-child(2) .post-card__media {
  background:
    linear-gradient(135deg, rgba(255, 124, 110, 0.24), rgba(232, 236, 255, 0.9)),
    #fff;
}

.post-card:nth-child(3) .post-card__media {
  background:
    linear-gradient(135deg, rgba(36, 70, 168, 0.2), rgba(255, 247, 223, 0.95)),
    #fff;
}

.post-card__body {
  padding: 24px;
}

.post-meta {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.article-row h3 {
  margin: 0;
  color: var(--ink);
}

.article-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 36px 0;
  color: var(--muted);
  background: #fff;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 14px;
  }

  .hero__grid,
  .how,
  .story,
  .page-hero__inner,
  .contact-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip,
  .gallery,
  .values-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how__panel {
    position: static;
  }

  .aside-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__visual {
    min-height: 360px;
  }

  .product-grid,
  .logo-strip,
  .gallery,
  .values-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section__head,
  .cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 22px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-row {
    grid-template-columns: 1fr;
  }
}
