/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #232B33;
  color: #F4F4F9;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.03em;
  transition: background 0.3s;
}
*,*:before,*:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #D9B08C;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fffbe8;
  text-shadow: 0 0 8px #D9B08C;
}
ul, ol {
  margin: 16px 0;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  letter-spacing: 0.02em;
  color: #F4F4F9;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px #2E4053cc;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem;
}
.subtitle {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #D9B08C;
  margin-bottom: 24px;
  font-weight: 500;
}
p {
  margin-bottom: 1.2em;
  color: #F4F4F9;
}

/* LAYOUT CONTAINERS */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* SECTIONS & SPACING */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* CARD & GRID LAYOUTS */
.card-container,
.feature-grid,
.service-list,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #263241;
  border-radius: 18px;
  box-shadow: 0 2px 32px #2E405366;
  padding: 28px 24px;
  flex: 1 1 270px;
  min-width: 260px;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover, .card:focus {
  background: #303f58;
  box-shadow: 0 6px 40px #D9B08C50;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.feature-item, .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #262c35;
  border-radius: 15px;
  padding: 20px 18px;
  gap: 15px;
  box-shadow: 0 2px 24px #2E405366;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 220px;
  border: 1px solid #2E4053;
  transition: border 0.25s, box-shadow 0.25s, background 0.2s;
}
.feature img {
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 6px #D9B08C88) drop-shadow(0 0 2px #fff1bb50);
}
.feature:hover, .feature:focus {
  border-color: #D9B08C;
  box-shadow: 0 8px 36px #D9B08C44, 0 2px 24px #151e2744;
  background: #313d55;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.service-item {
  background: #232B33;
  border-left: 4px solid #D9B08C;
  border-radius: 7px;
  padding: 20px 18px;
  box-shadow: 0 2px 16px #2E405344;
  margin-bottom: 14px;
  transition: border-color 0.3s, box-shadow 0.25s;
}
.service-item:hover, .service-item:focus {
  border-color: #fff1bb;
  box-shadow: 0 4px 24px #D9B08CAA;
}

.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: #F4F4F9;
  color: #232B33;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 26px #2E405344;
  font-size: 1.07rem;
  position: relative;
  border-left: 5px solid #D9B08C;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  color: #2E4053;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 32px #D9B08C44;
  border-left: 5px solid #2E4053;
}
.testimonial-card p {
  color: #2E4053;
  margin-bottom: 0;
  font-size: 1em;
}

/* BUTTONS, CTAS, MICRO-INTERACTIONS */
.cta-button, .cta-button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2E4053;
  color: #fff;
  border: none;
  border-radius: 24px;
  min-width: 150px;
  padding: 12px 30px;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 32px #2E405366;
  transition: background 0.18s, transform 0.16s, box-shadow 0.18s;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 2px solid #D9B08C;
  position: relative;
  z-index: 1;
}
.cta-button.primary {
  background: #D9B08C;
  color: #232B33;
  border: 2px solid #F4F4F9;
}
.cta-button:hover, .cta-button.primary:hover, .cta-button:focus, .cta-button.primary:focus {
  background: #fffbe8;
  color: #2E4053;
  box-shadow: 0 8px 32px #D9B08C88, 0 2px 16px #fffdf9bb;
  outline: none;
  transform: translateY(-2px) scale(1.037);
  text-shadow: 0 0 8px #F4F4F9;
}

button {
  font-family: inherit;
  font-size: 1em;
  border: none;
  background: none;
  cursor: pointer;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: #232B33;
  box-shadow: 0 2px 32px #2E405322;
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 24px #D9B08C66);
  transition: filter 0.2s;
}
.logo:hover img, .logo:focus img {
  filter: drop-shadow(0 0 30px #D9B08CAA);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  color: #F4F4F9;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.19s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #2E4053;
  color: #D9B08C;
}

.mobile-menu-toggle {
  background: #262c35;
  color: #D9B08C;
  font-size: 2rem;
  border-radius: 11px;
  padding: 6px 18px;
  display: none;
  box-shadow: 0 2px 16px #D9B08C44;
  border: 2px solid #2E4053;
  transition: background 0.15s, color 0.13s;
  z-index: 500;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #D9B08C;
  color: #232B33;
}

/* MOBILE MENU STRUCTURE */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #232B33cc;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.33s cubic-bezier(.43,.29,.23,1), transform 0.29s cubic-bezier(.76,0,.94,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  color: #D9B08C;
  padding: 18px 26px 0 0;
  background: none;
  border: none;
  align-self: flex-end;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  margin-top: 48px;
  padding-right: 32px;
  width: 100%;
  z-index: 99999;
}
.mobile-nav a {
  font-size: 1.4rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  color: #F4F4F9;
  padding: 10px 0;
  min-width: 190px;
  border-radius: 6px;
  transition: color 0.16s, background 0.17s;
  text-align: right;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #2E4053;
  color: #D9B08C;
}

/* FOOTER */
footer {
  width: 100%;
  background: #262c35;
  color: #F4F4F9;
  padding: 36px 0 14px 0;
  border-top: 1px solid #2E4053;
  box-shadow: 0 -2px 30px #2E405322;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #D9B08C;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px dashed #D9B08C66;
  padding-bottom: 2px;
  transition: color 0.17s, border 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fffbe8;
  border-bottom: 2px solid #fffbe8;
}
.footer-contact {
  text-align: center;
  font-size: 1rem;
  color: #D9B08C;
  opacity: 0.87;
}

