/* Delvado — shared stylesheet */

:root {
  --red: #C90900;
  --red-dark: #8a0600;
  --ink: #0b0c0c;
  --grey: #505a5f;
  --line: #b1b4b6;
  --wash: #f3f2f1;
  --font: 'Public Sans', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
a:focus { outline: 3px solid transparent; background: #FFB300; box-shadow: 0 -2px #FFB300, 0 4px var(--ink); color: var(--ink); text-decoration: none; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e5e3e1; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 15px; display: flex; align-items: center; gap: 28px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1 1 0%; min-width: 0; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav-link:hover { color: var(--red); }
.nav-link.is-current { font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 4px; }

.wwd { position: relative; padding: 24px 0; margin: -24px 0; display: flex; align-items: center; }
.wwd > a { display: flex; align-items: center; gap: 4px; }
.wwd > a:hover { text-decoration: underline; }
.wwd-toggle { background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; display: flex; align-items: center; }
.wwd-toggle span { font-size: 0.6875rem; display: inline-block; transition: transform 0.15s; }
.wwd.is-open .wwd-toggle span { transform: rotate(180deg); }
.wwd-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 220px; padding: 6px 0; z-index: 30; }
.wwd.is-open .wwd-menu { display: block; }
.wwd-menu a { display: block; padding: 10px 16px; font-size: 0.9375rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wwd-menu a:hover { background: var(--wash); color: var(--red); }

.search-box { position: relative; flex-shrink: 0; }
.search-field { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; width: 220px; }
.search-field input { flex: 1; width: 0; border: none; outline: none; font-family: inherit; font-size: 0.9375rem; padding: 9px 12px; color: var(--ink); }
.search-field button { background: var(--ink); border: none; cursor: pointer; padding: 9px 12px; display: flex; align-items: center; }
.search-results { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 12px; width: 260px; z-index: 20; }
.search-results.is-open { display: block; }
.search-results a { display: block; padding: 6px 4px; font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--wash); }
.search-results p { font-size: 0.875rem; color: var(--grey); margin: 6px 4px 0; }

.btn-contact { color: #fff; text-decoration: none; font-size: 0.9375rem; font-weight: 700; background: var(--red); padding: 10px 22px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.btn-contact:hover { background: var(--red-dark); color: #fff; }
.hamburger { display: none; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; width: 44px; height: 44px; padding: 0; flex-shrink: 0; }

/* Mobile panel */
.mobile-panel { display: none; position: fixed; inset: 0; z-index: 50; background: var(--ink); overflow-y: auto; }
.mobile-panel.is-open { display: block; }
.mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; }
.mobile-head a { background: #fff; padding: 8px 16px; display: flex; align-items: center; }
.mobile-head img { height: 46px; width: auto; display: block; }
.mobile-close { background: none; border: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; }
.mobile-nav { padding: 12px 24px 48px; display: flex; flex-direction: column; }
.mobile-nav > a { display: block; color: #fff; text-decoration: none; font-size: 1.625rem; font-weight: 700; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.mobile-nav > a:first-child { border-top: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-nav > a.no-rule { border-top: none; }
.mobile-sub { display: flex; flex-direction: column; padding: 4px 0 12px 16px; }
.mobile-sub a { color: #d8d6d4; text-decoration: none; font-size: 1.0625rem; padding: 8px 0; display: block; }
.mobile-cta { display: block; text-align: center; background: var(--red); color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 700; padding: 14px; margin-top: 20px; }

/* Hero */
.hero { position: relative; min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); z-index: 0; opacity: 0; transition: opacity 1s ease; }
.hero-bg.is-active { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,12,12,0.6) 0%, rgba(11,12,12,0.55) 40%, rgba(11,12,12,0.7) 100%); }
.hero-content { position: relative; z-index: 2; flex: 1; display: grid; }
.hero-slide { grid-area: 1 / 1; display: flex; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; transition: opacity 0.35s ease 0.35s; }
.hero-inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 56px 15px 72px; display: flex; flex-direction: column; }
.hero-copy { max-width: 620px; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 0 0 20px; font-weight: 700; color: #fff; }
.hero-copy p { font-size: 1.25rem; line-height: 1.5; color: #fff; margin: 0; text-wrap: pretty; }
.hero-cta { margin-top: auto; padding-top: 32px; }
.btn-primary { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-size: 1.1875rem; font-weight: 700; padding: 12px 24px; border: 2px solid transparent; box-shadow: 0 2px 0 var(--red-dark); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.dots { display: flex; justify-content: center; gap: 10px; }
.hero .dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 3; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.6); }
.dots button.is-active { background: var(--red); }

/* Equipment cards */
.equipment { padding: 40px 15px; }
.cards { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 280px; min-height: 373px; border: 2px dashed rgba(255,255,255,0.5); overflow: hidden; scroll-snap-align: start; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.card-tint { position: absolute; inset: 0; }
.card--red .card-tint { background: rgba(201,9,0,0.78); }
.card--grey .card-tint { background: rgba(60,60,60,0.82); }
.card--black .card-tint { background: rgba(0,0,0,0.72); }
.card-body { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px; color: #fff; }
.card-body h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin: 0 0 14px; }
.card-body p { font-size: 0.9375rem; line-height: 1.55; margin: 0 0 20px; max-width: 260px; text-wrap: pretty; }
.card-body .btn-white { margin-top: auto; flex: 0 0 auto; }
.card-body > *:last-child { margin-bottom: 0; }
.btn-white { display: inline-block; background: #fff; color: var(--red); text-decoration: none; font-size: 1rem; font-weight: 700; padding: 10px 20px; border: 2px solid transparent; margin-top: auto; }
.equipment .dots { margin-top: 24px; }
.equipment .dots button { background: #d8d6d4; }
.equipment .dots button.is-active { background: var(--red); }

/* About */
.about { background: var(--red-dark); padding: 64px 15px; }
.about-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 20px; max-width: 480px; color: #fff; }
.about-grid h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.about-grid p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 24px; max-width: 480px; color: #fff; text-wrap: pretty; }
.about-grid .lede { margin-bottom: 28px; }
.btn-onred { display: inline-block; background: #fff; color: var(--red-dark); text-decoration: none; font-size: 1.1875rem; font-weight: 700; padding: 12px 24px; border: 2px solid transparent; }
.about-media { box-shadow: 0 12px 28px rgba(0,0,0,0.3); }
.about-media img { width: 100%; height: 560px; object-fit: cover; display: block; }
.about-cap { background: var(--ink); color: #fff; font-size: 0.875rem; padding: 12px 16px; }

/* Gallery */
.gallery { background: var(--wash); border-top: 4px solid var(--ink); }
.gallery .wrap { padding-top: 40px; padding-bottom: 40px; }
.gallery h2 { font-size: 1.75rem; margin: 0 0 12px; font-weight: 700; text-align: center; }
.rule { width: 60px; height: 3px; background: var(--red); margin: 0 auto 20px; }
.gallery > .wrap > p { font-size: 1.0625rem; line-height: 1.6; margin: 0 auto 32px; max-width: 700px; text-align: center; text-wrap: pretty; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); justify-content: center; gap: 16px; }
.gallery-grid a { width: 100%; aspect-ratio: 4 / 3; display: block; position: relative; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Quality band */
.quality { position: relative; background-image: linear-gradient(rgba(11,12,12,0.62), rgba(11,12,12,0.62)), url('barista-portafilter.jpg'); background-size: cover; background-position: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quality .wrap { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.quality h2 { font-size: 1.75rem; margin: 0 0 16px; font-weight: 700; color: #fff; }
.quality p { font-size: 1.125rem; line-height: 1.5; color: #fff; margin: 0 0 28px; text-wrap: pretty; }
.btn-red { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-size: 1rem; font-weight: 700; padding: 14px 32px; border: 2px solid transparent; }
.btn-red:hover { background: var(--red-dark); color: #fff; }

/* Subpages */
.page-hero { background: var(--band, var(--red-dark)); }
.page-hero > div { max-width: 960px; margin: 0 auto; padding: 32px 15px; }
.page-hero h1 { font-size: 2.25rem; margin: 0; font-weight: 700; color: #fff; }
.breadcrumb { background: var(--wash); border-bottom: 1px solid #e5e3e1; }
.breadcrumb > div { max-width: 960px; margin: 0 auto; padding: 10px 15px; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .here { color: var(--ink); font-weight: 700; }
.content-grid { max-width: 960px; margin: 0 auto; padding: 40px 15px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .content-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Product + project lists */
.product-list { max-width: 960px; margin: 0 auto; padding: 40px 15px; display: flex; flex-direction: column; }
.product { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-info { flex: 1; }
.product-info h2 { font-size: 1.1875rem; margin: 0 0 6px; font-weight: 700; }
.product-info p { font-size: 0.9375rem; line-height: 1.5; color: var(--grey); margin: 0 0 12px; max-width: 480px; white-space: pre-line; text-wrap: pretty; }
.product-info ul { font-size: 0.875rem; line-height: 1.5; color: var(--grey); margin: 0 0 12px; padding-left: 18px; max-width: 480px; }
.product-info .label { font-size: 0.8125rem; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); }
.product-info .notes strong { color: var(--ink); }
.product-cta { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.product-cta:hover { background: var(--red-dark); color: #fff; }
.product-thumb { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.project-grid { max-width: 1200px; margin: 0 auto; padding: 40px 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.project-card { display: block; text-decoration: none; }
.project-media { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,12,0.75), rgba(11,12,12,0) 55%); }
.project-media h2 { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: 1.125rem; margin: 0; font-weight: 700; color: #fff; }
.project-card p { font-size: 0.9375rem; line-height: 1.5; color: var(--grey); margin: 0; text-wrap: pretty; }

@media (max-width: 700px) {
  .product { flex-direction: column; align-items: flex-start; }
  .product-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* Help bubble */
.help { position: fixed; bottom: 20px; right: 20px; z-index: 40; }
.help-panel { display: none; width: 280px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,0.2); margin-bottom: 10px; padding: 20px; }
.help-panel.is-open { display: block; }
.help-panel strong { display: block; font-size: 1rem; margin: 0 0 8px; }
.help-panel p { font-size: 0.875rem; line-height: 1.5; color: var(--grey); margin: 0 0 16px; }
.help-panel a { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--wash); }
.help-panel .help-cta { display: block; text-align: center; background: var(--red); color: #fff; font-size: 0.875rem; font-weight: 700; padding: 10px; margin-top: 12px; border-top: none; }
.help-btn { background: var(--red); color: #fff; border: none; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.help-btn:hover { background: var(--red-dark); }

/* Social + footer */
.social { background: #262626; padding: 32px 15px; text-align: center; }
.social a { color: #fff; text-decoration: none; font-size: 1.125rem; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.social a:hover { color: var(--red); }

.site-footer { background: oklch(24% 0.1 25); border-top: 4px solid var(--red); margin-top: auto; }
.footer-top { max-width: 960px; margin: 0 auto; padding: 40px 15px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1.125rem; font-weight: 700; margin: 0 0 12px; color: #fff; }
.footer-rule { border-top: 1px solid rgba(255,255,255,0.25); margin-bottom: 20px; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 32px; }
.footer-links a { font-size: 1rem; text-decoration: none; color: #fff; }
.site-footer p { font-size: 0.9375rem; color: #f0d9d9; margin: 0 0 16px; }
.footer-pill { display: inline-block; background: #fff; color: var(--red-dark); text-decoration: none; font-size: 0.875rem; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.footer-bottom { max-width: 960px; margin: 32px auto 0; padding: 20px 15px; border-top: 1px solid rgba(255,255,255,0.25); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a, .footer-bottom p { font-size: 0.875rem; color: #f0d9d9; text-decoration: none; margin: 0; }
.gear { color: #6b3a38; display: inline-flex; align-items: center; opacity: 0.6; }
.gear:hover { opacity: 1; }

/* Cookie banner */
.cookie { display: none; position: fixed; left: 20px; bottom: 20px; z-index: 9999; background: #fff; color: var(--ink); width: 340px; max-width: calc(100vw - 40px); border-radius: 12px; padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.cookie.is-open { display: block; }
.cookie-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cookie-head h2 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.cookie-head button { background: none; border: none; padding: 0; cursor: pointer; font-size: 1.375rem; line-height: 1; font-family: inherit; }
.cookie p { margin: 0 0 20px; font-size: 0.875rem; line-height: 1.5; color: var(--grey); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; border: none; border-radius: 8px; padding: 12px; font-size: 0.875rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.cookie-accept { background: var(--red); color: #fff; }
.cookie-decline { background: var(--wash); color: var(--ink); }

@media (max-width: 1040px) {
  .nav-links, .search-box, .btn-contact { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}

@media (max-width: 900px) {
  .logo-img { height: 60px; }
  .hero { min-height: 0; }
  .hero-slide { text-align: center; }
  .hero-inner { padding: 40px 15px 56px; }
  .hero-copy { max-width: none; margin: 0 auto; }
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid h2, .about-grid p { max-width: none; }
  .about-media img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* Hero lede */
.page-hero p { font-size: 1.125rem; margin: 12px 0 0; color: #fff; max-width: 600px; text-wrap: pretty; }

/* Prose sections */
.prose { max-width: 960px; margin: 0 auto; padding: 40px 15px; }
.prose p { font-size: 1rem; line-height: 1.6; color: var(--ink); margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* Contact page */
.contact-cols { max-width: 960px; margin: 0 auto; padding: 40px 15px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.contact-details h2 { font-size: 1.25rem; margin: 0 0 8px; font-weight: 700; }
.contact-details p { font-size: 1rem; line-height: 1.6; margin: 0 0 4px; }
.contact-details .block-end { margin-bottom: 24px; }
.hours { font-size: 1rem; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 2px 16px 2px 0; }
.hours td { padding: 2px 0; }

.form-card { border: 1px solid var(--line); padding: 24px; background: #f8f8f8; }
.form-card h2 { font-size: 1.25rem; margin: 0 0 20px; font-weight: 700; }
.form-card label { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; font-size: 1rem; padding: 10px; border: 2px solid var(--ink); margin-bottom: 20px; font-family: inherit; background: #fff; color: var(--ink); }
.form-card textarea { resize: vertical; margin-bottom: 24px; }
.form-card button[type="submit"] { display: inline-block; background: var(--red); color: #fff; font-size: 1.1875rem; font-weight: 700; padding: 12px 24px; border: 2px solid transparent; box-shadow: 0 2px 0 var(--red-dark); cursor: pointer; font-family: inherit; }
.form-card button[type="submit"]:hover { background: var(--red-dark); }
.form-card button[type="submit"][disabled] { opacity: 0.6; cursor: default; }
.form-note { font-size: 0.8125rem; color: var(--grey); margin: 0 0 20px; }
.honeypot { position: absolute; left: -9999px; }
.recaptcha-slot { margin-bottom: 20px; }
.form-msg { display: none; font-weight: 700; margin: 16px 0 0; }
.form-msg.is-open { display: block; }
.form-msg.ok { color: #00703c; }
.form-msg.err { color: var(--red); }
