:root {
  --glucose-paper-bg: #f8f4ed;
  --glucose-paper-surface: #ffffff;
  --glucose-ink-tone: #261c16;
  --glucose-sepia-accent: #8c4a27;
  --glucose-gold-seal: #b88330;
  --glucose-muted-border: #d4c2aa;
  --glucose-dark-vintage: #1c130d;
  --glucose-soft-highlight: #efe5d5;
  --glucose-seal-gradient: linear-gradient(135deg, #b88330 0%, #8c4a27 100%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--glucose-paper-bg);
  color: var(--glucose-ink-tone);
  line-height: 1.65;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Progress */
.glyco-vintage-header {
  background-color: var(--glucose-paper-bg);
  border-bottom: 1px solid var(--glucose-muted-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1.5rem;
}

.glyco-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.glyco-header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--glucose-seal-gradient);
  width: 100%;
  transform-origin: 0 50%;
  animation: glycoProgress linear;
  animation-timeline: scroll();
}

@keyframes glycoProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.glyco-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--glucose-ink-tone);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.glyco-brand-icon {
  width: 38px;
  height: 38px;
  fill: var(--glucose-sepia-accent);
}

.glyco-nav-checkbox {
  display: none;
}

.glyco-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.glyco-nav-burger span {
  width: 25px;
  height: 2px;
  background-color: var(--glucose-ink-tone);
  transition: all 0.3s ease;
}

.glyco-main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.glyco-main-navigation a {
  text-decoration: none;
  color: var(--glucose-ink-tone);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.glyco-main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--glucose-sepia-accent);
  transition: width 0.3s ease;
}

.glyco-main-navigation a:hover {
  color: var(--glucose-sepia-accent);
}

.glyco-main-navigation a:hover::after {
  width: 100%;
}

/* Animations */
.glyco-scroll-reveal {
  animation: glycoFadeIn linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes glycoFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common UI Elements */
.glyco-section-block {
  padding: 10dvh 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.glyco-double-border-box {
  border: 4px double var(--glucose-muted-border);
  padding: 2.5rem;
  background-color: var(--glucose-paper-surface);
  position: relative;
}

.glyco-pill-button {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  border: 3px double var(--glucose-gold-seal);
  background: var(--glucose-seal-gradient);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(140, 74, 39, 0.2);
}

.glyco-pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140, 74, 39, 0.3);
}

/* Index Hero */
.glyco-hero-stage {
  position: relative;
  background-image: linear-gradient(rgba(248, 244, 237, 0.85), rgba(248, 244, 237, 0.9)), url('img/bg.webp');
  background-size: cover;
  background-position: center;
  filter: sepia(15%) brightness(0.95);
  padding: 12dvh 1.5rem 10dvh 1.5rem;
  border-bottom: 2px dashed var(--glucose-muted-border);
  overflow: hidden;
}

.glyco-hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
}

.glyco-hero-content {
  flex: 1;
  max-width: 680px;
}

.glyco-hero-headline {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.25;
  color: var(--glucose-dark-vintage);
  margin-bottom: 1.25rem;
}

.glyco-hero-subhead {
  font-size: 1.15rem;
  color: #4a3b32;
  margin-bottom: 2rem;
}

.glyco-badge-seal-svg {
  width: 180px;
  height: 180px;
  animation: rotateSeal 30s linear infinite;
  flex-shrink: 0;
}

@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Content Split Sections */
.glyco-split-content {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.glyco-split-reversed {
  flex-direction: row-reverse;
}

.glyco-frame-visual {
  flex: 1;
  position: relative;
}

.glyco-frame-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 8px 8px 0px var(--glucose-sepia-accent);
  border: 1px solid var(--glucose-muted-border);
}

.glyco-frame-text {
  flex: 1.2;
}

.glyco-frame-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--glucose-dark-vintage);
  margin-bottom: 1rem;
}

.glyco-ornamental-list {
  list-style: none;
  margin-top: 1.5rem;
}

.glyco-ornamental-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.glyco-ornamental-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--glucose-sepia-accent);
  font-size: 1.1rem;
}

/* Features Grid */
.glyco-seals-layout {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.glyco-seal-card {
  flex: 1;
  background: var(--glucose-paper-surface);
  border: 1px solid var(--glucose-muted-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.glyco-seal-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px double var(--glucose-gold-seal);
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--glucose-soft-highlight);
  color: var(--glucose-sepia-accent);
}

.glyco-seal-icon-circle svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.glyco-seal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--glucose-dark-vintage);
}

.glyco-dotted-separator {
  border: none;
  border-top: 2px dotted var(--glucose-muted-border);
  margin: 1rem auto;
  width: 50%;
}

/* How it Works */
.glyco-steps-flow {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}

.glyco-steps-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--glucose-sepia-accent);
  z-index: 1;
}

