/* ===========================================================================
   RESET & NORMALIZE
============================================================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  background: #fff;
  color: #191919;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input, button, textarea, select {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}

/* ===========================================================================
   BRAND GEOMETRIC STRUCTURED VARIABLES
============================================================================ */
:root {
  --color-primary: #FFD600;
  --color-secondary: #191919;
  --color-secondary-alt: #222222;
  --color-accent: #ffffff;
  --color-gray: #ececec;
  --color-dark-gray: #585858;
  --color-text: #191919;
  --color-card-bg: #fffbe1;
  --color-shadow: #f5e490;
  --shadow: 0 4px 18px rgba(0,0,0,0.08);
  --radius-s: 8px;
  --radius-m: 18px;
  --radius-l: 32px;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition: 0.2s cubic-bezier(.56,.31,.6,1);
  --gap: 24px;
}

@media (max-width: 768px) {
  :root { --gap: 16px; }
}

/* ===========================================================================
   TYPOGRAPHY & HEADING HIERARCHY
============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--color-secondary);
  text-transform: uppercase;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p,
ul li, ol li, blockquote, small {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}
small { font-size: 0.92rem; color: var(--color-dark-gray); }
strong { font-weight: 700; color: var(--color-secondary); }
blockquote {
  background: var(--color-card-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-secondary);
}

/* ===========================================================================
   LAYOUT STRUCTURE & UTILITIES
============================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
main {
  flex: 1 0 auto;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 32px;
    padding: 28px 5px;
  }
}

.content-wrapper, .card-container, .content-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
}

.card-container {
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: var(--radius-s);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}

.content-grid {
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffbe1;
  border-left: 5px solid var(--color-primary);
  padding: 20px;
  border-radius: var(--radius-m);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  color: var(--color-secondary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(0,0,0,0.14);
  transform: translateY(-2px);
}
.testimonial-card p {
  color: var(--color-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}
.testimonial-card span { color: var(--color-dark-gray); font-size: 0.99rem; font-weight: 700; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.exclusive-teaser, .feature-highlights, .newsletter-signup {
  background: var(--color-card-bg);
  border-radius: var(--radius-m);
  padding: 18px 24px;
  font-size: 1.04rem;
  margin-top: 14px;
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.social-links img {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  padding: 2px;
  transition: box-shadow var(--transition), border var(--transition);
}
.social-links img:hover {
  box-shadow: 0 2px 8px 0 rgba(255,214,0,.16);
  border-color: var(--color-secondary);
}

.newsletter-signup p {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.8px;
}
.trending-tags span {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 100px;
  padding: 5px 14px;
  font-weight: 700;
}

/* Responsive adjustments for content grid */
@media (max-width: 800px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Geometric shapes for visual accents */
.decorative-shape {
  position: absolute;
  width: 84px; height: 84px;
  background: var(--color-primary);
  opacity: 0.10;
  border-radius: 12% 38% 23% 57% / 59% 21% 61% 18%;
  z-index: 0;
  left: -40px; top: -32px;
  pointer-events: none;
}

/* ===========================================================================
   HEADER & NAVIGATION
============================================================================ */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 16px 0 rgba(32, 32, 32, 0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  width: 154px;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
}
.main-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px 0 rgba(25,25,25,0.11);
}

