/* ============================================
   Denyabetic — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary:     #0d0d0d;
  --bg-secondary:   #141414;
  --bg-tertiary:    #0f1a2a;
  --text-primary:   #f2ede6;
  --text-secondary: #a89f95;
  --text-muted:     #5c5650;
  --accent:         #428ac4;
  --accent-hover:   #2280DC;
  --accent-dim:     rgba(27, 110, 198, 0.12);
  --border:         #1e2a3a;
  --border-mid:     #253347;
  --font-heading:   'HelveticaNeue-CondensedBold', 'Helvetica Neue', 'Arial Narrow', Arial, sans-serif;
  --font-sans:      'Inter', system-ui, sans-serif;
  --max-width:      760px;
  --nav-height:     64px;
}

/* --- Heading base rule — applies condensed bold everywhere --font-heading is used --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
}

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

/* --- Hero Nav (floats over full-bleed hero image) --- */
.nav-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
}

.nav-hero-logo img {
  height: 46px;
  width: auto;
  display: block;
  margin-top: 7px;
  margin-left: -6px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-hero-logo img.logo-visible {
  opacity: 1;
}

.nav-hero-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-hero-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.nav-hero-links a:hover,
.nav-hero-links a.active {
  color: #fff;
}

/* --- Dropdown Menus (shared: hero nav + standard nav) --- */
.nav-hero-links .has-dropdown,
.nav-links .has-dropdown {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.nav-hero-links .dropdown,
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 200;
}

.nav-hero-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown:hover .dropdown {
  display: block;
}

.nav-hero-links .dropdown li a,
.nav-links .dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 16px;
  color: #111111;
  text-shadow: none;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}

.nav-hero-links .dropdown li a:hover,
.nav-links .dropdown li a:hover {
  color: #ffffff;
  background: #111111;
}

/* --- White Page (inner pages) --- */
body.page-white {
  background: #ffffff;
}

body.page-white .page-hero {
  background: #111111;
  border-bottom-color: #000000;
}

body.page-white .page-hero h1 {
  color: #ffffff;
}

body.page-white .page-hero .page-hero-sub {
  color: rgba(255,255,255,0.75);
}