/* LISTS IN TEXT SECTIONS */
.text-section ul, .text-section ol {
  text-align: left;
  margin: 20px auto 32px auto;
  max-width: 600px;
  color: #D9B08C;
}
.text-section li {
  font-size: 1.01rem;
  margin-bottom: 10px;
  list-style-type: disc;
}

/* SECTION OVERRIDES */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-radius: 26px;
  background: linear-gradient(135deg, #232B33 75%, #2E4053 100%);
  box-shadow: 0 2px 24px #2E405333;
}
section:nth-child(even) {
  background: linear-gradient(125deg, #232B33 85%, #1B222C 100%);
}

/* ANIMATION */
.cta-button, .feature, .testimonial-card, .service-item {
  transition: box-shadow 0.18s, background 0.15s, border 0.15s, transform 0.18s;
}
.cta-button:active {
  transform: scale(0.98);
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #1B222C;
  color: #fff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 3px solid #D9B08C;
  box-shadow: 0 -3px 24px #2E405399;
  z-index: 9100;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.22s, transform 0.27s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-text {
  font-size: 1.02rem;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}
.cookie-btn {
  background: #2E4053;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin: 2px;
  transition: background 0.15s, color 0.13s, border 0.18s;
  cursor: pointer;
  border: 2px solid #D9B08C;
}
.cookie-btn.accept {
  background: #D9B08C;
  color: #232B33;
}
.cookie-btn.settings {
  background: #262c35;
  color: #D9B08C;
}
.cookie-btn.reject {
  background: #232B33;
  color: #fff;
  border: 2px solid #2E4053;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fffbe8;
  color: #2E4053;
  outline: none;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #232B33cc;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #262c35;
  border-radius: 15px;
  box-shadow: 0 6px 42px #2E405388;
  padding: 32px 22px 20px 22px;
  min-width: 320px;
  max-width: 90%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  animation: modal-bounce-in 0.4s cubic-bezier(0.6,0.25,0.29,1);
}
@keyframes modal-bounce-in {
  0% { transform: scale(0.89) translateY(40px); opacity: 0; }
  80% { transform: scale(1.07) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  color: #D9B08C;
  font-size: 1.37rem;
  margin-bottom: 12px;
  text-align: center;
}
.cookie-modal label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.04rem;
  margin-bottom: 12px;
}
.cookie-toggle {
  margin-top: 3px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  color: #D9B08C;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  color: #fffbe8;
}

/* RESPONSIVE DESIGN: MOBILE FIRST */
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
  }
  .feature-grid, .card-container, .content-grid, .card-grid {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
}
@media (max-width: 920px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-nav a, .footer-nav a { font-size: 1rem; }
}
@media (max-width: 768px) {
  /* Mobile Menu */
  .main-nav {
    display: none;
  }
  .cta-button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .feature-grid, .card-container, .content-grid, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, section {
    padding: 32px 2vw !important;
    gap: 22px;
  }
  .text-section {
    padding: 10px 0 0 0;
  }
  section {
    border-radius: 18px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 16px 14px;
    font-size: 1.02rem;
  }
  .logo img {
    height: 44px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.04rem; }
  .container {
    padding: 0 2vw;
  }
  .cta-button, .cta-button.primary {
    min-width: 110px;
    font-size: 0.96rem;
    padding: 9px 17px;
    border-radius: 16px;
  }
  .feature, .feature-item, .service-item {
    padding: 16px 7px;
    border-radius: 11px;
  }
  .testimonial-card {
    border-radius: 10px;
  }
  section {
    padding: 17px 0 !important;
    margin-bottom: 22px;
  }
  .cookie-modal {
    min-width: unset;
    width: 98vw !important;
    padding: 12vw 2vw 24px 2vw;
  }
}
@media (max-width: 430px) {
  .logo img {
    height: 35px;
  }
}

/* FLEXIBLE UTILITIES AND GAPS */
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/*********************
 TECH FUTURISTIC DECORATIVE ACCENTS
*********************/
section, header, footer, .card, .feature, .testimonial-card {
  position: relative;
}
section:before, .feature:before, .service-item:before, .testimonial-card:before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 25px;
}
section:before {
  top: 30px; right: 40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, #D9B08C33 22%, transparent 65%);
  opacity: 0.27;
}
.feature:before {
  bottom: 8px; right: 18px;
  width: 44px; height: 44px;
  background: radial-gradient(circle, #D9B08C22 38%, #F4F4F900 100%);
  opacity: 0.3;
}
.service-item:before {
  bottom: 6px; left: 8px;
  width: 25px; height: 25px;
  background: radial-gradient(circle, #D9B08C16 60%, #232B33 100%);
  opacity: 0.18;
}
.testimonial-card:before {
  top: -6px; left: -9px;
  width: 30px; height: 30px;
  background: radial-gradient(circle, #2E405320 55%, #fff1bb00 100%);
  opacity: 0.24;
}

/*********************
 ACCESSIBLE FOCUS STATES
*********************/
:focus {
  outline: 2px solid #D9B08C;
  outline-offset: 2px;
}

/*********************
 CUSTOM SCROLLBAR (chromium-based only)
*********************/
body::-webkit-scrollbar {
  width: 13px;
  background: #232B33;
}
body::-webkit-scrollbar-thumb {
  background: #2E4053;
  border-radius: 8px;
  border: 3px solid #232B33;
}

/*********************
 PRINT STYLES
*********************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section {
    background: #fff !important;
    box-shadow: none !important;
  }
  body {
    background: #fff !important;
    color: #222 !important;
  }
}
