/*=================================================================
  CSS RESET & NORMALIZE
==================================================================*/
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,
b, 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;
}
body {
  background: #fff;
  color: #232323;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: outside;
  margin-left: 1.25em;
  margin-bottom: 1.5em;
}
strong, b {
  font-weight: 600;
}

/*=================================================================
  MONOCHROME_SOPHISTICATED COLOR SYSTEM
  (using brand primaries & elegant grayscale)
==================================================================*/
:root {
  --primary: #2C3C54;
  --secondary: #e6e9eb;
  --accent: #f29b2e;
  --gray-100: #FAFAFA;
  --gray-200: #F5F6F7;
  --gray-300: #E6E9EB;
  --gray-400: #C2C7CC;
  --gray-500: #8A939B;
  --gray-700: #4B535A;
  --gray-900: #222629;
  --white: #fff;
  --black: #18191A;
  --danger: #DC3545;

  --drop-shadow: 0 4px 16px rgba(44, 60, 84, 0.10);
  --radius: 10px;
}

/*==================================================================
  TYPOGRAPHY (elegant, monochrome, clear)
===================================================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 0.75em; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 0.7em; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.5em; }
h4 { font-size: 1.1rem; margin-bottom: 0.5em; }
h5, h6 { font-size: 1rem; }

p, li, label, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
}
p, li {
  color: var(--gray-900);
  font-size: 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Text highlight monochrome accent */
mark, .highlight {
  background: var(--accent);
  color: var(--primary);
  padding: 0 0.2em;
  border-radius: 3px;
}

/*=================================================================
  CONTAINER, SECTIONS & SPACING STRUCTURE
==================================================================*/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  margin-bottom: 28px;
}

/*=================================================================
  FLEXBOX LAYOUTS (all critical layout containers)
==================================================================*/
.features-grid, .card-container, .card-grid, .services-list, .blog-list, .catalog-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-card, .card, .service-item, .blog-post-preview, .testimonial-card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.feature-card:hover,
.card:hover,
.blog-post-preview:hover,
.service-item:hover {
  box-shadow: 0 8px 32px rgba(44,60,84,0.15);
  transform: translateY(-3px) scale(1.01);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  margin-bottom: 20px;
  border-left: 5px solid var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 24px 0 0 0;
  font-size: 0.98rem;
}
.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--gray-500);
}

/*=================================================================
  BUTTONS & LINKS (primary, secondary, accent)
==================================================================*/
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 8px;
  padding: 0.8em 1.8em;
  cursor: pointer;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.14s;
  box-shadow: 0 2px 12px rgba(44,60,84,0.08);
  margin-top: 12px;
  margin-bottom: 12px;
  outline: none;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--black);
  border-color: var(--black);
  color: var(--accent);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.02);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border: 2px solid var(--danger);
}
.btn-danger:hover, .btn-danger:focus {
  background: #a41e2a;
  border-color: #a41e2a;
}
a.btn-primary, a.btn-secondary {
  text-decoration: none;
}

/* Inline links in text */
a {
  color: var(--primary);
  text-decoration: underline dotted;
  transition: color 0.17s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.footer-nav a {
  margin-right: 20px;
  font-size: 1rem;
  color: var(--gray-700);
  text-decoration: underline;
}
.footer-nav a:last-child {
  margin-right: 0;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary);
  text-decoration: underline solid;
}

/*=================================================================
  HEADER, NAVIGATION & MOBILE MENU
==================================================================*/
header {
  background: var(--white);
  border-bottom: 2px solid var(--gray-300);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(44,60,84,0.045);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  position: relative;
}
.main-nav > a img {
  height: 40px;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav ul li {
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.89;
  padding: 6px 0 6px 0;
  position: relative;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: var(--accent);
  opacity: 1;
}

/* Desktop hide/show for buttons */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  margin-left: 12px;
  cursor: pointer;
  z-index: 101;
  line-height: 1;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: var(--accent);
}

/* MOBILE NAV MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(44,60,84,0.98);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100vw);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.62,0,.56,1), opacity 0.3s;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin: 22px 22px 0 0;
  font-size: 2.2rem;
  background: none;
  color: var(--accent);
  border: none;
  cursor: pointer;
  align-self: flex-end;
  z-index: 2000;
  transition: color 0.17s;
}
.mobile-menu-close:focus {
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 40px 20px;
  margin-top: 40px;
  background: none;
}
.mobile-nav a {
  font-size: 1.4rem;
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Show/hide main nav & burger */
@media (max-width: 1024px) {
  .main-nav ul,
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 32px 10px;
    margin-bottom: 44px;
  }
  .text-section {
    padding: 20px 10px;
  }
  .main-nav {
    padding: 10px 10px;
  }
}

