/* --- RESET AND BASE --- */
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,
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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #253746 0%, #2454A5 100%) no-repeat fixed;
  color: #FCEABB;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #FCEABB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
  outline: none;
}
ul,ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #FCEABB;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #253746;
  padding: 0;
  z-index: 11;
  position: relative;
  box-shadow: 0 4px 16px 0 rgba(27,54,92,0.12);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 18px 18px;
}
header img[alt="Brightfield Guide"] {
  max-height: 40px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #FCEABB;
  letter-spacing: 0.03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.main-nav a:hover,.main-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #3df6ff;
}
.cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #2454A5;
  color: #fff;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 10px 28px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 2px 16px 0 rgba(36,84,165,0.13);
  position: relative;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  margin-left: 20px;
  display: inline-block;
  text-align: center;
}
.cta-primary:hover {
  background: #3df6ff;
  color: #253746;
  box-shadow: 0 4px 24px 0 #3df6ff33;
}

/* --- BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1002;
  background: #2454A5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  box-shadow: 0 2px 16px 0 #3df6ff19;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #3df6ff;
  color: #253746;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24, 36, 53, 0.98);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #2454A5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  z-index: 1002;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #3df6ff;
  color: #253746;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  font-size: 1.25rem;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.21s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #2454A5;
  color: #3df6ff;
}

/* --- HERO SECTION --- */
.hero {
  background: #253746;
  padding: 60px 0 36px;
  margin-bottom: 60px;
  box-shadow: 0 6px 28px 0 rgba(36,84,165,0.11);
  border-bottom-left-radius: 60px 60px;
  border-bottom-right-radius: 60px 60px;
}
.hero h1 {
  color: #3df6ff;
  text-shadow: 0 1px 18px #3df6ff30, 0 1px 0 #15202b;
}
.hero p {
  color: #FCEABB;
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.hero .cta-primary {
  margin-top: 12px;
  font-size: 1.1rem;
}

/* --- SECTIONS & SPACING --- */
.section,
.features,
.services,
.latest-news,
.newsletter-cta,
.news-feed,
.event-list,
.tips-section,
.newsletter-benefits,
.signup-block,
.about,
.team-overview,
.testimonials,
.gdpr-info,
.privacy-policy,
.cookies-policy,
.terms-of-use,
.confirmation {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #253746;
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px 0 #3df6ff14;
  border: 1px solid #2454A5;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #3df6ff;
  box-shadow: 0 4px 48px 0 #3df6ff33, 0 0px 0 #fff;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FAFAFA;
  color: #253746;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 #2454A51a;
  min-width: 260px;
  margin-bottom: 24px;
  border: 2px solid #2454A5;
  font-size: 1.08rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURES/REGIONS CARDS --- */
.features ul, .newsletter-benefits ul, .team-overview ul, .services ul, .tips-section ul, .latest-news ul, .regions-list ul, .event-list ul, .news-feed ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.features ul li,
.newsletter-benefits ul li,
.team-overview ul li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.08rem;
  font-weight: 500;
  background: #1a2632;
  color: #FCEABB;
  padding: 11px 18px;
  border-radius: 14px;
  box-shadow: 0 1px 12px 0 #2454A51c;
  border: 1px solid #2454A5;
}
.features ul li img {
  width: 28px;
  height: 28px;
}

/* --- REGIONS GRID --- */
.regions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0 20px 0;
}
.regions-grid li {
  background: #253746;
  color: #3df6ff;
  padding: 18px 30px;
  border-radius: 18px;
  font-size: 1.11rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-bottom: 0;
  box-shadow: 0 2px 28px 0 #3df6ff17;
  border: 1px solid #2454A5;
  transition: border-color 0.2s, color 0.2s;
}
.regions-grid li:hover {
  border-color: #3df6ff;
  color: #fff;
}

