/* ═══════════════════════════════════════════════════════
   2 Bears Software – Stylesheet
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:       #2c4a35;
  --forest-mid:   #3d6448;
  --forest-light: #5a8c66;
  --forest-pale:  #edf4ef;
  --amber:        #c8763a;
  --amber-light:  #e8a060;
  --cream:        #f7f2ea;
  --warm-white:   #faf8f5;
  --charcoal:     #1e1c1a;
  --body-text:    #3a3530;
  --mid-grey:     #6b6560;
  --light-line:   #e2d9ce;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius:       12px;

  /* ── Diamond holographic pattern (single source of truth) ──
     Change --diamond-pattern here to update header + footer everywhere. */
  --diamond-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2300e5ff' stop-opacity='0.18'/%3E%3Cstop offset='25%25' stop-color='%23b388ff' stop-opacity='0.14'/%3E%3Cstop offset='50%25' stop-color='%2300e5ff' stop-opacity='0.10'/%3E%3Cstop offset='75%25' stop-color='%2364ffda' stop-opacity='0.14'/%3E%3Cstop offset='100%25' stop-color='%23b388ff' stop-opacity='0.18'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2364ffda' stop-opacity='0.12'/%3E%3Cstop offset='50%25' stop-color='%23ffffff' stop-opacity='0.06'/%3E%3Cstop offset='100%25' stop-color='%2300e5ff' stop-opacity='0.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='30,2 58,30 30,58 2,30' fill='url(%23b)' stroke='url(%23a)' stroke-width='0.8'/%3E%3Cpolygon points='30,12 48,30 30,48 12,30' fill='none' stroke='url(%23a)' stroke-width='0.5' stroke-opacity='0.5'/%3E%3C/svg%3E");
  --diamond-opacity: 1;
}

/* ── Holographic diamond overlay ──────────────────────────────────────────
   Applied to header and footer via .diamond-overlay.
   The pattern itself lives in --diamond-pattern in :root above.
   ──────────────────────────────────────────────────────────────────────── */
.diamond-overlay {
  position: relative;
  isolation: isolate;
}
.diamond-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--diamond-pattern);
  background-size: 60px 60px;
  background-repeat: repeat;
  opacity: var(--diamond-opacity);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.diamond-overlay > * {
  position: relative;
  z-index: 1;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #ffffff;
  color: var(--body-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a   { color: var(--forest-mid); }
main { flex: 1; }

/* ═══ HEADER ═══ */
header {
  width: 100%;
  background: #0d3347 url("../images/header-bg.png") center center / cover no-repeat;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}
.nav-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  margin-left: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.logo-bear { font-size: 1.5rem; line-height: 1; }

.nav-link {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background .18s, color .18s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.policies-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,.88);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.policies-btn:hover, .policies-btn.open {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.policies-btn .arrow { font-size: .65rem; opacity: .7; transition: transform .2s; }
.policies-btn.open .arrow { transform: rotate(180deg); }

.policies-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: #1a3224;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 80vh;
  overflow-y: auto;
}
.policies-panel.open { display: block; }

.pol-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: rgba(255,255,255,.78);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: background .15s, color .15s;
  user-select: none;
}
.pol-item:last-child { border-bottom: none; }
.pol-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.pol-item .chevron { font-size: .6rem; opacity: .5; transition: transform .2s; flex-shrink: 0; }
.pol-item.expanded .chevron { transform: rotate(90deg); }

.pol-sub { display: none; background: rgba(0,0,0,.2); }
.pol-sub.open { display: block; }

.pol-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 10px 30px;
  color: rgba(255,255,255,.65);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  transition: background .15s, color .15s;
  user-select: none;
}
.pol-sub-item:last-child { border-bottom: none; }
.pol-sub-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.pol-sub-item .chevron { font-size: .6rem; opacity: .45; transition: transform .2s; flex-shrink: 0; }
.pol-sub-item.expanded .chevron { transform: rotate(90deg); }

.pol-subsub { display: none; background: rgba(0,0,0,.2); }
.pol-subsub.open { display: block; }

.pol-subsub-item {
  display: block;
  padding: 9px 18px 9px 44px;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pol-subsub-item:last-child { border-bottom: none; }
.pol-subsub-item:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ═══ ABOUT SECTION ═══ */
.about-section { background: var(--warm-white); padding: 80px 28px; }
.about-inner { max-width: 1140px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--forest-mid);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 600px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 56px;
}
.about-text p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--body-text);
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-quote {
  background: var(--forest-pale);
  border-left: 4px solid var(--forest);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--forest);
  line-height: 1.5;
}
.about-images { display: flex; flex-direction: column; gap: 14px; }
.about-images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.about-images img:first-child { aspect-ratio: 16/9; }
.about-images img:last-child  { aspect-ratio: 16/7; }

