/* ============================================================
   BREWWW — Colors & Type
   Source: "Homepage with services overview" (Claude Design)
   Dark-first: carbon background, linen text, chartreuse accent.
   ============================================================ */

/* ---------- FONT FACES ---------- */
/* Weight map: 300 light / 400 regular / 500 medium / 600 book / 700 bold / 800 ultra / 900 black */

@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-light.woff2") format("woff2");   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-medium.woff2") format("woff2");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-book.woff2") format("woff2");    font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-bold.woff2") format("woff2");    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-ultra.woff2") format("woff2");   font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Geomanist"; src: url("../fonts/geomanist-black.woff2") format("woff2");   font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Brewww Ultra";     src: url("../fonts/GT-Ultra-Standard-Ultra.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- TOKENS ---------- */
:root {
  --brewww-carbon:     #0F1C12;
  --brewww-linen:      #F3F0E8;
  --brewww-chartreuse: #CFFF5E;

  --brewww-carbon-2:   #15281A;
  --brewww-carbon-70:  rgba(15, 28, 18, 0.70);

  --brewww-linen-70:   rgba(243, 240, 232, 0.70);
  --brewww-linen-55:   rgba(243, 240, 232, 0.55);
  --brewww-linen-35:   rgba(243, 240, 232, 0.35);
  --brewww-linen-15:   rgba(243, 240, 232, 0.15);
  --brewww-linen-08:   rgba(243, 240, 232, 0.08);

  --font-sans:    "Brewww Geomanist", "Geomanist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Brewww Ultra", "GT Ultra", "Brewww Geomanist", system-ui, sans-serif;

  --content-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--brewww-chartreuse); text-decoration: none; }
a:hover { opacity: 0.85; }

.section { max-width: var(--content-max); margin: 0 auto; padding: clamp(56px,8vw,100px) clamp(16px,4vw,20px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 28, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brewww-linen-08);
}
.header-inner {
  max-width: var(--content-max); margin: 0 auto;
  padding: clamp(12px,2.5vw,16px) clamp(16px,4vw,20px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { display: block; height: clamp(21px,3.4vw,26px); width: auto; }
.nav { display: flex; gap: clamp(16px,2.6vw,28px); align-items: center; }
.nav a:not(.btn-primary) { font-weight: 500; font-size: 16px; color: var(--brewww-linen); }
.nav a:not(.btn-primary):hover { color: var(--brewww-chartreuse); opacity: 1; }
.nav .btn-primary { padding: 13px 20px; }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; flex-shrink: 0;
  background: none; border: 2px solid var(--brewww-linen); border-radius: 8px;
  cursor: pointer; transition: border-color 300ms ease-in-out;
}
.menu-toggle:hover { border-color: var(--brewww-chartreuse); }
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--brewww-linen); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px clamp(16px,4vw,20px) 24px;
  border-top: 1px solid var(--brewww-linen-15);
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn-primary) {
  padding: 18px 0; font-weight: 500; font-size: 19px; color: var(--brewww-linen);
  border-bottom: 1px solid var(--brewww-linen-08);
}
.mobile-nav .btn-primary {
  margin-top: 22px; justify-content: center; padding: 17px 22px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 16px var(--font-sans);
  color: var(--brewww-carbon);
  background: var(--brewww-chartreuse);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px 26px;
  cursor: pointer; text-decoration: none;
  transition: all 300ms ease-in-out;
}
.btn-primary:hover { background: transparent; color: var(--brewww-chartreuse); border-color: var(--brewww-chartreuse); opacity: 1; }

.btn-outline-carbon {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 16px var(--font-sans);
  color: var(--brewww-carbon);
  background: transparent;
  border: 2px solid var(--brewww-carbon);
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer; text-decoration: none;
  transition: all 300ms ease-in-out;
}
.btn-outline-carbon:hover { background: var(--brewww-carbon); color: var(--brewww-chartreuse); opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(44px,7vw,84px); padding-bottom: clamp(56px,8vw,100px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr));
  gap: clamp(32px,5vw,56px); align-items: center;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brewww-chartreuse); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px,4.6vw,56px); line-height: 1.06; margin: 0;
  color: var(--brewww-linen); text-wrap: balance;
}
.hero-list {
  list-style: none; margin: clamp(26px,4vw,32px) 0 0; padding: clamp(20px,3vw,26px) 0 0;
  display: flex; flex-direction: column; gap: 13px;
  border-top: 2px solid var(--brewww-linen);
}
.hero-list li {
  display: flex; gap: 12px; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--brewww-linen);
}
.hero-list li span { color: var(--brewww-chartreuse); flex-shrink: 0; }
.hero .btn-primary { margin-top: 36px; }
.hero-img { width: 100%; height: clamp(230px,42vw,540px); object-fit: cover; border-radius: 18px; display: block; }