/* --- SERVICES TABLE --- */
table {
  width: 100%;
  background: #1a2632;
  color: #FCEABB;
  border-collapse: collapse;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 #2454A514;
  margin-bottom: 30px;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: #2454A5;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
th, td {
  padding: 18px 16px;
  border-bottom: 1px solid #2454A5;
  text-align: left;
}
th:last-child, td:last-child {
  text-align: right;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #25374633;
}

/* --- NEWS CATEGORIES --- */
.news-categories {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 26px 0 0 0;
}
.news-categories a {
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #3df6ff;
  background: #1a2632;
  padding: 7px 18px;
  border-radius: 12px;
  border: 1px solid #3df6ff;
  font-weight: 500;
  transition: background 0.15s, color 0.18s;
}
.news-categories a:hover,
.news-categories a:focus {
  background: #3df6ff;
  color: #253746;
}

/* --- FORMS & INPUTS --- */
label {
  color: #FCEABB;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
select, input[type="text"], input[type="email"], input[type="password"] {
  background: #fff;
  color: #253746;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #2454A5;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.17s;
}
select:focus, input:focus {
  border-color: #3df6ff;
}

/* --- FOOTER --- */
footer {
  background: #1a2632;
  color: #FCEABB;
  padding: 38px 0 22px 0;
  border-top: 3px solid #2454A5;
  box-shadow: 0 -2px 32px 0 #25374633;
  position: relative;
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-menu a {
  color: #3df6ff;
  font-size: 1.01rem;
  font-weight: 600;
  padding: 2px 0 2px 0;
  transition: color 0.16s;
}
.footer-menu a:hover {
  color: #FCEABB;
}
footer .text-section {
  color: #FCEABB;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-right: 24px;
  max-width: 325px;
}
footer img {
  height: 38px;
  filter: brightness(1.4) saturate(1.1);
  flex-shrink: 0;
}
.footer-copy {
  color: #3df6ff;
  font-size: 0.98rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-top: 12px;
}

/* --- TEXT BLOCKS AND LISTS --- */
.text-section {
  background: #243146;
  color: #FCEABB;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 18px;
  margin-top: 2px;
  box-shadow: 0 2px 8px 0 #1a26321c;
  font-size: 1rem;
}
.text-section strong {
  color: #3df6ff;
}

/* --- PAGE SPECIFIC STYLES --- */
.confirmation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 45vh;
}
.confirmation a.cta-primary {
  margin-top: 20px;
}
.signup-block a.cta-primary {
  margin-top: 10px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #253746;
  color: #fff;
  padding: 20px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1150;
  box-shadow: 0 -4px 32px #2454A533;
  font-family: 'Roboto', Arial, sans-serif;
  border-top: 3px solid #3df6ff;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1.05rem;
  flex: 1;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  background: #2454A5;
  color: #fff;
  margin-left: 0;
  transition: background 0.15s, color 0.16s;
  outline: none;
}
.cookie-btn.accept {
  background: #3df6ff;
  color: #253746;
}
.cookie-btn.reject {
  background: #D23D50;
  color: #FFF;
}
.cookie-btn.settings {
  background: #253746;
  color: #3df6ff;
  border: 1px solid #3df6ff;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.12) saturate(1.25);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(18,30,46,0.89);
  z-index: 1152;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #253746;
  color: #fff;
  border-radius: 20px;
  padding: 32px 24px 22px 24px;
  width: 95vw;
  max-width: 410px;
  box-shadow: 0 8px 44px #3df6ff22, 0 2px 8px #2454A522;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal h3 {
  color: #3df6ff;
  font-size: 1.38rem;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-category {
  background: #243146;
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: #fff;
}
.cookie-modal-category.essential {
  color: #FCEABB;
  font-weight: 700;
}
.cookie-toggle {
  appearance: none;
  width: 32px;
  height: 16px;
  border-radius: 18px;
  background: #2454A5;
  outline: none;
  position: relative;
  transition: background 0.12s;
  margin-left: 16px;
}
.cookie-toggle:checked {
  background: #3df6ff;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2454A5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #3df6ff;
  color: #253746;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .hero, .section, .features, .services, .latest-news, .newsletter-cta, .newsletter-benefits, .signup-block, .about, .team-overview, .testimonials, .gdpr-info, .privacy-policy, .cookies-policy, .terms-of-use, .confirmation {
    padding: 36px 10px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 8px 6px 8px 10px;
  }
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 97vw;
    padding: 0 5vw;
  }
  .regions-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 580px) {
  .hero, .section, .features, .services, .latest-news, .newsletter-cta, .newsletter-benefits, .signup-block, .about, .team-overview, .testimonials, .gdpr-info, .privacy-policy, .cookies-policy, .terms-of-use, .confirmation {
    padding: 24px 4px;
    margin-bottom: 36px;
  }
  .testimonials .testimonial-card, .newsletter-benefits .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .text-section {
    padding: 12px 8px;
    font-size: 0.97rem;
  }
  .footer-copy {
    margin-top: 4px;
  }
  table, th, td {
    font-size: 0.97rem;
    padding: 10px 5px;
  }
}
@media (max-width: 600px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-menu, footer .container {
    flex-direction: column;
    gap: 12px;
  }
}
/* --- FLEXBOX CORRECTNESS: Ensure all wrap/gaps and alignments --- */
.features, .services, .latest-news, .newsletter-cta, .newsletter-benefits, .signup-block, .about, .team-overview, .testimonials, .gdpr-info, .privacy-policy, .cookies-policy, .terms-of-use, .confirmation, .event-list, .tips-section, .regions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- ANIMATIONS --- */
.cta-primary, .cookie-btn, .card, .regions-grid li, .testimonial-card, .features ul li, .main-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, border-color 0.17s;
}
.hero h1, .card, .cta-primary, .newsletter-cta, .features ul li, table {
  /* Glowing neon accent (tech-futuristic) */
  box-shadow: 0 0 24px 0 #3df6ff19, 0 4px 24px 0 #2454A511;
}
.mobile-menu,
.cookie-banner,
.cookie-modal {
  transition: opacity 0.3s, transform 0.3s;
}

/* --- VISUAL HIERARCHY & NEON ACCENTS --- */
/* Special neon border for interactive cards */
.card:after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 13px;
  border: 2px solid #3df6ff22;
  pointer-events: none;
  opacity: 0.77;
}
.card:hover:after {
  border-color: #3df6ff;
  opacity: 0.95;
}

.hero h1, h2, h3 {
  text-shadow: 0 0 19px #3df6ff44, 0 2px 8px #15202b33;
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #b7bad9; }
::-moz-placeholder { color: #b7bad9; }
:-ms-input-placeholder { color: #b7bad9; }
::placeholder { color: #b7bad9; }

[tabindex]:focus, button:focus, a:focus, select:focus, input:focus {
  outline: 2px solid #3df6ff;
  outline-offset: 2px;
}

/* --- DARK TEXT IN TESTIMONIALS (ACCESSIBILITY) --- */
.testimonial-card {
  background: #FAFAFA;
  color: #1E273B;
  border: 2px solid #2454A5;
}
.testimonial-card p { color: #253746; }
.testimonial-card strong { color: #2454A5; }

/* --- OVERRIDES & HIDE UNUSED --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* Hide cookie modal by default, show with .show class */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.show { display: flex; }

/* Utility classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-0 { gap: 0 !important; }

/* --- END OF STYLES --- */
