/* =======================================================================
   Manage My Pub — Classic Pub-Green + Brass Theme (Clean Build)
   ======================================================================= */

:root {
  --bg:        #102b17;   /* deep bottle green */
  --bg-alt:    #14361d;   /* lighter green for cards */
  --text:      #f5f5e1;   /* warm off-white */
  --muted:     #c7d2b2;   /* muted green-grey text */
  --gold:      #e6c14b;   /* pub gold */
  --amber:     #f2b600;   /* bright button gold */
}

/* =======================================================================
   Base Layout
   ======================================================================= */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: radial-gradient(900px 560px at 50% -120px,
              #1c4023 0%, #102b17 40%, #081b0d 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

/* =======================================================================
   Typography
   ======================================================================= */

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  color: var(--gold);
}

h2 {
  margin: 0 0 6px;
  color: var(--gold);
}

.lead  { color: var(--muted); font-size: 1.1rem; }
.dot   { color: var(--gold); }
.small { font-size: .95rem; color: var(--muted); }
.list  { margin: 0; padding-left: 18px; }

.visually-hidden {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* =======================================================================
   Header & Navigation
   ======================================================================= */

.header {
  border-bottom: 1px solid rgba(230,193,75,.55);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
  background: linear-gradient(180deg, #14361d 0%, #102b17 100%);
  margin-bottom: 6px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.brand {
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: #cfdac1;
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover { color: var(--text); }

/* Sign In Button */
.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(230,193,75,.45);
  background: linear-gradient(180deg, rgba(230,193,75,.15), rgba(230,193,75,.05));
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .1s ease;
  margin-right: -1px; /* optical alignment with brass edge */
}

.btn-signin:hover {
  background: rgba(230,193,75,.25);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-signin svg { stroke: currentColor; }

/* Soft brass glow under header */
.header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(180deg,
    rgba(230,193,75,.28), rgba(230,193,75,0));
  filter: blur(.2px);
  border-radius: 999px;
  opacity: .55;
}

/* =======================================================================
   Hero / Cards
   ======================================================================= */

.hero {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(0deg, rgba(121,88,34,.08), rgba(121,88,34,.06));
  border: 1px solid rgba(230,193,75,.35);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* wood-grain overlay */
.card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .20;
  background:
    radial-gradient(140% 90% at 50% -20%, rgba(0,0,0,.20) 0%, rgba(0,0,0,0) 40%),
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48'>\
<defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='0'>\
<stop offset='0' stop-color='%23321e10'/>\
<stop offset='0.5' stop-color='%233b2414'/>\
<stop offset='1' stop-color='%23321e10'/>\
</linearGradient></defs>\
<rect width='48' height='48' fill='url(%23g)'/>\
<path d='M6 0v48M14 0v48M23 0v48M30 0v48M38 0v48' stroke='%23452a16' stroke-opacity='.25' stroke-width='1'/>\
<path d='M0 8h48M0 26h48' stroke='%23452a16' stroke-opacity='.18' stroke-width='0.8'/>\
</svg>");
  background-size: cover, 220px 220px;
  mix-blend-mode: overlay;
}

/* logo-card (banner) */
.logo-card {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(230,193,75,.35);
  background: #1a1108;
  object-fit: contain;
}

/* =======================================================================
   Buttons & Feature Grid
   ======================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(230,193,75,.35);
  color: #102b17;
  text-decoration: none;
  font-weight: 800;
  background: var(--amber);
  transition: background .15s ease, transform .1s ease;
}

.btn:hover { background: #ffd85a; transform: translateY(-1px); }

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.feature {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(230,193,75,.35);
}

.feature h3 { margin: 0 0 6px; color: var(--gold); }
.feature p  { margin: 0; color: var(--muted); }

/* =======================================================================
   Modules Grid
   ======================================================================= */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.module-card {
  display: block;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(230,193,75,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230,193,75,.75);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.module-icon {
  font-size: 28px;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(230,193,75,.5);
  background: rgba(230,193,75,.10);
  margin-bottom: 10px;
}

.module-card h3 { margin: 0 0 6px; color: var(--gold); font-size: 1.15rem; }
.module-card p  { margin: 0 0 10px; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(230,193,75,.35);
  font-size: .85rem;
  color: var(--gold);
  background: rgba(230,193,75,.08);
}

/* =======================================================================
   Footer (wood + brass)
   ======================================================================= */

.footer {
  position: relative;
  margin-top: 36px;
  padding: 22px 0 8px;
  background: linear-gradient(0deg, rgba(28,18,10,.25), rgba(28,18,10,.05));
  color: var(--muted);
  font-size: .95rem;
  border-top: none;
}

/* brass top edge */
.footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(230,193,75,0) 0%,
      rgba(230,193,75,.9) 20%,
      rgba(230,193,75,1) 50%,
      rgba(230,193,75,.9) 80%,
      rgba(230,193,75,0) 100%);
  opacity: .9;
}

/* faint noise veneer */
.footer::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/>\
<feComponentTransfer><feFuncA type='table' tableValues='0 0.6'/></feComponentTransfer></filter>\
<rect width='64' height='64' filter='url(%23n)' opacity='0.35'/>\
</svg>");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* =======================================================================
   Responsive
   ======================================================================= */

@media (max-width: 920px) {
  .hero     { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .modules  { grid-template-columns: 1fr; }
}