/* ---------- Services ---------- */
.services-head { margin-bottom: clamp(40px,6vw,64px); text-align: center; }
.services-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(33px,6vw,72px); line-height: 1.04; margin: 0; color: var(--brewww-linen);
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px,100%),1fr)); gap: 24px; }

.service-card {
  border: 6px solid var(--brewww-linen); border-radius: 18px;
  padding: clamp(30px,4vw,38px) clamp(18px,3.4vw,24px) clamp(20px,3vw,24px);
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.service-card-head { display: flex; flex-direction: column; gap: 10px; }
.service-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3.4vw,32px);
  line-height: 1.1; margin: 0; color: var(--brewww-linen);
}
.service-card p { font-size: 18px; line-height: 1.5; color: var(--brewww-linen-70); margin: 0; }
.service-list {
  list-style: none; margin: 6px 0 22px; padding: 18px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.service-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--brewww-linen);
}
.service-list li span { color: var(--brewww-chartreuse); flex-shrink: 0; line-height: 1.4; }
.service-cta {
  margin-top: auto; display: inline-flex; gap: 8px; align-items: center;
  font-weight: 700; font-size: 17px; color: var(--brewww-chartreuse);
}

.cta-card {
  background: var(--brewww-chartreuse); border: 6px solid var(--brewww-chartreuse); border-radius: 18px;
  padding: clamp(30px,4vw,38px) clamp(20px,3.4vw,28px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px,4vw,50px);
}
.cta-card p {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(25px,2.6vw,34px);
  line-height: 1.12; margin: 0; color: var(--brewww-carbon);
}

/* ---------- How it works ---------- */
.how-head { max-width: 720px; margin-bottom: clamp(40px,6vw,64px); }
.how-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,3.6vw,44px);
  line-height: 1.1; margin: 0; color: var(--brewww-linen);
}
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(240px, (900px - 100vw) * 1000)),1fr));
  gap: clamp(32px,4vw,48px);
}
.how-item { position: relative; padding-top: 34px; }
.how-num {
  position: absolute; top: -14px; left: -6px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(58px,9vw,76px);
  line-height: 1; color: rgba(243,240,232,0.05); pointer-events: none; user-select: none;
}
.how-item-inner { position: relative; }
.how-item h3 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(25px,3.2vw,30px);
  line-height: 1.1; margin: 0 0 14px; color: var(--brewww-linen);
}
.how-item p { font-size: 17px; line-height: 1.6; color: var(--brewww-linen-70); margin: 0; max-width: 34ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: clamp(40px,5vw,64px); align-items: start; }
.contact-heading {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,3.2vw,40px);
  line-height: 1.12; margin: 0; color: var(--brewww-linen); max-width: 22ch;
}
.contact-email-block { margin-top: 36px; padding-top: 26px; border-top: 2px solid var(--brewww-linen); }
.contact-email-label { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brewww-linen-55); margin-bottom: 10px; }
.contact-email-link { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px,2.2vw,28px); color: var(--brewww-chartreuse); word-break: break-word; }

