/* ============================================
   BEERHERE — Hoved-stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital@1&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --color-bg:         #0f0f0f;
  --color-bg-2:       #181818;
  --color-bg-3:       #222222;
  --color-gold:       #C8860A;
  --color-gold-light: #E8A020;
  --color-gold-pale:  #F5C842;
  --color-text:       #EDE8E0;
  --color-text-muted: #888880;
  --color-border:     #2e2e2e;
  --color-white:      #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-italic:  'Playfair Display', serif;

  --radius:   4px;
  --radius-lg: 8px;
  --shadow:   0 4px 24px rgba(0,0,0,0.6);
  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-light); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-white);
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 6rem 0;
}
.section--dark  { background-color: var(--color-bg); }
.section--mid   { background-color: var(--color-bg-2); }
.section--light { background-color: var(--color-bg-3); }

/* ---- Gold divider ---- */
.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 1.2rem 0;
}
.gold-line--center { margin-left: auto; margin-right: auto; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}
.site-nav.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--color-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  color: var(--color-white);
  text-decoration: none;
}
.nav-logo span { color: var(--color-gold); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-hamburger { display: flex; z-index: 1001; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    170deg,
    #0f0f0f 0%,
    #1a1200 50%,
    #0f0f0f 100%
  );
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(200, 134, 10, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(200, 134, 10, 0.06) 0%, transparent 70%);
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 30vw, 28rem);
  letter-spacing: -0.02em;
  color: rgba(200,134,10,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.hero h1 .italic {
  font-family: var(--font-italic);
  font-size: 0.55em;
  font-weight: 400;
  color: var(--color-text-muted);
  display: block;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 1.5rem 0 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-gold);
  color: #000;
  border: 2px solid var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,134,10,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header--center {
  text-align: center;
}
.section-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--color-text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}
.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BEER CARDS (homepage featured)
   ============================================ */
.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
}
.beer-card {
  position: relative;
  background: var(--color-bg-2);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.beer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.4s ease;
}
.beer-card:hover { border-color: var(--color-gold); transform: translateY(-4px); }
.beer-card:hover::before { height: 100%; }

.beer-card-style {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.beer-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.beer-card-abv {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.beer-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.beer-card-number {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

/* ============================================
   ABOUT TEASER
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-split .text-block p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: -10px -10px auto auto;
  width: 60%;
  height: 60%;
  border-top: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}
@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================
   PRIVATE LABEL BANNER
   ============================================ */
.pl-banner {
  padding: 6rem 0;
  background:
    linear-gradient(135deg, rgba(200,134,10,0.08) 0%, transparent 60%),
    var(--color-bg-3);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.pl-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.pl-banner h2 { max-width: 540px; }
.pl-banner p {
  color: var(--color-text-muted);
  max-width: 380px;
  font-size: 1.05rem;
}
.pl-banner-actions { flex-shrink: 0; }
@media (max-width: 768px) {
  .pl-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  padding: 3rem 0;
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-gold); }
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200,134,10,0.08);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}
.footer-admin-link {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}
.footer-admin-link:hover {
  opacity: 1;
  color: var(--color-gold);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE HERO (undersider)
   ============================================ */
.page-hero {
  padding: 12rem 0 5rem;
  background: linear-gradient(
    180deg,
    rgba(200,134,10,0.06) 0%,
    transparent 100%
  ),
  var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  max-width: 760px;
}
.about-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  color: var(--color-gold);
}
.about-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}
.about-image-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
}
.penyllan-callout {
  background: var(--color-bg-3);
  border-left: 3px solid var(--color-gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}
.penyllan-callout p {
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   PRIVATE LABEL PAGE
   ============================================ */
.pl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}
.pl-step {
  padding: 2rem;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  position: relative;
}
.pl-step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(200,134,10,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pl-step h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.pl-step p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 700px) {
  .pl-steps { grid-template-columns: 1fr; }
}

.pl-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  margin: 3rem 0;
}
.pl-spec {
  background: var(--color-bg-2);
  padding: 1.5rem;
}
.pl-spec-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}
.pl-spec-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
}
@media (max-width: 500px) {
  .pl-specs { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-info-item {
  margin-bottom: 2rem;
}
.contact-info-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}
.contact-info-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Form */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-success {
  display: none;
  background: rgba(200,134,10,0.1);
  border: 1px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-gold-pale);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-bg-2);
  border: 1px solid var(--color-gold);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   BEER PAGE (ExtJS container)
   ============================================ */
.beers-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
#beers-extjs-container {
  min-height: 600px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