/* ═══ APPS SECTION ═══ */
.apps-section {
  background: var(--cream);
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
  padding: 72px 28px;
}
.apps-inner { max-width: 1140px; margin: 0 auto; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.app-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--forest);
  opacity: 0;
  transition: opacity .2s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.app-card:hover::after { opacity: 1; }
.app-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.app-name {
  font-family: 'Fraunces', serif;
  font-size: .98rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.2;
}
.app-desc { font-size: .78rem; color: var(--mid-grey); line-height: 1.5; }

/* ═══ POLICY PAGES ═══ */
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 28px 100px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  font-size: .8rem;
  color: var(--mid-grey);
}
.breadcrumb a { color: var(--forest-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #ccc; }

.policy-header {
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--forest);
}
.policy-app-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--forest-mid);
  margin-bottom: 8px;
}
.policy-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 12px;
}
.policy-meta { font-size: .82rem; color: var(--mid-grey); line-height: 1.7; }

.policy-body { font-size: 1rem; line-height: 1.78; color: var(--body-text); }
.policy-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--light-line);
}
.policy-body h3 { font-size: .97rem; font-weight: 600; color: var(--charcoal); margin: 22px 0 6px; }
.policy-body p  { margin-bottom: 14px; }
.policy-body ul, .policy-body ol { padding-left: 24px; margin-bottom: 14px; }
.policy-body li { margin-bottom: 5px; }
.policy-body a  { color: var(--forest-mid); }

.contact-block {
  background: var(--cream);
  border: 1px solid var(--light-line);
  border-left: 4px solid var(--forest);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 16px 0;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--body-text);
}
.contact-block a { color: var(--forest-mid); }