.contact-sent {
  background: var(--brewww-chartreuse); border-radius: 18px;
  padding: clamp(34px,4vw,46px) clamp(26px,3.4vw,34px);
}
.contact-sent h3 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(25px,3.2vw,30px);
  line-height: 1.1; margin: 0 0 14px; color: var(--brewww-carbon);
}
.contact-sent p { font-size: 17px; line-height: 1.6; color: var(--brewww-carbon-70); margin: 0; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 500; color: var(--brewww-linen); margin-bottom: 8px; }
.inp, textarea.inp, select.inp {
  width: 100%; font-family: var(--font-sans); font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--brewww-linen-35); background: var(--brewww-linen-08); border-radius: 8px;
  color: var(--brewww-linen); outline: none; transition: border-color 300ms ease-in-out;
}
.inp:focus { border-color: var(--brewww-chartreuse); box-shadow: 0 0 0 2px rgba(207,255,94,0.25); }
textarea.inp { min-height: 130px; resize: vertical; }
.select-wrap { position: relative; }
select.inp { padding-right: 44px; appearance: none; cursor: pointer; }
select.inp option { background: var(--brewww-carbon-2); color: var(--brewww-linen); }
.select-wrap svg { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--brewww-chartreuse); }
.form button[type="submit"] {
  grid-column: 1 / -1; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 900; font-size: 16px; line-height: 1;
  color: var(--brewww-carbon); background: var(--brewww-chartreuse); border: 2px solid transparent; border-radius: 8px;
  padding: 16px 26px; cursor: pointer; transition: all 300ms ease-in-out;
}
.form button[type="submit"]:hover { background: transparent; color: var(--brewww-chartreuse); border-color: var(--brewww-chartreuse); }
.form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error {
  grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 500;
  color: #FF8A73;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--brewww-linen-15); }
.footer-inner {
  max-width: var(--content-max); margin: 0 auto; padding: clamp(32px,5vw,44px) clamp(16px,4vw,20px);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px,3vw,28px); flex-wrap: wrap;
}
.footer-inner img { height: 22px; width: auto; display: block; }
.footer-links { display: flex; gap: clamp(14px,2.2vw,26px); flex-wrap: wrap; align-items: center; }
.footer-links a { font-weight: 500; font-size: 14px; color: var(--brewww-linen); }
.footer-links a:hover { color: var(--brewww-chartreuse); opacity: 1; }
.footer-meta { font-size: 14px; color: var(--brewww-linen-55); }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; }

/* Content injected by the Usercentrics policy generator */
.uc-privacy-policy { color: var(--brewww-linen); font-size: 17px; line-height: 1.7; }

/* The generator ships its own classes (.privacy-text etc.) carrying hard-coded
   light-theme colours. Those sit directly on the elements, and a direct
   declaration always beats an inherited one, so the container colour above
   never reaches them. [class] keeps us above any single injected class. */
.uc-privacy-policy [class] { color: var(--brewww-linen); }
.uc-privacy-policy a, .uc-privacy-policy a[class] { color: var(--brewww-chartreuse); }
.uc-privacy-policy .privacy-text { font-size: 17px; line-height: 1.7; }
.uc-privacy-policy h1, .uc-privacy-policy h2,
.uc-privacy-policy h3, .uc-privacy-policy h4 {
  font-family: var(--font-display); font-weight: 800; color: var(--brewww-linen);
  line-height: 1.15; margin: 2em 0 0.6em;
}
.uc-privacy-policy > :first-child { margin-top: 0; }
.uc-privacy-policy h1 { font-size: clamp(28px,3.2vw,36px); }
.uc-privacy-policy h2 { font-size: clamp(24px,2.6vw,30px); }
.uc-privacy-policy h3 { font-size: 21px; }
.uc-privacy-policy h4 { font-size: 18px; }
.uc-privacy-policy p { margin: 0 0 1em; }
.uc-privacy-policy ul, .uc-privacy-policy ol { padding-left: 1.3em; margin: 0 0 1em; }
.uc-privacy-policy li { margin: 0 0 0.5em; }
.uc-privacy-policy a { color: var(--brewww-chartreuse); word-break: break-word; }
.uc-privacy-policy table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px;
}
.uc-privacy-policy th, .uc-privacy-policy td {
  border: 1px solid var(--brewww-linen-15); padding: 10px 12px;
  text-align: left; vertical-align: top;
}
.uc-privacy-policy th { color: var(--brewww-linen); font-weight: 600; }

/* ---------- 404 ---------- */
/* Scoped to the error page so the short content still pins the footer
   to the bottom of the viewport instead of leaving a gap below it. */
.page-error { display: flex; flex-direction: column; min-height: 100vh; }
.page-error main { flex: 1; display: flex; align-items: center; }
.error-section { width: 100%; text-align: center; }
.error-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px,4.6vw,56px); line-height: 1.06;
  margin: 0 0 20px; color: var(--brewww-linen); text-wrap: balance;
}
.error-lead {
  font-size: 18px; line-height: 1.6; color: var(--brewww-linen-70);
  max-width: 46ch; margin: 0 auto clamp(32px,4vw,40px);
}

/* ---------- Responsive ---------- */
@media (max-width: 859px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 860px) {
  .mobile-nav { display: none !important; }
}