.glyco-step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--glucose-paper-bg);
  padding: 1rem;
}

.glyco-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px double var(--glucose-sepia-accent);
  background: var(--glucose-paper-surface);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--glucose-sepia-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

/* CTA Banner Strip */
.glyco-cta-strip {
  background-color: var(--glucose-dark-vintage);
  color: var(--glucose-paper-bg);
  padding: 5rem 1.5rem;
  text-align: center;
}

.glyco-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  border: 2px double var(--glucose-gold-seal);
  padding: 3rem 2rem;
}

.glyco-cta-inner h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.glyco-cta-inner p {
  color: var(--glucose-muted-border);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Expert Page Specifics */
.glyco-expert-portrait-wrap {
  max-width: 55%;
  margin: 0 auto 3rem auto;
  position: relative;
}

.glyco-expert-portrait-wrap img {
  width: 100%;
  height: auto;
  border: 8px double var(--glucose-muted-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

.glyco-stats-seals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.glyco-stat-seal {
  background: var(--glucose-paper-surface);
  border: 2px double var(--glucose-gold-seal);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.glyco-stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--glucose-sepia-accent);
}

.glyco-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--glucose-ink-tone);
}

.glyco-pull-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  color: var(--glucose-sepia-accent);
  padding: 2rem;
  border-left: 4px solid var(--glucose-gold-seal);
  border-right: 4px solid var(--glucose-gold-seal);
  margin: 3rem 0;
  background-color: var(--glucose-soft-highlight);
}

/* Reserve Page Specifics */
.glyco-vintage-form {
  max-width: 650px;
  margin: 0 auto;
  background: var(--glucose-paper-surface);
  border: 4px double var(--glucose-muted-border);
  padding: 3rem 2.5rem;
}

.glyco-form-group {
  margin-bottom: 1.75rem;
}

.glyco-form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--glucose-dark-vintage);
}

.glyco-underline-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--glucose-muted-border);
  background: transparent;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--glucose-ink-tone);
  outline: none;
  transition: border-color 0.3s ease;
}

.glyco-underline-input:focus {
  border-bottom-color: var(--glucose-sepia-accent);
}

.glyco-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.glyco-checkbox-label input {
  margin-top: 0.25rem;
}

.glyco-faq-stack {
  margin-top: 3rem;
}

.glyco-faq-item {
  border: 1px solid var(--glucose-muted-border);
  background: var(--glucose-paper-surface);
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.glyco-faq-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--glucose-dark-vintage);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glyco-faq-num {
  color: var(--glucose-sepia-accent);
}

/* Legal & Thank Pages */
.glyco-text-legal-block {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glucose-paper-surface);
  padding: 3rem;
  border: 1px solid var(--glucose-muted-border);
}

.glyco-text-legal-block h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--glucose-dark-vintage);
}

.glyco-text-legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: var(--glucose-sepia-accent);
}

.glyco-text-legal-block p {
  margin-bottom: 1.25rem;
  color: #3d312a;
}

/* Cookie Banner */
.glyco-cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--glucose-dark-vintage);
  color: #ffffff;
  padding: 1.25rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

.glyco-cookie-flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.glyco-cookie-actions {
  display: flex;
  gap: 1rem;
}

.glyco-btn-accept {
  background: var(--glucose-sepia-accent);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.glyco-btn-decline {
  background: transparent;
  color: var(--glucose-muted-border);
  border: 1px solid var(--glucose-muted-border);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
.glyco-site-footer {
  background-color: var(--glucose-dark-vintage);
  color: var(--glucose-paper-bg);
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
  border-top: 3px double var(--glucose-gold-seal);
}

.glyco-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.glyco-footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.glyco-footer-links a {
  color: var(--glucose-muted-border);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.glyco-footer-links a:hover {
  color: #ffffff;
}

.glyco-disclaimer-note {
  max-width: 700px;
  font-size: 0.85rem;
  color: #a39282;
  line-height: 1.5;
  border-top: 1px dashed #3d312a;
  padding-top: 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .glyco-hero-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .glyco-badge-seal-svg {
    margin: 1rem auto 0 auto;
  }
  .glyco-split-content, .glyco-split-reversed {
    flex-direction: column;
  }
  .glyco-seals-layout {
    flex-direction: column;
  }
  .glyco-steps-flow {
    flex-direction: column;
  }
  .glyco-steps-flow::before {
    display: none;
  }
  .glyco-expert-portrait-wrap {
    max-width: 90%;
  }
  .glyco-stats-seals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .glyco-nav-burger {
    display: flex;
  }
  .glyco-main-navigation {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--glucose-paper-bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 2px solid var(--glucose-muted-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .glyco-nav-checkbox:checked ~ .glyco-main-navigation {
    display: flex;
  }
  .glyco-cookie-flex {
    flex-direction: column;
    text-align: center;
  }
}