/*
Theme Name: gandzel.com
Theme URI: https://gandzel.com/
Author: gandzel.com
Description: Lightweight custom WordPress theme for gandzel.com.
Version: 1.0.17
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: gandzel
*/

:root {
  --bg: #f6f5f0;
  --bg-alt: #f1f0ea;
  --ink: #1f2321;
  --muted: #60615b;
  --olive: #667044;
  --line: #d8d6cf;
  --white: #fff;
  --container: 1480px;
  --pad: clamp(24px, 4vw, 72px);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-shell { overflow: clip; }
.container { width: min(var(--container), 100%); margin: 0 auto; padding-inline: var(--pad); }

/* Header */
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(216,214,207,.25);
}
.header-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.brand-lockup { width: 250px; }
.brand-wordmark { width: 220px; height: auto; }
.brand-tagline {
  margin: 2px 0 0;
  width: 220px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 52px; padding-top: 3px; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 6px 0; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 490px; }
.hero-copy { padding: clamp(64px, 7vw, 108px) var(--pad) 64px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 {
  margin: 0;
  max-width: 650px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
}
.hero-copy p { margin: 34px 0 0; max-width: 620px; color: var(--muted); font-size: clamp(16px,1.4vw,20px); }
.button { margin-top: 36px; width: fit-content; display: inline-flex; gap: 50px; align-items: center; padding: 15px 21px; background: var(--olive); color: var(--white); font-size: 14px; }
.hero-media img { display: block; width: 100%; height: 100%; min-height: 490px; object-fit: cover; object-position: center center; }

/* Project rows */
.projects { scroll-margin-top: 40px; }
.project-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.project-row.reverse .project-copy { order: 1; }
.project-row.reverse .project-media { order: 2; }
.project-media { position: relative; overflow: hidden; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-row.sport .project-media img { object-position: 72% center; }
.project-row.digital .project-media img { object-position: center center; }
.media-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px var(--pad); background: rgba(29,29,27,.82); color: rgba(255,255,255,.88); font-size: 12px; }
.project-copy { padding: 38px clamp(46px,5.5vw,92px); display: flex; flex-direction: column; justify-content: center; }
.project-kicker { margin: 0 0 12px; color: var(--olive); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.project-logo { width: min(520px, 90%); max-height: 112px; object-fit: contain; object-position: left center; }
.project-copy p { margin: 14px 0 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; width: fit-content; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid rgba(102,112,68,.65); color: var(--olive); font-size: 14px; }

/* Values */
.values { padding: 46px var(--pad) 56px; }
.section-divider-title {
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 42px);
  text-align: center;
  color: var(--ink);
  font: 400 clamp(24px, 2vw, 32px)/1.15 var(--serif);
  letter-spacing: -.015em;
}
.section-divider-title::before,
.section-divider-title::after {
  content: "";
  display: block;
  flex: 1 1 240px;
  max-width: 440px;
  height: 1px;
  background: var(--line);
}
.section-divider-title::before { margin-left: clamp(0px, 3vw, 48px); }
.section-divider-title::after { margin-right: clamp(0px, 3vw, 48px); }
.values-title { margin-bottom: 34px; }
.explore-title { margin: 0 0 30px; padding-inline: var(--pad); }
.section-kicker { margin: 0 0 26px; color: var(--olive); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-item { padding: 0 26px 14px; min-height: 255px; }
.value-item:first-child { padding-left: 0; }
.value-item + .value-item { border-left: 1px solid var(--line); }
.value-icon { width: 190px; height: 128px; object-fit: contain; margin: 0 auto 18px; }
.value-item h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.05; }
.value-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* About */
.about { border-top: 1px solid var(--line); padding: 28px var(--pad) 44px; display: grid; grid-template-columns: 290px 1fr 170px; gap: 48px; align-items: start; }
.about h2 { margin: 0; font: 400 27px/1.15 var(--serif); }
.about p { margin: 0; max-width: 820px; color: var(--muted); font-size: 15px; }
.about .text-link { margin-top: 6px; justify-self: end; }

/* Explore */
.explore { padding-top: 24px; background: linear-gradient(180deg, rgba(239,241,233,.72), rgba(246,245,240,.35)); }
.explore-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.explore-item { padding: 4px 38px 34px; min-height: 185px; }
.explore-item + .explore-item { border-left: 1px solid var(--line); }
.explore-brand { margin: 0 0 15px; font-size: 36px; line-height: 1; }
.explore-brand.eccovibe { font-family: var(--serif); font-weight: 400; }
.explore-brand.etsy { font-family: var(--serif); color: #e26d24; }
.explore-brand.payhip { font-weight: 700; color: #394194; }
.explore-brand.whop { font-weight: 700; letter-spacing: -.03em; }
.explore-item p { margin: 0; color: var(--muted); font-size: 15px; }
.explore-item .text-link { margin-top: 23px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.social-row { display: flex; align-items: center; gap: 13px; margin-top: 12px; }
.social-row a { width: 25px; height: 25px; display: block; }
.social-row img { width: 25px; height: 25px; object-fit: contain; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 78px; padding: 16px var(--pad); display: grid; grid-template-columns: 240px minmax(250px,1fr) auto auto; gap: 36px; align-items: center; }
.footer-wordmark { width: 220px; }
.copyright { color: #8a8a84; font-size: 11px; }

.footer-social { display: flex; align-items: center; justify-content: center; gap: 14px; }
.footer-social a { width: 21px; height: 21px; display: block; }
.footer-social img { width: 21px; height: 21px; object-fit: contain; }
.footer-links { display: flex; gap: 55px; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.back-top { font-size: 20px; }

/* Mobile */
@media (max-width: 860px) {
  :root { --pad: 24px; }
  .site-header { min-height: 102px; }
  .header-inner { align-items: flex-start; padding-top: 18px; padding-bottom: 16px; }
  .brand-lockup { width: min(270px, calc(100vw - 110px)); }
  .brand-wordmark { width: 100%; }
  .brand-tagline { width: 100%; margin-top: 3px; font-size: 11px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; z-index: 20; top: 90px; right: 24px; flex-direction: column; gap: 0; min-width: 170px; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 18px; }

  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 52px var(--pad) 42px; }
  .hero-copy h1 { font-size: clamp(48px, 13vw, 62px); line-height: .98; }
  .hero-copy p { margin-top: 26px; font-size: 16px; }
  .button { margin-top: 28px; }
  .hero-media img { min-height: 0; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

  .project-row, .project-row.reverse { display: flex; flex-direction: column; min-height: 0; }
  .project-row.reverse .project-copy, .project-row.reverse .project-media { order: initial; }
  .project-row.sport .project-copy { order: 1; }
  .project-row.sport .project-media { order: 2; }
  .project-row.digital .project-copy { order: 1; }
  .project-row.digital .project-media { order: 2; }
  .project-row + .project-row { margin-top: 34px; }
  .project-copy { padding: 52px var(--pad) 28px; }
  .project-kicker { margin-bottom: 16px; }
  .project-logo { width: min(94%, 500px); max-height: none; }
  .project-copy p { font-size: 16px; line-height: 1.55; }
  .project-copy .text-link { margin-top: 24px; }
  .project-media img { width: 100%; height: auto; object-fit: contain; object-position: center; }
  .project-row.sport .project-media img,
  .project-row.digital .project-media img { object-position: center; }
  .media-caption { position: static; background: #242421; padding: 9px var(--pad); }

  .values { padding: 48px var(--pad) 24px; }
  .section-divider-title { margin-bottom: 22px; font-size: 26px; gap: 16px; }
  .section-divider-title::before,
  .section-divider-title::after { max-width: none; flex-basis: 60px; }
  .values-grid { display: block; }
  .value-item { min-height: 0; padding: 24px 0; display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; column-gap: 22px; }
  .value-item + .value-item { border-left: 0; border-top: 1px solid var(--line); }
  .value-icon { grid-row: 1 / 3; width: 140px; height: 100px; margin: 2px 0 0; }
  .value-item h3 { font-size: 21px; }
  .value-item p { font-size: 15px; }

  .about { margin-inline: var(--pad); padding: 40px 0 52px; display: block; border-top: 1px solid var(--line); }
  .about h2 { font-size: 38px; margin-bottom: 24px; }
  .about p { font-size: 16px; line-height: 1.55; }
  .about .text-link { margin-top: 25px; }

  .explore { padding-top: 34px; }
  .explore-title { margin-bottom: 24px; padding-inline: var(--pad); }
  .explore-grid { display: block; }
  .explore-item { min-height: 0; padding: 28px var(--pad) 30px; border-top: 1px solid var(--line); grid-column: auto; }
  .explore-item + .explore-item { border-left: 0; }
  .explore-item:nth-child(odd) { background: var(--bg-alt); }
  .explore-brand { font-size: 38px; }
  .social-row { gap: 16px; }
  .social-row a, .social-row img { width: 28px; height: 28px; }

  .footer-inner { display: block; padding: 28px var(--pad) 32px; }
  .footer-wordmark { width: 220px; }
  .copyright { margin: 18px 0 14px; font-size: 11px; }
  .footer-social { justify-content: flex-start; margin: 0 0 20px; gap: 16px; }
  .footer-social a, .footer-social img { width: 24px; height: 24px; }
  .footer-links { gap: 28px; flex-wrap: wrap; }
  .back-top { float: right; margin-top: -22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img, .project-media img { transition: transform .5s ease; }
  .project-row:hover .project-media img { transform: scale(1.018); }
}

/* Coastal visual separator */
.coastal-divider {
  margin: 0;
  width: 100%;
  height: clamp(120px, 11vw, 170px);
  overflow: hidden;
  background: var(--bg-alt);
}
.coastal-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

@media (max-width: 860px) {
  .coastal-divider {
    height: clamp(100px, 28vw, 140px);
    margin-top: 10px;
  }
  .coastal-divider img {
    object-position: 42% center;
  }
}


/* Privacy / analytics consent */
.cookie-consent {
  position: fixed;
  z-index: 9999;
  left: 22px;
  right: 22px;
  bottom: 22px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(31,35,33,.97);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent__title { margin: 0 0 6px; font: 400 21px/1.2 var(--serif); }
.cookie-consent__text { margin: 0; color: rgba(255,255,255,.80); font-size: 13px; line-height: 1.55; }
.cookie-consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-consent__button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.42);
  padding: 10px 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 600 12px/1 var(--sans);
}
.cookie-consent__button--primary { background: var(--olive); border-color: var(--olive); }
.cookie-consent__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cookie-settings-link { cursor: pointer; }
@media (max-width: 600px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent__button { width: 100%; }
}

/* About page */
.about-page__intro {
  padding-top: clamp(58px, 6vw, 92px);
  padding-bottom: clamp(42px, 5vw, 70px);
}
.about-page__intro h1 {
  margin: 0 0 30px;
  font: 400 clamp(46px, 5.2vw, 76px)/1 var(--serif);
  letter-spacing: -.025em;
}
.about-page__intro p {
  margin: 0 0 8px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}
.about-page__image {
  margin: 0;
  width: 100%;
  height: clamp(360px, 40vw, 620px);
  overflow: hidden;
  background: var(--bg-alt);
}
.about-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.about-page__content {
  padding-top: clamp(50px, 5vw, 76px);
  padding-bottom: clamp(70px, 7vw, 104px);
}
.about-page__section {
  padding: 38px 0 42px;
  border-top: 1px solid var(--line);
}
.about-page__section--build {
  padding-top: 0;
  border-top: 0;
}
.about-page__section h2,
.about-page__contact h2 {
  margin: 0 0 25px;
  font: 400 clamp(30px, 3vw, 42px)/1.08 var(--serif);
}
.about-page__section > p {
  margin: 0 0 12px;
  max-width: 900px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.about-build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4px;
}
.about-build-grid article {
  padding: 4px 34px 18px;
}
.about-build-grid article:first-child { padding-left: 0; }
.about-build-grid article + article { border-left: 1px solid var(--line); }
.about-build-grid h3 {
  margin: 0 0 12px;
  font: 600 19px/1.2 var(--sans);
}
.about-build-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.about-platforms {
  margin-top: 24px !important;
  font-size: 15px !important;
}
.about-principle {
  margin-top: 20px !important;
  max-width: 900px !important;
  color: var(--ink) !important;
  font: 400 clamp(23px, 2.4vw, 34px)/1.25 var(--serif) !important;
}
.about-page__contact {
  margin-top: 12px;
  padding: 28px 30px;
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}
.about-page__contact h2 { margin-bottom: 8px; font-size: 27px; }
.about-page__contact p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.about-page__contact .text-link { margin-top: 0; }

@media (max-width: 860px) {
  .about-page__intro { padding-top: 48px; padding-bottom: 38px; }
  .about-page__intro h1 { font-size: clamp(46px, 12vw, 62px); margin-bottom: 24px; }
  .about-page__image { height: auto; }
  .about-page__image img { height: auto; aspect-ratio: 16/11; object-fit: cover; object-position: 48% center; }
  .about-page__content { padding-top: 44px; padding-bottom: 64px; }
  .about-page__section { padding: 34px 0 36px; }
  .about-build-grid { display: block; }
  .about-build-grid article,
  .about-build-grid article:first-child { padding: 18px 0 22px; }
  .about-build-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .about-page__contact { display: block; padding: 26px 24px; }
  .about-page__contact .text-link { margin-top: 20px; }
}

@media (max-width: 700px) {
  .values-title { gap: 14px; font-size: 28px; }
  .values-title::before, .values-title::after { flex-basis: 36px; }
  .values-title::before { margin-left: 0; }
  .values-title::after { margin-right: 0; }
}
