/* =============================
   CSS RESET & NORMALIZE
============================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #212529;
  background: #F7F7FA;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #183153;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; }
p, ul, ol, li { color: #27334B; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin-left: 1.25em; }
li { margin-bottom: 8px; }
a { color: #183153; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F6B10A; }

/* =============================
   BRANDING COLORS (Luxury)
============================= */
:root {
  --primary: #183153;
  --secondary: #F6B10A;
  --accent: #fff;
  --background: #F7F7FA;
  --text-dark: #212529;
  --text-light: #fff;
  --card-bg: #fff;
  --border-gold: #E5C674;
  --shadow: 0 4px 24px rgba(24,49,83,0.08);
  --radius: 14px;
}


/* =============================
   LAYOUT CONTAINERS
============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* Card containers for flex layouts */
.card-container,
.machine-cards,
.machine-grid,
.feature-grid,
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .machine-card, .blog-post, .testimonial-card, .feature-item, .machine-category { 
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover, .machine-card:hover, .blog-post:hover, .machine-category:hover {
  box-shadow: 0 6px 32px rgba(24,49,83,0.16);
  transform: translateY(-4px) scale(1.015);
}

.card-container > *,
.machine-cards > *,
.machine-grid > *,
.feature-grid > *,
.post-grid > * {
  min-width: 260px;
  flex: 1 1 300px;
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow .25s, border .2s;
}
.feature-item:hover {
  box-shadow: 0 8px 34px rgba(24,49,83,0.12);
  border-color: var(--secondary);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 400px;
  min-width: 240px;
  text-align: center;
  color: #212529;
}
.testimonial-name {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
}

/* =============================
   HEADER/NAVIGATION (Desktop)
============================= */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(24,49,83,0.09);
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.logo img { height: 48px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .22s;
  border-radius: 1px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 34px;
  border-radius: 24px;
  font-size: 1.13rem;
  text-align: center;
  box-shadow: 0 2px 18px rgba(24,49,83,0.06);
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  margin-left: 16px;
  transition: background .22s, color .22s, box-shadow .22s, border .22s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 18px rgba(24,49,83,0.06);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 22px rgba(246,177,10,0.16);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--secondary);
}

/* =============================
   MOBILE MENU
============================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary);
  font-size: 2.1rem;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  z-index: 110;
  transition: color .19s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
}
/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,49,83,0.98);
  z-index: 999;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 16px 0 16px;
  transition: transform .34s cubic-bezier(.77,0,.175,1);
  transform: translateX(-100%);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  margin-bottom: 36px;
  cursor: pointer;
  transition: color .19s;
  z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 0;
  border-radius: 6px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 860px) {
  .btn-primary {
    padding: 12px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .btn-primary { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0;
    justify-content: space-between;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    padding: 22px 8px 0 8px;
  }
}

/* =============================
   HERO Section
============================= */
.hero {
  background: linear-gradient(120deg, #fff 65%, #F6B10A16 100%);
  padding: 60px 0 48px 0;
}
.hero .headline, .hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  color: #183153;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}
.hero .subheadline, .hero p.subheadline {
  color: #5F6785;
  font-size: 1.18rem;
  margin-bottom: 28px;
  margin-top: 3px;
  max-width: 570px;
}

/* =============================
   SERVICE & FEATURE LISTS
============================= */
.service-list,
.feature-list,
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 14px;
  margin-bottom: 28px;
}
.service-list li, .feature-list li, .steps-list li {
  background: #fff;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 20px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}
.steps-list {
  counter-reset: steps;
}
.steps-list li {
  position: relative;
  margin-left: 12px;
  border-left: 4px solid var(--primary);
}
.steps-list li h3 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}


/* =============================
   BLOG/CATALOG CARDS
============================= */
.machine-category, .machine-card, .blog-post {
  border: 1.5px solid var(--border-gold);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow .21s, border-color .18s;
}
.machine-card:hover, .machine-category:hover, .blog-post:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 40px rgba(24,49,83,0.14);
}
.blog-categories-filter {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.blog-categories-filter a {
  color: var(--primary);
  font-weight: 600;
  border-radius: 18px;
  font-size: 1rem;
  padding: 8px 20px;
  border: 2px solid #eee;
  background: #fff;
  transition: background .12s, color .12s, border .14s;
}
.blog-categories-filter a:hover, .blog-categories-filter a:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

/* =============================
   SEARCH & FILTERS
============================= */
.search-filter {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}
.search-filter input[type="text"] {
  width: 100%;
  padding: 13px 22px;
  border-radius: 30px;
  border: 1.5px solid var(--border-gold);
  outline: none;
  font-size: 1.1rem;
  background: #fff;
  color: #183153;
  transition: border .17s;
}
.search-filter input[type="text"]:focus {
  border-color: var(--secondary);
}

/* =============================
   CATALOG/MAINTENANCE INFO
============================= */
.certifications,
.maintenance-info {
  background: #f7f5f0;
  border: 1px solid #eae3d3;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
  color: #183153;
  font-size: 1rem;
}
.certifications img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}