/*=================================================================
  FOOTER
==================================================================*/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0 28px 0;
  border-top: 7px solid var(--accent);
  box-shadow: 0 -2px 16px rgba(44,60,84,0.05);
}
footer .container {
  max-width: 1100px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
footer img {
  width: 70px;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-contact {
  font-size: 0.96rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
footer a {
  color: var(--accent);
  text-decoration: underline dotted;
  transition: color 0.18s;
}
footer a:hover { color: var(--white); text-decoration: underline solid; }

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

/*==================================================================
  FORM ELEMENTS & INPUTS
===================================================================*/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--gray-300);
  background: var(--gray-200);
  color: var(--gray-900);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
input::placeholder, textarea::placeholder {
  color: var(--gray-500);
  opacity: 1;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}
label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.newsletter-signup input[type="email"] {
  flex: 2 1 220px;
  min-width: 180px;
}
.newsletter-signup button {
  flex: 1 1 110px;
}

/* SEARCH */
.catalog-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 10px;
}
.catalog-search input {
  width: 100%;
}

/* CATEGORY FILTERS */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.category-filters strong {
  color: var(--primary);
}
.category-filters .filter {
  color: var(--primary);
  padding: 5px 13px;
  background: var(--gray-200);
  border-radius: 100px;
  border: none;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.category-filters .filter:hover, .category-filters .filter.active {
  background: var(--primary);
  color: var(--white);
}

/* FORM/FAQ/ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--gray-200);
  border-left: 5px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px 14px 20px;
  margin-bottom: 8px;
  transition: background 0.14s;
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: var(--primary);
  cursor: pointer;
}
.faq-item p {
  margin: 0;
  color: var(--gray-900);
}
.contact-prompt {
  margin: 16px 0 0 0;
  font-size: 1.04em;
}
.contact-prompt a {
  font-weight: bold;
  color: var(--accent);
}

/*==================================================================
  SPECIAL ELEMENTS (CARDS, LISTS, TESTIMONIALS)
===================================================================*/
/* Pricing */
.price {
  color: var(--accent);
  font-size: 1.1em;
  font-weight: 700;
  margin-left: 8px;
}
/* Testimonials - as distinctive cards */
.testimonial-card {
  color: var(--primary);
  font-size: 1.05rem;
  background: var(--gray-100);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.testimonial-card p {
  color: var(--gray-900);
  font-style: italic;
  font-size: 1.07em;
  margin-bottom: 7px;
}
.testimonial-card span {
  color: var(--gray-700);
  font-style: normal;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Blog list style */
.blog-list {
  margin-bottom: 28px;
}
.blog-post-preview {
  background: var(--white);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius);
  box-shadow: var(--drop-shadow);
  min-width: 250px;
  flex: 1 1 270px;
}

/* Services list (on services.html and catalogo) */
.services-list, .catalog-listings {
  gap: 24px;
}
.service-item {
  background: var(--white);
  box-shadow: var(--drop-shadow);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  flex: 1 1 270px;
  border-left: 4px solid var(--gray-400);
  transition: border-color 0.16s, box-shadow 0.17s;
}
.service-item:hover {
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 18px rgba(44,60,84,0.15);
}
.service-item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.1em;
  color: var(--primary);
}
.service-item p {
  color: var(--gray-700);
}

/*==================================================================
  RESPONSIVE & FLEXBOX ADJUSTMENTS
===================================================================*/
@media (max-width: 900px) {
  .features-grid,
  .services-list,
  .blog-list,
  .catalog-listings,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper,
  .content-grid {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .testimonial-card,
  .feature-card,
  .service-item,
  .blog-post-preview {
    padding: 12px 9px;
  }
}

/* Ensure no overlapping */
.card, .feature-card, .blog-post-preview, .testimonial-card, .service-item {
  margin-right: 0;
  margin-left: 0;
  min-width: 0;
}

/*==================================================================
  COOKIE CONSENT BANNER & PREFERENCES MODAL
===================================================================*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--gray-900);
  color: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 18px 20px 18px;
  gap: 30px;
  box-shadow: 0 -4px 24px rgba(44,60,84,0.20);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transition: transform 0.38s cubic-bezier(.4, 1, .55, .96), opacity 0.28s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--white);
  margin-right: 20px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-banner .btn-primary {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-weight: 700;
}
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background: #e1891c;
  color: var(--black);
}
.cookie-banner .btn-secondary {
  background: var(--gray-200);
  color: var(--primary);
  border: none;
}
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background: var(--gray-400);
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 19px 5px 13px 5px;
  }
  .cookie-banner .cookie-message {
    margin-right: 0;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3100;
  background: rgba(44,60,84,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .modal-content {
  background: var(--white);
  color: var(--primary);
  min-width: 290px;
  max-width: 98vw;
  padding: 32px 24px 18px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(44,60,84,0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalPopIn 0.38s ease;
}
@keyframes modalPopIn {
  from { transform: translateY(70px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
  font-size: 1.01rem;
}
.cookie-category .always-on {
  color: var(--accent);
  font-size: 0.97em;
  margin-left: 6px;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  font-size: 1.05em;
  padding: 0.7em 1.8em;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.15s;
  z-index: 3200;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: var(--primary);
}

/*==================================================================
  UTILITIES & EXTRA
===================================================================*/
.d-none {
  display: none !important;
}
.d-flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-center {
  align-items: center !important;
  justify-content: center !important;
}
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mb-24 { margin-bottom: 24px; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

/*==================================================================
  ACCESSIBILITY STATES
===================================================================*/
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1;
}

/*==================================================================
  PRINT
===================================================================*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .btn-primary, .btn-secondary { display: none !important; }
  body {
    color: #000;
    background: #fff;
  }
}

/*==================================================================
  SCROLLBAR & OVERRIDES
===================================================================*/
::-webkit-scrollbar { width: 10px; background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 7px; }

/* End of stylesheet */