/* Brewline marketing site. One stylesheet, no framework. Brand colors from tenants/brewline. */
:root {
  --primary: #a65e22;
  --primary-dark: #8a4c19;
  --secondary: #1e4a47;
  --secondary-dark: #163836;
  --bg: #fbf6eb;
  --surface: #ffffff;
  --text: #3c190b;
  --muted: #6b5245;
  --border: #e6d9c6;
  --cream-2: #f4ead8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 25, 11, 0.06), 0 8px 24px rgba(60, 25, 11, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-underline-offset: 0.18em; }
a:hover { color: var(--secondary-dark); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: #f3c99f; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--secondary); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-desktop li { margin: 0; }
.nav-desktop a { display: inline-block; padding: 10px 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem; border-radius: 8px; }
.nav-desktop a:hover { background: var(--cream-2); color: var(--text); }
.nav-desktop a[aria-current="page"] { color: var(--primary-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.site-header .header-cta { min-height: 44px; padding: 10px 16px; }
@media (max-width: 439px) { .site-header .header-cta { display: none; } }
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-weight: 700; background: var(--surface); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 18px; height: 12px; background: linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--text), var(--text)) 0 50% / 100% 2px no-repeat, linear-gradient(var(--text), var(--text)) 0 100% / 100% 2px no-repeat; }
.menu[open] summary { background: var(--cream-2); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 16px 20px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { margin: 0; border-bottom: 1px solid var(--border); }
.menu-panel a { display: block; padding: 14px 4px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-panel .btn { margin-top: 16px; width: 100%; }
.menu-panel a.btn-primary { color: #fff; padding: 12px 22px; }
@media (min-width: 1000px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--secondary-dark); }
.btn-light:hover { background: #fff; color: var(--secondary-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--secondary-dark); }
.btn-store { background: var(--text); color: #fff; border-radius: 12px; min-width: 210px; flex-direction: column; gap: 0; padding: 10px 20px; }
.btn-store:hover { background: #22100a; color: #fff; }
.btn-store small { font-weight: 500; font-size: 0.78rem; opacity: 0.92; }
.btn-store span { font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--secondary); color: #f7efe1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 10px; }
.section-dark .eyebrow { color: #f3c99f; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.section-dark .lead { color: #efe4d2; }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 24px; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin-top: 16px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* Phone frame around real app screenshots */
.phone { margin: 0 auto; width: min(300px, 74vw); background: #2a1810; border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px rgba(60, 25, 11, 0.22), 0 4px 12px rgba(60, 25, 11, 0.12); }
.phone img { border-radius: 36px; width: 100%; height: auto; background: var(--bg); }
.phone-sm { width: min(240px, 70vw); border-radius: 38px; padding: 9px; }
.phone-sm img { border-radius: 30px; }
.shots { display: grid; gap: 32px; grid-template-columns: 1fr; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; margin-top: 14px; font-weight: 600; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(4, 1fr); } }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-white .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.section-dark .card { background: var(--secondary-dark); border-color: #2d5c58; color: #f7efe1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-flip > :first-child { order: 2; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg); }
.section-dark .checks li::before { border-color: #f3c99f; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--cream-2); font-family: var(--serif); font-size: 1.1rem; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.section-white .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 1.07rem; position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--primary-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Breadcrumbs */
.crumbs { font-size: 0.92rem; color: var(--muted); padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
.contact-line { margin-top: 18px; font-size: 1rem; }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.page-hero { padding: 24px 0 40px; }
@media (min-width: 900px) { .page-hero { padding: 32px 0 56px; } }

/* Contact form */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form input, .form select { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--surface); border: 2px solid #85705b; border-radius: 10px; }
.form input:focus-visible, .form select:focus-visible { border-color: var(--secondary); outline-offset: 1px; }
.form .hint { font-size: 0.92rem; color: var(--muted); margin: 0; }

.note { background: var(--cream-2); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 8px; }

/* Footer */
.site-footer { background: #2a1810; color: #eadfcd; padding: 56px 0 32px; font-size: 0.97rem; }
.site-footer a { color: #f6efe2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f3c99f; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: var(--bg); border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 64px; width: auto; }
.footer-legal { border-top: 1px solid #4a3226; margin-top: 40px; padding-top: 20px; font-size: 0.9rem; color: #d8cab4; }
.footer-legal p { margin: 0 0 6px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header nav, .menu, .site-footer, .btn-row { display: none; }
}
.h3 { font-size: 1.3rem; }
.grid > .card + .card { margin-top: 0; }
.split > div > .card + .card { margin-top: 20px; }