/* =============================
   CTA SECTION
============================= */
.section .btn-primary, .section .btn-secondary {
  margin-top: 18px;
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 44px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #FAF7EF;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  padding: 4px 0;
  opacity: 0.82;
  transition: color .15s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
}
.footer-contact p {
  color: var(--text-light);
}
.footer-contact img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  height: 18px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =============================
   CONTACT INFO & MAP
============================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 13px 13px 18px;
  box-shadow: 0 2px 12px rgba(24,49,83,0.06);
}
.contact-info strong { color: var(--primary); }
.contact-info img { height: 22px; margin-right: 8px; vertical-align: middle; }
.google-map-placeholder {
  background: #ebb33b12;
  color: #5a581a;
  padding: 22px 14px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 1rem;
}

/* =============================
   CONFIRMATION/POLICY PAGES
============================= */
.confirmation-message, .next-steps {
  background: #fff;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 18px 20px;
}

/* =============================
   MODAL & OVERLAY STYLES (cookie banner)
============================= */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #fff;
  box-shadow: 0 -4px 22px rgba(24,49,83,0.13);
  border-top: 2.5px solid var(--secondary);
  padding: 26px 24px 16px 24px;
  z-index: 1200;
  transition: transform .38s;
  width: 100%;
  max-width: 520px;
  border-radius: 15px 15px 0 0;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0%);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-banner-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 9px;
}
.cookie-banner .cookie-banner-text {
  color: #293052;
  line-height: 1.6;
  margin-bottom: 15px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  border: none;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 28px;
  cursor: pointer;
  transition: background .19s, color .18s, box-shadow .12s;
}
.cookie-banner .btn-accept {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .btn-reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid #D4D4D4;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #ebebeb;
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,49,83,0.78);
  z-index: 1250;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeInBg .23s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 17px;
  max-width: 430px;
  width: 94vw;
  padding: 34px 22px 22px 22px;
  box-shadow: 0 8px 36px rgba(24,49,83,0.20);
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal-category span {
  font-size: 1rem;
  color: #3d4050;
  font-weight: 500;
}
.cookie-switch {
  appearance: none;
  background: #d3d3d3;
  width: 38px; height: 22px;
  border-radius: 15px;
  position: relative;
  transition: background .17s;
  outline: none;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--secondary);
}
.cookie-switch:disabled {
  background: #e5e5e5;
  cursor: not-allowed;
}
.cookie-switch::before {
  content: '';
  display: block;
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(24,49,83,0.08);
  transition: left .2s;
}
.cookie-switch:checked::before {
  left: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #183153;
  cursor: pointer;
  z-index: 10;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}

/* =============================
   SPACING SYSTEM
============================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   TYPOGRAPHY
============================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

h1, .headline { font-size: 2.2rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
h2 { font-size: 1.52rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
h3 { font-size: 1.12rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; color: #183153; }
h4, h5, h6 { font-family: 'Montserrat', Arial, sans-serif; color: #314164; }
.section h2 { font-size: 2rem; }

p, .section p, ul li, ol li, .feature-item p { font-family: 'Roboto', Arial, sans-serif; color: #27334B; font-size: 1rem; letter-spacing: 0.01em; }

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 1100px) {
  .container { max-width: 960px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 768px) {
  body { font-size: 15.2px; }
  h1, .headline { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .footer-brand img { height: 32px; }
  .footer-contact { font-size: .97rem; }
  .section { padding: 28px 5px; }
  .content-wrapper { gap: 15px; }

  .content-grid, .card-container, .machine-cards, .machine-grid, .feature-grid, .post-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 80vw;
    font-size: .97rem;
    padding: 15px;
    gap: 14px;
  }
  .feature-item,
  .card,
  .machine-card,
  .blog-post,
  .machine-category {
    padding: 18px 12px;
  }
  .machine-category {
    min-width: 180px;
  }
  .search-filter input[type="text"] {
    padding: 10px 11px;
  }
  .mobile-menu {
    max-width: 100vw;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .footer-brand, .footer-nav, .footer-contact {
    font-size: .92rem;
  }
}
@media (max-width: 430px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .content-wrapper { gap: 8px; }
  .cookie-banner { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 380px) {
  .cookie-banner { max-width: 99vw; }
}

/* =============================
   MICRO-INTERACTIONS
============================= */
a, .btn-primary, .btn-secondary, .cookie-banner .btn, .mobile-menu-toggle, .mobile-menu-close, .footer-nav a {
  transition: background .18s, color .18s, box-shadow .18s, border .16s, opacity .17s, transform .19s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(.97);
}

/* =============================
   UTILITY
============================= */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }

/* =============================
   END CSS
============================= */
