/*
Theme Name: PH9999 Longform
Theme URI: https://ph9999.beer/
Author: Codex
Description: Bengali-first PH9999 Bangladesh brand entrance theme.
Version: 1.0.0
Text Domain: ph9999-longform
*/

:root {
  --ink: #17211c;
  --muted: #53645a;
  --line: #d9e3dd;
  --soft: #f4f8f5;
  --paper: #ffffff;
  --green: #136f45;
  --green-dark: #0a3d28;
  --red: #c73336;
  --gold: #b8872e;
  --shadow: 0 18px 44px rgba(18, 45, 33, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfb;
  font-family: "Noto Sans Bengali", "Nirmala UI", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(19, 111, 69, 0.14);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(16, 37, 27, 0.06);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 172px;
  height: auto;
}

.brand-tagline {
  padding: 5px 9px;
  border: 1px solid rgba(19, 111, 69, 0.16);
  border-radius: 999px;
  color: var(--green-dark);
  background: #f3faf6;
  font-size: 0.8rem;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 7px;
  font-size: 0.88rem;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 6px;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--green-dark);
  background: var(--soft);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(19, 111, 69, 0.18);
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--soft);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-dark);
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.mobile-nav {
  position: absolute;
  right: 16px;
  left: 16px;
  top: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 111, 69, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: var(--green);
}

.site-main {
  min-height: 68vh;
}

.page-shell {
  padding: 42px 0 64px;
}

.hero,
.page-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #0a3d28 0%, #146b45 55%, #b72e32 100%);
}

.hero .wrap,
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: min(720px, calc(100vh - 76px));
  padding-top: 46px;
  padding-bottom: 46px;
}

.page-hero .wrap {
  min-height: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

h1,
h2,
h3 {
  color: var(--green-dark);
  line-height: 1.24;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  line-height: 1.08;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
}

.hero-lede,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-media,
.page-hero-media,
.section-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.14);
}

.hero-media img,
.page-hero-media img,
.section-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cta-row,
.quick-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(199, 51, 54, 0.28);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: #fff;
  background: #a42428;
}

.button.secondary {
  color: var(--green-dark);
  background: #fff;
  box-shadow: none;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.content-flow {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.content-flow > * + * {
  margin-top: 24px;
}

.content-flow h2 {
  margin-top: 44px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.content-flow h3 {
  margin-top: 32px;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
}

.content-flow p,
.content-flow li {
  color: var(--muted);
}

.section-band {
  margin: 40px calc(50% - 50vw);
  padding: 52px max(16px, calc(50vw - 500px));
  background: var(--soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 30px;
  align-items: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.notice,
.trust-note {
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff8f4;
}

.trust-note {
  border-left-color: var(--green);
  background: #f3faf6;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--green-dark);
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #10251b;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 28px;
  padding: 38px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a,
.site-footer a {
  color: #fff;
}

.footer-note {
  margin: 0;
}

@media (max-width: 900px) {
  .hero .wrap,
  .page-hero .wrap,
  .section-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
    min-height: 68px;
    padding: 9px 0;
  }

  .brand-logo {
    width: 146px;
  }

  .brand-tagline,
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner,
  .wrap,
  .content-flow {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .header-inner {
    width: min(100% - 20px, 1160px);
  }

  .brand-logo {
    width: 132px;
  }

  .mobile-menu summary {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .mobile-nav {
    left: 10px;
    right: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .cta-row,
  .quick-links,
  .inline-links {
    align-items: stretch;
  }

  .button,
  .wp-block-button__link {
    width: 100%;
  }
}
