/* ===========================
  MetaPrisma Rente | Luxury Premium Brand Stylesheet
  (c) 2024 | Developed by Web Professional
============================= */

/* ===== CSS RESET & 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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  background: #F4F7F9;
  color: #204052;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 1.25em;
}
a {
  color: #204052;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E8A735;
}
*::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}
*::-webkit-scrollbar-thumb {
  background: #d8bf8c;
  border-radius: 4px;
}

:root {
  --brand-primary: #204052;
  --brand-secondary: #F4F7F9;
  --brand-accent: #E8A735;
  --brand-light: #fff;
  --brand-dark: #1a2c38;
  --gold-gradient: linear-gradient(90deg, #E8A735 40%, #efd481 100%);
  --border-radius-lg: 18px;
  --border-radius-md: 12px;
  --border-radius-sm: 7px;
  --box-shadow-card: 0 6px 30px rgba(32, 64, 82, 0.10);
  --box-shadow-hover: 0 12px 40px rgba(232, 167, 53, 0.06);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #204052;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 22px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
}
.subtitle {
  font-size: 1.22rem;
  color: #45616e;
}
p, ul, ol, address {
  color: #204052;
  font-size: 1rem;
  margin-bottom: 1em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.small {
  font-size: 0.92rem;
  color: #526676;
}
strong, b {
  font-weight: 700;
  color: #204052;
}

/* ===== CONTAINERS & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 28px 26px 28px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 1px solid #ede7dc;
}
.card:hover, .card:focus-within {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-4px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  box-shadow: 0 3px 18px rgba(32, 64, 82, 0.10);
  border-left: 4px solid var(--brand-accent);
  max-width: 670px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.testimonial-card p {
  font-size: 1.02rem;
  color: #1a2c38;
  margin-right: 12px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #a07c23;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(232, 167, 53, 0.08);
  transform: translateY(-4px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--brand-primary);
  color: #fff;
  padding: 56px 0 56px 0;
  margin-bottom: 0;
  position: relative;
}
.hero .container {
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: center;
  gap: 30px;
}
.hero h1 {
  color: #fff;
}
.hero .subtitle {
  color: #e9e9e9;
  font-size: 1.21rem;
}
.hero .btn-primary {
  background: var(--gold-gradient);
  color: #204052;
  font-weight: bold;
  border: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--gold-gradient);
  color: #204052;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: 0 1px 8px rgba(232, 167, 53, 0.06);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.14s, box-shadow 0.17s;
  outline: none;
  text-shadow: 0 1px 2px #fff8e3;
  text-decoration: none;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  color: #fff;
  background: #E8A735;
  box-shadow: 0 6px 24px rgba(32, 64, 82, 0.09);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  padding: 10px 22px;
  background: #fff;
  color: #E8A735;
  border: 2px solid #E8A735;
  border-radius: var(--border-radius-sm);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #E8A735;
  color: #fff;
}
.btn-tertiary {
  padding: 10px 22px;
  background: transparent;
  color: #204052;
  border: 2px solid #d8bf8c;
  border-radius: var(--border-radius-sm);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #f6e9c8;
  color: #204052;
}
a.btn-primary, a.btn-secondary, a.btn-tertiary {
  text-align: center;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(32,64,82,0.04);
  z-index: 99;
  min-height: 72px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: 27px;
}
.brand img {
  height: 36px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #204052;
  position: relative;
  padding: 5px 3px;
  transition: color 0.14s;
}
nav a:hover, nav a:focus {
  color: #E8A735;
}
nav a.active {
  border-bottom: 2px solid #E8A735;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid #e2e4ea;
  background: #fff;
  padding: 44px 0 24px 0;
  margin-top: 60px;
  font-size: 1rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 16px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-links a {
  color: #526676;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #E8A735;
}
.footer-meta {
  font-size: 0.97rem;
  color: #7a8695;
}
/* ====== UTILITIES & COMPONENTS ====== */
.quick-links {
  margin-top: 20px;
}
.quick-links a {
  color: #E8A735;
  font-weight: 600;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
}
.privacy-hint {
  margin-top: 10px;
}
.infobox {
  background: #fff8e3;
  border-left: 4px solid #E8A735;
  padding: 18px 22px;
  border-radius: var(--border-radius-md);
  color: #204052;
  font-size: 1.05rem;
}
.map-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e3e6ea;
  border-radius: var(--border-radius-md);
  min-height: 140px;
  margin-bottom: 0;
}
.articles-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.articles-list > div, .services-list > div, .services-grid > div {
  background: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 8px rgba(32,64,82,0.08);
  border: 1px solid #ede7dc;
  padding: 26px 22px 22px 22px;
  flex: 1 1 320px;
  min-width: 250px;
}
.articles-list > div:hover, .services-list > div:hover,
.services-grid > div:hover {
  box-shadow: var(--box-shadow-hover);
  border-color: #E8A735;
  transform: translateY(-2px);
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.services-grid h3, .services-list h2 {
  color: #204052;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.services-grid span, .services-list span {
  color: #E8A735;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  margin-top: 8px;
  display: inline-block;
}
.workflow, .timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.workflow ol {
  margin-left: 18px;
  font-size: 1.06rem;
}
.timeline ul {
  margin-left: 17px;
  font-size: 1.01rem;
}

/* ===== FORM ELEMENTS ===== */
input, textarea, select, button {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #d8bf8c;
  padding: 12px 15px;
  margin-bottom: 16px;
  background: #fff;
  color: #204052;
  outline: none;
  transition: border 0.14s, box-shadow 0.14s;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: #E8A735;
  box-shadow: 0 0 0 2px #ffecbe;
}
label {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #204052;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ===== MOBILE NAV MENU ===== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-family: inherit;
  color: #E8A735;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 14px;
  margin-left: 24px;
  border-radius: 50%;
  transition: background 0.08s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fff8e3;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(32,64,82,0.20);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.32,.72,.45,1.37);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 20px 28px;
  gap: 16px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #204052;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 25px;
  z-index: 211;
  border-radius: 50%;
  padding: 8px 13px;
  transition: background 0.09s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff8e3;
  color: #E8A735;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.10rem;
  color: #204052;
  padding: 10px 0;
  border-radius: 7px;
  transition: color 0.12s, background 0.14s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E8A735;
  background: #fff6dc;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffaf2;
  color: #204052;
  box-shadow: 0 -3px 28px rgba(32,64,82,0.13);
  z-index: 450;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  gap: 30px;
  font-size: 1rem;
  transition: transform 0.28s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  min-width: 110px;
}
.cookie-banner .btn-primary {
  padding: 11px 19px;
  font-size: 1rem;
}
.cookie-banner .btn-secondary, .cookie-banner .btn-tertiary {
  padding: 9px 17px;
  font-size: .97rem;
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 500;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,64,82,0.53);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.16s;
}
.cookie-modal-backdrop.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  color: #204052;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 48px rgba(32,64,82,0.17);
  padding: 39px 30px 32px 30px;
  min-width: 280px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalIn .36s cubic-bezier(.17,.67,.39,1.32);
}
@keyframes cookieModalIn {
  0% { transform: translateY(60px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #E8A735;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category label {
  margin: 0;
}
.cookie-category input[type=checkbox] {
  accent-color: #E8A735;
  width: 18px;
  height: 18px;
  margin-right: 7px;
}
.cookie-category.essential input {
  accent-color: #204052;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  width: 100%;
  margin-top: 8px;
}

/* ===== SPACING AND FLEXBOX ===== */
@media (max-width: 1024px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
  .card, .services-grid > div, .services-list > div,
  .articles-list > div {
    padding: 20px 14px 18px 14px;
  }
  .container {
    padding: 0 10px;
  }
  .footer-links {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  .section {
    padding: 22px 0;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .articles-list, .services-list, .services-grid {
    gap: 16px;
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 13px 9px;
    min-width: 0;
  }
  .footer-links {
    flex-direction: column;
    gap: 4px;
  }
  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .footer-meta {
    margin-top: 14px;
  }
  .hero {
    padding: 30px 0 28px 0;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
  .quick-links {
    margin-top: 12px;
  }
  nav {
    display: none;
  }
  .brand {
    margin-right: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  h1 { font-size: 1.42rem; margin-bottom: 12px; }
  h2 { font-size: 1.09rem; margin-bottom: 9px; }
  .card, .services-grid > div, .services-list > div, .articles-list > div {
    min-width: 0;
    flex: 1 1 100%;
    padding: 12px 5px 14px 5px;
  }
  .footer-brand img {
    width: 36px;
    height: 36px;
  }
  .cookie-modal {
    min-width: 0;
    max-width: 94vw;
    padding: 17px 7vw 15px 7vw;
  }
}

/* ===== SCREEN-READER / ACCESSIBILITY ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ===== MICRO INTERACTIONS / EFFECTS ===== */
a, button, .btn-primary, .btn-secondary, .btn-tertiary {
  transition: color 0.16s, background 0.18s, border 0.17s, box-shadow 0.17s, transform 0.16s;
}
.card, .testimonial-card, .services-grid > div, .articles-list > div {
  transition: box-shadow 0.22s, border 0.19s, transform 0.21s;
}
input, textarea, select {
  transition: border 0.12s, box-shadow 0.13s;
}

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