body.page-white .about-body h2 {
  color: #111111;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

body.page-fasting .about-body h2 {
  font-size: clamp(1.25rem, calc(3.5vw - 0.5rem), 1.9rem);
}

body.page-white .about-body p {
  color: #333333;
}

body.page-white .about-body .highlight {
  color: #111111;
}

body.page-white .pull-quote {
  background: rgba(26, 192, 46, 0.08);
  border-left-color: #1ac02e;
}

body.page-white .about-body .pull-quote p {
  color: #111111;
}

body.page-white hr.divider {
  border-top-color: #e0e0e0;
}

body.page-white .cta-block {
  background: #f5f5f5;
  border-color: #dddddd;
}

body.page-white .cta-block h2 {
  color: #111111;
}

body.page-white .cta-block p {
  color: #333333;
}

body.page-white .email-input {
  background: #ffffff;
  border-color: #cccccc;
  color: #111111;
}

body.page-white .email-input::placeholder {
  color: #999999;
}

body.page-white .email-disclaimer {
  color: #888888;
}

/* --- Standard Nav (inner pages) --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* --- Hero (Home — composited: textless bg + HTML elements) --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-color: #0a0a0a;
  background-image: url('assets/images/Deny_Splash_Textless.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Background image tag — fills hero, scales with viewport */
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

/* Composite logo — absolutely positioned, left-justified */
.hero-logo-composite {
  position: absolute;
  top: calc(var(--nav-height) + 1.5rem + 140px);
  left: calc(2.5rem + 160px);
  width: 380px;
  height: auto;
  display: block;
  z-index: 1;
}

/* Hero composite headline */
.hero-headline {
  position: absolute;
  top: calc(var(--nav-height) + 1.5rem + 140px + 101px + 60px);
  left: calc(2.5rem + 160px);
  text-align: left;
  z-index: 1;
}

.hero-headline-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 72px;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-headline-sm {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 50px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Watch the Intro button — bottom-left */
.btn-watch-intro {
  position: relative;
  z-index: 2;
  display: inline-flex;
  isolation: isolate;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 calc(20vh + 20px) calc(2.5rem + 230px);
  background: #1ac02e;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.94rem 1.93rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 12px rgba(26, 192, 46, 0.45);
}

.btn-watch-intro:hover {
  background: #17a828;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(26, 192, 46, 0.6);
}

.btn-watch-intro svg {
  flex-shrink: 0;
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.video-modal-player {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.video-modal-player video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.15);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto 1rem;
  color: var(--text-primary);
}

.page-hero .hero-title-lg {
  font-size: clamp(2.375rem, 4.4vw, calc(3rem + 6px));
}

.page-hero .hero-title-sm {
  font-size: clamp(1.75rem, 3.5vw, calc(3rem - 4px));
}

.page-hero .page-hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: calc(0.72rem + 4px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.section p:last-child { margin-bottom: 0; }

/* --- Pattern List --- */
.pattern-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pattern-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
}

.pattern-list li:first-child {
  border-top: 1px solid var(--border);
}

.pattern-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.65rem;
  flex-shrink: 0;
}

/* --- Pull Quote --- */
.pull-quote {
  border-left: 3px solid #1ac02e;
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(26, 192, 46, 0.10);
  border-radius: 0 4px 4px 0;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  max-width: 100%;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- CTA Block --- */
.cta-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Pull-quote inside about-body needs higher specificity to override .about-body p */
.about-body .pull-quote p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

/* Logo image (nav + footer) */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.footer .logo-img {
  height: 65px;
  margin: 0 auto 0.5rem;
}

/* --- Email Capture Form --- */
.email-capture {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.email-capture-fields {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--accent);
}

.email-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 100%;
}

/* --- About Content --- */
.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about-body p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-body p:last-child { margin-bottom: 0; }

.about-body .highlight {
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Light Panel (white bg, dark text) --- */
.panel-light {
  background: #ffffff;
}

.panel-light h2 {
  color: #111111;
}

.panel-light p {
  color: #333333;
}

.panel-light .section-label {
  display: none;
}

.panel-light .pattern-list li {
  color: #333333;
  border-bottom-color: #dddddd;
}

.panel-light .pattern-list li:first-child {
  border-top-color: #dddddd;
}

.panel-light .pattern-list li::before {
  background: #111111;
}

.panel-light .pull-quote {
  background: rgba(26, 192, 46, 0.08);
  border-left-color: #1ac02e;
}

.panel-light .pull-quote p {
  color: #111111;
}

.panel-light .cta-block {
  background: #f5f5f5;
  border-color: #dddddd;
}

.panel-light .cta-block h2 {
  color: #111111;
}

.panel-light .cta-block p {
  color: #333333;
}

.panel-light .email-input {
  background: #ffffff;
  border-color: #cccccc;
  color: #111111;
}

.panel-light .email-input::placeholder {
  color: #999999;
}

.panel-light .email-disclaimer {
  color: #888888;
}

/* --- Signs Grid --- */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 2rem;
}

.sign-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sign-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.sign-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.panel-light .sign-card p {
  color: #333333;
}

/* --- Kit Form Overrides --- */
.formkit-form {
  font-family: var(--font-sans) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.formkit-form h1,
.formkit-form h2,
.formkit-form h3 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-stretch: condensed !important;
}
.formkit-form p,
.formkit-form label,
.formkit-form input,
.formkit-form .formkit-guarantee {
  font-family: var(--font-sans) !important;
}
.formkit-form .formkit-submit {
  font-family: var(--font-sans) !important;
  background-color: var(--accent) !important;
  border-radius: 4px !important;
}
.formkit-form .formkit-submit:hover {
  background-color: var(--accent-hover) !important;
}

/* --- Hamburger Button (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 102;
}
.nav-hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* --- Mobile Nav Drawer --- */
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #111111;
  z-index: 1001;
  padding: 1.5rem 1.75rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid #222;
}
.nav-mobile-drawer.open { right: 0; }

.nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.nav-mobile-drawer ul {
  list-style: none;
  margin-top: 3.5rem;
}
.nav-mobile-drawer ul li {
  border-bottom: 1px solid #222;
}
.nav-mobile-drawer ul li a {
  display: block;
  color: #f2ede6;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 0;
  transition: color 0.2s;
}
.nav-mobile-drawer ul li a:hover { color: #1ac02e; }

.drawer-section {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1ac02e;
  font-weight: 600;
  padding: 1rem 0 0.25rem;
  border-bottom: none !important;
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
}
.nav-mobile-overlay.open { display: block; }

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .nav-hamburger { display: flex; }
  .nav-hero-links { display: none; }
  .nav-hero { padding: 0 1.25rem; }

  /* Hero — switch from absolute layout to stacked flex */
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background-position: 65% center;
    padding: 0 1.5rem 3rem;
    gap: 1.25rem;
    min-height: 100svh;
  }

  .hero-logo-composite {
    position: absolute;
    top: calc(var(--nav-height) + 1.5rem + 65px);
    left: 1.5rem;
    width: 190px;
  }

  .hero-headline {
    position: static;
    margin: 0;
  }

  .hero-headline-lg {
    font-size: 44px;
  }

  .hero-headline-sm {
    font-size: 30px;
  }

  .btn-watch-intro {
    margin: 0.25rem 0 0 0;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 3.5rem 1.25rem; }
  .cta-block { padding: 2rem 1.5rem; }
  .about-body { padding: 3.5rem 1.25rem; }
  .footer { padding: 2.5rem 1.25rem; }
  .signs-grid { grid-template-columns: repeat(2, 1fr); }
}
