/* RESET AND BASE STYLES */
:root {
  --color-primary: #1C2A40;
  --color-secondary: #F5A623;
  --color-accent: #F3F7FA;
  --color-light: #fff;
  --color-dark: #212436;
  --color-grey: #dee4ec;
  --color-focus: #163366;
  --color-danger: #e63946;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 36px;
  --shadow-xs: 0 0.5px 2px rgba(28, 42, 64, 0.05);
  --shadow-md: 0 3px 18px rgba(28, 42, 64, 0.08);
  --shadow-lg: 0 9px 48px rgba(30, 39, 66, 0.13);
  --transition: 0.18s cubic-bezier(.68,-0.55,.27,1.55);
  --transition-fast: 0.10s linear;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-bold: 700;
  --font-med: 600;
  --font-reg: 400;
}

/* CSS RESET */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-accent);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-primary); }
ul, ol { padding-left: 22px; margin-bottom: 18px; }
li { margin-bottom: 8px; }
pre, code { font-family: 'Fira Mono', monospace; font-size: 92%; }

/* TYPOGRAPHY BOLD/MODERN */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  margin-bottom: 18px;
  line-height: 1.13;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1.1rem; font-weight: var(--font-med); }
p { margin-bottom: 18px; }
.text-section p { margin-bottom: 12px; }

@media (min-width: 650px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.6rem; }
  body { font-size: 17px; }
}
@media (min-width: 992px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.8rem; }
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER */
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px 18px;
}
header img {
  height: 38px;
  margin-right: 22px;
}
.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: var(--font-med);
}
.main-nav a {
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: var(--font-bold);  
  font-size: 1rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 7px 0;
  margin-right: 8px;
  transition: color var(--transition);
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  margin-left: 10px;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.07rem;
  text-transform: uppercase;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  letter-spacing: 1px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.04);
}

/* BURGER */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  z-index: 115;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* MOBILE MENU OVERLAY*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 28px 36px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2rem;
  margin-bottom: 27px;
  margin-left: 2px;
  align-self: flex-end;
  cursor: pointer;
  padding: 0 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff3e6;
  color: var(--color-danger);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: 1.23rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 4px;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.07);
}

/* MAIN LAYOUT & HERO */
main {
  width: 100%;
  min-height: calc(100vh - 100px);
}
.hero-section {
  background: var(--color-accent);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 0;
  width: 100%;
}
.hero-section .container { padding-top: 44px; padding-bottom: 44px; }
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 600px) {
  .hero-section .container { padding-top: 64px; padding-bottom: 64px; }
  .content-wrapper { gap: 30px; }
}
.hero-section h1 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  margin-bottom: 24px;
  text-shadow: var(--shadow-xs);
}
.hero-section p {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 32px;
  font-weight: var(--font-med);
}

@media (min-width: 900px) {
  .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .hero-section .content-wrapper { flex-direction: column; align-items: flex-start; }
}

/* SECTIONS, CARD AND SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 28px 26px;
  min-width: 265px;
  max-width: 388px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.025);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.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: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 22px rgba(28,42,64,0.10);
  margin-bottom: 22px;
  flex: 1 1 320px;
  max-width: 490px;
  min-width: 270px;
}
.testimonial-quote {
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: var(--font-med);
  position: relative;
  letter-spacing: 0.01em;
}
.testimonial-author {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  font-weight: var(--font-bold);
  margin-left: 3px;
  opacity: 0.93;
}

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

/* FEATURE GRID for homepage/product/guide/contacts */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 30px 20px 22px 20px;
  min-width: 230px;
  flex: 1 1 260px;
  max-width: 378px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: var(--shadow-lg);
  transform: scale(1.03) translateY(-4px);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
}

/* TEXT SECTIONS, UL, ETC */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
  padding: 10px 8px;
  font-size: 1rem;
}
.text-section ul { margin-bottom: 10px; }
.text-section li {
  list-style: disc inside;
  font-weight: var(--font-med);
  margin-bottom: 7px;
}