.cta-button {
  background: var(--color-secondary);
  color: #ffd700 !important;
  font-family: var(--font-display);
  letter-spacing: 0.9px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 48px 12px 48px 12px/20px 48px 12px 48px;
  margin-left: 12px;
  box-shadow: 0 2px 8px 0 rgba(25,25,25,0.11);
  border: 2.5px solid var(--color-secondary);
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary) !important;
  color: var(--color-secondary) !important;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 6px 12px 0 rgba(25,25,25,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* Hide nav for mobile, hamburger menu toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
  z-index: 60;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===========================================================================
   MOBILE MENU STYLES & TRANSITIONS
============================================================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  max-width: 94vw;
  background: var(--color-secondary-alt);
  z-index: 1000;
  transform: translateX(-120%);
  transition: transform 0.36s cubic-bezier(.68,.21,.60,1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px 0 rgba(0,0,0,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  margin: 16px 24px 0 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-close:hover {
  color: var(--color-accent);
  background: var(--color-primary);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 0 38px;
  gap: 28px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 10px 0;
  border-bottom: 1.5px solid rgba(255,214,0,0.13);
  transition: color var(--transition), background var(--transition);
  border-radius: 0px 20px 0 20px;
}
.mobile-nav a:hover {
  color: var(--color-accent);
  background: var(--color-secondary);
}

@media (min-width: 981px) {
  .mobile-menu { display: none; }
  .mobile-menu-toggle { display: none !important; }
}

/* Overlay for mobile menu (optional, could be added via JS for dimming main) */
.mobile-menu-bg {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(25, 25, 25, 0.36);
  z-index: 999;
  transition: opacity var(--transition);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu-bg.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================================================================
   FOOTER
============================================================================ */
footer {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 38px 0 22px 0;
  border-top: 5px solid var(--color-primary);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: text-decoration var(--transition), color var(--transition);
}
.footer-nav a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}
.footer-copy {
  font-size: 0.97rem;
  color: var(--color-accent);
  text-align: center;
}

/* ===========================================================================
   OTHER COMPONENTS (TABLES, FORMS, SPECIAL BLOCKS)
============================================================================ */
table {
  width: 100%;
  background: var(--color-card-bg);
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
thead {
  background: var(--color-primary);
}
th, td {
  padding: 18px 12px;
  font-size: 1.04rem;
  color: var(--color-secondary);
  border-bottom: 1px solid #f4e5a3;
}
th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
tr:last-child td {
  border-bottom: none;
}

/* Highlighted categories / filters */
nav span, nav button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 20px;
}
nav button {
  background: var(--color-card-bg);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary);
  margin: 0 5px 0 0;
  padding: 5px 18px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
nav button:hover, nav button.active {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 1px 6px 0 rgba(255,214,0,0.15);
}

/* News ticker */
.news-ticker {
  width: 100%;
  overflow: hidden;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.9px;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.01rem;
  margin: 14px 0 0 0;
  animation: ticker-slide 34s linear infinite;
}
@keyframes ticker-slide {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 22px 12px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -4px 24px 0 rgba(32,32,32,0.15);
  animation: cc-slide-in 0.5s cubic-bezier(.65,.21,.68,1.13);
}
@keyframes cc-slide-in { from { transform: translateY(60px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.cookie-consent-banner p {
  font-size: 1rem;
  margin-right: 12px;
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  border-radius: 100px;
  padding: 8px 22px;
  border: none;
  margin: 0 5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: 0 1px 6px 0 rgba(255,214,0,0.13);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-consent-banner .cookie-btn:hover {
  background: #fffbe1;
  color: var(--color-secondary);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1.5px solid #FFD600;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 6px;
  }
  .cookie-consent-banner p { margin-bottom: 10px; }
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s cubic-bezier(.68,.22,.53,.99);
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }

.cookie-modal {
  background: #fffbe1;
  color: var(--color-secondary);
  padding: 42px 40px 28px 40px;
  border-radius: var(--radius-l);
  max-width: 400px;
  width: 96vw;
  box-shadow: 0 8px 36px 0 rgba(25,25,25,0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 3100;
  position: relative;
  animation: pop-in 0.33s cubic-bezier(.69,.15,.60,1.03);
}
@keyframes pop-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 22px; height: 22px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 40px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cookie-btn:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 20px; top: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .cookie-close:hover {
  color: var(--color-primary);
}

/* ===========================================================================
   RESPONSIVE UTILITIES & SPACING
============================================================================ */
@media (max-width: 950px) {
  header img { width: 125px; }
}
@media (max-width: 700px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .testimonial-card {
    padding: 15px 10px;
    font-size: 0.98rem;
  }
  .exclusive-teaser, .feature-highlights, .newsletter-signup {
    padding: 10px 8px;
  }
}

/* ===========================================================================
   ACCESSIBILITY, FOCUS STATES & MICRO-INTERACTIONS
============================================================================ */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
body a, body button {
  transition: color 0.18s cubic-bezier(.6,.2,.25,1), background 0.18s cubic-bezier(.6,.2,.25,1), border 0.18s cubic-bezier(.6,.2,.25,1), box-shadow .19s cubic-bezier(.6,.2,.25,1), transform .17s cubic-bezier(.6,.2,.25,1);
}

/* ===========================================================================
   GEOMETRIC STRUCTURED STYLE ACCENTS
============================================================================ */
section {
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-s) / var(--radius-s) var(--radius-l) var(--radius-s) var(--radius-l);
  box-shadow: 0 4px 24px 0 rgba(255,214,0,0.07);
}

.card, .feature-item, .testimonial-card {
  border-radius: var(--radius-m) var(--radius-s) var(--radius-m) var(--radius-s) / var(--radius-s) var(--radius-m) var(--radius-s) var(--radius-m);
  box-shadow: var(--shadow);
  position: relative;
}

/* For plans table on subscription page */
table, .card {
  border-radius: 18px 48px 18px 48px / 48px 18px 48px 18px;
  border: 2px solid var(--color-primary);
}

ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}
ul li:before {
  content: '';
  background: var(--color-primary);
  width: 16px; height: 16px;
  border-radius: 4px 8px 4px 8px;
  display: inline-block;
  position: absolute;
  left: 0; top: 6px;
}
ol li:before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  left: 0; top: 6px;
  font-family: var(--font-display);
  color: var(--color-primary);
  background: var(--color-secondary-alt);
  width: 20px; height: 20px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.96rem;
  line-height: 20px;
}
ol { counter-reset: li; }


/* ===========================================================================
   PRINT & ACCESSIBILITY OVERRIDES
============================================================================ */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu, .mobile-menu-bg {
    display: none !important;
  }
  section, .container, .card, .testimonial-card, .content-wrapper, ul, ol {
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
  }
}