.page-images { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.page-images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ═══ FOOTER ═══ */
footer {
  background: #0d3347 url("../images/header-bg.png") center center / cover no-repeat;
  color: rgba(255,255,255,.75);
  padding: 32px 28px 24px;
  font-size: .88rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
/* Row 1 – address, centred */
.footer-address {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 16px;
}
/* Row 2 – email, centred */
.footer-email {
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-bottom: 20px;
}
.footer-email a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-email a:hover { color: #fff; text-decoration: underline; }
/* Row 3 – three columns: policy left, copyright centre, policy right */
.footer-bottom-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem;
  gap: 16px;
}
.footer-bottom-row a:first-child { color: rgba(255,255,255,.75); text-decoration: underline; text-align: left; }
.footer-bottom-row span           { color: rgba(255,255,255,.55); text-align: center; }
.footer-bottom-row a:last-child  { color: rgba(255,255,255,.75); text-decoration: underline; text-align: right; }
.footer-bottom-row a { text-decoration: underline; transition: color .15s; }
.footer-bottom-row a:hover { color: #fff; }

@media (max-width: 600px) {
  .footer-bottom-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .footer-bottom-row a:first-child,
  .footer-bottom-row a:last-child { text-align: center; }
}


/* ================================================================
   HERO BANNER – home page only
   Teal band using same background as header/footer.
   Nav bar floats transparently over the top of this.
   ================================================================ */
.hero-banner {
  position: relative;
  background: #0d3347 url("../images/header-bg.png") center center / cover no-repeat;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--diamond-pattern);
  background-size: 60px 60px;
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: diamond-drift 8s linear infinite;
}

/* ================================================================
   LOGO STRIP – white section directly below the hero banner.
   Logo always fills exactly 80% of the viewport width.
   ================================================================ */
.logo-strip {
  background: #ffffff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20%;
  border-bottom: 3px solid #0d3347;
}
.logo-strip img {
  width: 60%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   HOME PAGE – transparent nav overlaid on hero banner
   ================================================================ */
.home-page header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  box-shadow: none !important;
  --diamond-opacity: 0.35;
}
.home-page {
  position: relative;
}


/* ================================================================
   ABOUT US SECTION – home page
   Dark teal background with centred white text, matching the
   original site style shown in the reference screenshot.
   ================================================================ */
.about-us-section {
  background: #0d3347 url("../images/section_background.jpg") center center / cover no-repeat;
  width: 100%;
  padding: 40px 28px;
  text-align: center;
}
.about-us-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about-us-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}
.about-us-body {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-us-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .about-us-section { padding: 48px 16px; }
}

/* ================================================================
   GOOGLE PLAY SECTION – white, sits directly below About Us.
   Compact padding matching the original site proportions.
   ================================================================ */
.play-section {
  background: #ffffff;
  width: 100%;
  padding: 0 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.play-text {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--body-text);
  padding: 2em 0;
  margin: 0;
  width: 100%;
}
.play-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.play-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

@media (max-width: 600px) {
  .play-section  { padding: 28px 16px 36px; }
  .play-images   { grid-template-columns: 1fr; gap: 16px; }
  .play-images img:last-child { display: none; }
}

/* ================================================================
   RESPONSIVE – mobile-first, adapts to all screen sizes.
   Breakpoints:
     1024px  – large tablet / small desktop
      800px  – tablet portrait
      600px  – large phone
      400px  – small phone
   ================================================================ */

/* ── Large tablet / small desktop ── */
@media (max-width: 1024px) {
  .nav-inner      { padding: 0 20px; }
  .about-section  { padding: 64px 20px; }
  .apps-section   { padding: 56px 20px; }
  .apps-grid      { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet portrait ── */
@media (max-width: 800px) {
  /* Hero */
  .hero-banner    { min-height: 200px; }

  /* Logo strip — stays at 80% width, just less vertical padding */
  .logo-strip     { padding: 20px 10%; }

  /* About section: stack into single column */
  .about-grid     {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-images   { order: -1; }   /* images above text on small screens */
  .about-section  { padding: 52px 20px; }

  /* Apps: 2 columns on tablet */
  .apps-grid      { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .apps-section   { padding: 52px 20px; }

  /* Policy pages */
  .policy-page    { padding: 36px 20px 72px; }
  .policy-header h1 { font-size: 1.75rem; }

  /* Footer */
  .footer-inner   { flex-direction: column; gap: 6px; text-align: center; }
  .footer-sep     { display: none; }
}

/* ── Large phone ── */
@media (max-width: 600px) {
  /* Nav */
  .nav-inner      { padding: 0 14px; height: 108px; }
  .logo           { font-size: 1.1rem; }
  .logo-bear      { font-size: 1.2rem; }
  .nav-link,
  .policies-btn   { padding: 6px 10px; font-size: .85rem; }
  .policies-panel { width: calc(100vw - 28px); right: 0; }

  /* Hero — enough height to show behind the 56px nav */
  .hero-banner    { min-height: 160px; }

  /* Logo strip — still 80% width, reduced padding */
  .logo-strip     { padding: 20px 10%; }

  /* About */
  .about-section  { padding: 40px 14px; }
  .section-title  { font-size: 1.5rem; }
  .about-quote    { font-size: 1rem; padding: 14px 18px; }
  .about-images img:last-child { display: none; } /* hide second image on small phones */

  /* Apps: 1 column on phones */
  .apps-grid      { grid-template-columns: 1fr 1fr; gap: 12px; }
  .apps-section   { padding: 40px 14px; }
  .app-card       { padding: 20px 14px; }

  /* Buttons */
  .btn-primary,
  .btn-ghost      { padding: 11px 18px; font-size: .88rem; width: 100%; justify-content: center; }
  .hero-actions   { flex-direction: column; }

  /* Policy pages */
  .policy-page    { padding: 28px 14px 60px; }
  .policy-header h1 { font-size: 1.5rem; }
  .breadcrumb     { font-size: .75rem; }
  .contact-block  { padding: 14px 16px; }

  /* Footer */
  .footer-top     { flex-direction: column; align-items: center; gap: 6px; }
  .footer-bottom  { font-size: .72rem; }
}

/* ── Small phone ── */
@media (max-width: 400px) {
  .logo-strip     { padding: 16px 10%; }
  .hero-banner    { min-height: 140px; }
  .apps-grid      { grid-template-columns: 1fr; }
  .app-card       { padding: 18px 14px; }
  .policy-header h1 { font-size: 1.3rem; }
}