/* Buttons and Links */
button, input[type="button"], input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  font-size: 1rem;
  padding: 44px 0 34px 0;
  width: 100%;
  box-shadow: 0px -2px 15px 0px rgba(0,0,0,0.03);
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: row
}
.footer-logo img {
  height: 38px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-med);
  opacity: 0.87;
  transition: color var(--transition), opacity var(--transition);
  text-decoration: underline 2px rgba(245,166,35,0);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-light);
  opacity: 1;
  text-decoration: underline 2px var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 6px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 17px; height: 17px; vertical-align: middle; margin-right: 9px;
  margin-bottom: -2px;
}
.footer-contact span { margin-right: 9px; }

/* --- Key Responsive Styles --- */
@media (max-width: 1200px) {
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .hero-section .container {
    padding-top: 28px; padding-bottom: 28px;
  }
  .footer-nav { gap: 12px; }
  .mobile-menu-toggle { display: inline-flex !important; }
  .feature-grid { flex-direction: column; gap: 22px; align-items: stretch; }
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
  .testimonial-card { min-width: 0; max-width: 100%; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: center; }
  .section { padding: 24px 4px; margin-bottom: 42px; }
}
@media (min-width: 769px) {
  .main-nav {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Extra Spacing Rules */
.section + .section, .section + footer, .content-wrapper + .section {
  margin-top: 60px !important;
}
.card + .card, .feature-grid > div + div {
  margin-top: 0;
}

/* Focus styles for accessibility */
a:focus, button:focus, .btn-primary:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Utilities */
.text-center { text-align: center; }
.bold { font-weight: var(--font-bold); }
.uppercase { text-transform: uppercase; }
.bg-accent { background: var(--color-accent) !important; }
.bg-secondary { background: var(--color-secondary) !important; color: var(--color-primary)!important; }
.shadow {
  box-shadow: var(--shadow-md);
}
.rounded { border-radius: var(--radius-md); }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 1500;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-body);
  padding: 30px 12px 24px 16px;
  box-shadow: 0 -2px 30px 0 rgba(28,42,64,0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: cookie-slide-up 0.5s var(--transition) 1;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1.1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .btn-cookie {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 9px 25px;
  border-radius: var(--radius-md);
  font-weight: var(--font-bold);
  border: none;
  margin-right: 6px;
  margin-bottom: 0;
  min-width: 120px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner .btn-cookie.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2.5px solid var(--color-secondary);
}
.cookie-banner button:hover, .cookie-banner .btn-cookie:hover, .cookie-banner button:focus, .cookie-banner .btn-cookie:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: scale(1.04);
}
.cookie-banner .btn-cookie.settings:hover, .cookie-banner .btn-cookie.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(28,42,64,0.84);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: cookie-modal-fadein 0.32s var(--transition) 1;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px 34px 30px;
  min-width: 310px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .modal-close:hover { color: var(--color-danger); }
.cookie-modal ul {
  list-style: none;
  margin-bottom: 6px; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal label {
  font-family: var(--font-body);
  font-weight: var(--font-med);
  font-size: 1.06rem;
  color: var(--color-primary);
  margin-left: 9px;
}
.cookie-modal .toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal .toggle-switch {
  width: 38px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-grey);
  border-radius: 22px;
  transition: background var(--transition-fast);
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: var(--color-secondary);
}
.cookie-modal .toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--color-light);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 11px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-modal { padding: 20px 8px 18px 8px; min-width: 0; }
}

/* Hide by default for accessibility */
.cookie-banner, .cookie-modal-overlay { display: none; }
.cookie-banner.show { display: flex; }
.cookie-modal-overlay.show { display: flex; }

/* Accessibility: hide visually (e.g. for categories always enabled) */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* --- Animations & Micro-Interactions --- */
.card, .feature-grid > div, .testimonial-card, .btn-primary {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}
.card:active, .feature-grid > div:active, .btn-primary:active {
  transform: scale(.99) translateY(1px);
}

/* --- Other Utility/Helpers --- */
.mt-3 { margin-top: 30px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-4 { margin-bottom: 40px !important; }
.w-100 { width: 100%!important; }
.mx-auto { margin-left: auto!important; margin-right: auto!important; }

/* Print Styles */
@media print {
  header, footer, .btn-primary, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
