/* Nucellar Grid Co — main stylesheet */

:root {
  --primary-light: rgb(151 106 241);
  --primary: rgb(92 22 233);
  --primary-dark: rgb(65 15 163);
  --text-dark: rgb(33 37 41);
  --bg-light: rgb(248 249 250);
  --radius: 12px;
  --section-gap: 5rem;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 400;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; }

/* ---- layout helpers ---- */
.section-gap {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}
.brand-name { font-size: 1.5rem; font-weight: 600; }
.brand-tag { font-size: .8rem; color: #6c757d; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-weight: 600; color: var(--text-dark); padding: .3rem .4rem; transition: color .2s; }
.nav-links a:hover { color: var(--primary-dark); }
.btn-nav {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--primary-light); box-shadow: 0 6px 18px rgba(92,22,233,.35); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: all .3s;
}
@media (max-width: 991px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    gap: .75rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .btn-nav { width: 100%; text-align: center; display: block; }
}

/* ---- buttons ---- */
.btn-primary {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 20px rgba(92,22,233,.3);
  color: var(--text-dark);
}
.btn-primary-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary-dark); color: #fff; }

/* ---- cards / accent blocks ---- */
.accent-card {
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.06);
  padding: 1.5rem;
  transition: box-shadow .25s;
}
.accent-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.13); }

.offer-block {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.offer-block:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-2px); }

.program-card {
  border-radius: var(--radius);
  background: var(--bg-light);
  padding: 2rem;
  height: 100%;
}

/* ---- icon shape ---- */
.icon-shape {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.icon-shape-sm {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* ---- hero ---- */
.hero-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,22,233,.45), rgba(65,15,163,.72));
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem;
}

/* ---- bento grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .bento-grid { grid-template-columns: 3fr 1fr; }
  .bento-stack { display: flex; flex-direction: column; gap: 1.5rem; }
}

/* ---- two-col grid ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .three-col { grid-template-columns: repeat(3, 1fr); }
}

/* ---- sidebar layout ---- */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 992px) {
  .with-sidebar { grid-template-columns: 1fr 280px; align-items: start; }
}

/* ---- content prose ---- */
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .5rem; }
.prose p { line-height: 1.7; margin-bottom: 1rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; line-height: 1.65; }

/* ---- quote ---- */
.pullquote {
  font-size: 1.3rem;
  color: var(--primary-dark);
  border-left: 5px solid var(--primary);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
}

/* ---- step list ---- */
.step-item {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.step-num {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

/* ---- forms ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid #ced4da;
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  min-height: 46px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,22,233,.2);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-error { color: #dc3545; font-size: .85rem; display: none; }
.form-error.visible { display: block; }
.form-success {
  background: #d1faf4;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-top: 1rem;
  display: none;
}
.form-success.visible { display: block; }

/* ---- accordion (FAQ) ---- */
.faq-item { border-bottom: 1px solid #e9ecef; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary-dark); transition: transform .2s; flex-shrink: 0; }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 1.1rem; line-height: 1.7; color: #495057; }
.faq-answer.open { display: block; }

/* ---- breadcrumbs ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .6rem 0;
  font-size: .875rem;
  color: #6c757d;
  list-style: none;
  margin: 0;
}
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; color: #adb5bd; }
.breadcrumb a { color: var(--primary-dark); }

/* ---- footer ---- */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid #dee2e6;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #6c757d; transition: color .2s; font-size: .95rem; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-contact-line { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #6c757d; margin-bottom: .5rem; }
.footer-contact-line a { color: #6c757d; }
.footer-bottom { border-top: 1px solid #dee2e6; padding-top: 1.25rem; text-align: center; font-size: .875rem; color: #6c757d; }

/* ---- cookie banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -3px 18px rgba(0,0,0,.1);
  padding: 1.1rem 1.25rem;
  z-index: 9999;
  display: none;
}
#cookie-banner.shown { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-text { flex: 1; min-width: 200px; font-size: .9rem; }
.cookie-text a { color: var(--primary-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1.2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  min-height: 44px;
  min-width: 44px;
}
.btn-cookie-reject {
  background: transparent;
  color: #6c757d;
  border: 1px solid #ced4da;
  border-radius: var(--radius);
  padding: .5rem 1.2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  min-height: 44px;
  min-width: 44px;
}
.btn-cookie-prefs {
  background: transparent;
  color: var(--primary-dark);
  border: none;
  padding: .5rem .75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  text-decoration: underline;
  min-height: 44px;
  min-width: 44px;
}
.prefs-panel {
  display: none;
  margin-top: 1rem;
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
  width: 100%;
}
.prefs-panel.open { display: block; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid #f1f3f5;
}
.pref-row:last-child { border-bottom: none; }
.pref-row label { font-weight: 600; font-size: .9rem; }
.pref-row p { margin: .2rem 0 0; font-size: .8rem; color: #6c757d; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ced4da;
  border-radius: 26px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: .6; cursor: not-allowed; }

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--primary);
  color: var(--text-dark);
  padding: .5rem 1rem;
  font-weight: 600;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- misc ---- */
.text-muted { color: #6c757d; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.rounded-lg { border-radius: var(--radius); }
.img-fluid { max-width: 100%; height: auto; display: block; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.divider { border: none; border-top: 1px solid #e9ecef; margin: 3rem 0; }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 6rem 1.25rem; }
.error-code { font-size: 6rem; font-weight: 700; color: var(--primary); line-height: 1; }

/* ---- print ---- */
@media print {
  .site-header, .site-footer, #cookie-banner, .btn-primary, .btn-nav { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
