/* ---------------------------------------------
   Dusk Horizons Professional Corporate CSS
   Brand: Dusk Horizons
   Palette: #22223b (primary), #f2e9e4 (secondary), #9a8c98 (accent)
   Fonts: Montserrat (display), Roboto (body)
   Layout: Flexbox only (no grid, no columns)
----------------------------------------------*/

/* ===== 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 {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #22223b;
  background: #f2e9e4;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #22223b;
  text-decoration: none;
  transition: color 0.20s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #9a8c98;
  outline: none;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

button {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #22223b;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p, li, blockquote {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
blockquote {
  font-style: italic;
  color: #22223b;
  margin-bottom: 12px;
}
cite {
  font-size: 1rem;
  color: #9a8c98;
  font-style: normal;
  letter-spacing: .01em;
  margin-top: 10px;
  display: block;
}
strong {
  font-weight: 700;
  color: #22223b;
}
small {
  font-size: 0.87rem;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(34,34,59,0.08);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(34,34,59,0.07);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

.service-card {
  background: #f2e9e4;
  border-radius: 10px;
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(34,34,59,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #f2e9e4;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,34,59,0.06);
  margin-bottom: 20px;
  min-width: 260px;
  color: #22223b;
  transition: transform 0.16s, box-shadow 0.16s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.022);
  box-shadow: 0 6px 20px 0 rgba(34,34,59,0.13);
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.cta-btn {
  background: #22223b;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
  box-shadow: 0 2px 8px -3px rgba(34,34,59,0.10);
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.14s;
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #9a8c98;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px -3px rgba(154,140,152,0.15);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 1px 6px 0 rgba(34,34,59,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #22223b;
  opacity: 0.96;
  transition: color 0.2s, opacity 0.2s, border-bottom 0.15s;
  padding: 4px 6px;
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a:focus {
  color: #9a8c98;
  opacity: 1;
  border-bottom: 2px solid #9a8c98;
}

/* Mobile Navigation styles */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 20px;
  background: #22223b;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.6rem;
  z-index: 1201;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #9a8c98;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1500;
  padding-top: 56px;
  padding-left: 0;
  transition: transform 0.40s cubic-bezier(.51,.07,.62,.97);
  transform: translateX(-100vw);
  box-shadow: 4px 0 24px rgba(34,34,59,0.13);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 2rem;
  background: #22223b;
  color: #fff;
  padding: 7px 15px;
  border-radius: 50%;
  z-index: 1600;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #9a8c98;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 0 0 24px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #22223b;
  padding: 10px 0;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #9a8c98;
  color: #fff;
  padding-left: 10px;
}

/* ===== MAIN & SECTION ELEMENTS ===== */
main {
  padding-bottom: 70px;
  /* space for cookie banner */
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== FOOTER ===== */
footer {
  background: #22223b;
  color: #fff;
  padding: 40px 0 28px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 10px rgba(34,34,59,0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.91;
  transition: color 0.18s, text-decoration 0.15s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #9a8c98;
  text-decoration: underline;
  opacity: 1;
}
footer .text-section {
  margin-top: 8px;
  color: #fff;
}
footer small {
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}

/* ===== FORMS & LINKS ===== */
input[type="text"], input[type="email"], textarea {
  background: #f2e9e4;
  border: 1px solid #c9c6cf;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 1rem;
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus {
  border-color: #9a8c98;
  outline: none;
  box-shadow: 0 2px 8px -4px #9a8c98;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #22223b;
}

/* ===== CONTENT ELEMENTS ===== */
ul:not([class]), ol:not([class]) {
  list-style: disc inside;
  margin-left: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
li img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(1) contrast(1.15);
}

hr {
  border: none;
  height: 1px;
  background: #e1dada;
  margin: 28px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section,
  section {
    padding: 26px 6px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .content-wrapper,
  .card-container,
  .content-grid,
  .text-image-section {
    gap: 14px;
  }
  .card,
  .testimonial-card,
  .service-card {
    min-width: unset;
    padding: 18px 8px;
  }
  .feature-item {
    gap: 9px;
    padding: 8px 0;
  }
  footer {
    padding: 28px 0 16px 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu {
    padding-top: 38px;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer .container {
    padding: 0 10px;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #22223b;
  box-shadow: 0 -2px 14px -1px rgba(34,34,59,0.13);
  z-index: 3000;
  padding: 22px 14px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  opacity: 1;
  animation: cookiebannerfadein 0.7s cubic-bezier(.23,1.13,.58,.98);
  transition: transform 0.3s cubic-bezier(.6,0,.8,1), opacity 0.3s;
}
@keyframes cookiebannerfadein {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: transform 0.3s, opacity 0.24s;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #22223b;
  color: #fff;
  border-radius: 7px;
  padding: 9px 22px;
  border: none;
  margin: 0;
  box-shadow: 0 1px 4px -2px #9a8c98;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #9a8c98;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  border: 1px solid #9a8c98;
  color: #22223b;
  padding: 9px 18px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #9a8c98;
  color: #fff;
  border: 1px solid #22223b;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,34,59,0.42);
  z-index: 3500;
  align-items: center;
  justify-content: center;
  animation: cookiemodalfadein 0.22s cubic-bezier(.23,1.13,.58,.98);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookiemodalfadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(34,34,59,0.19);
  padding: 32px 24px;
  max-width: 400px;
  width: 96vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 140px;
  position: relative;
  color: #22223b;
  animation: cookiemodalslidein .23s cubic-bezier(.23,.93,.54,1) both;
}
@keyframes cookiemodalslidein {
  from { transform: translateY(36px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  border: none;
  background: #c9c6cf;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .cookie-toggle[data-enabled="true"] {
  background: #22223b;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgba(34,34,59,0.07);
  transition: left 0.21s, background 0.14s;
}
.cookie-modal .cookie-toggle[data-enabled="true"]::after {
  left: 20px;
  background: #9a8c98;
}
.cookie-modal .cookie-category[data-essential="true"] .cookie-toggle {
  background: #9a8c98;
  cursor: not-allowed;
}
.cookie-modal .cookie-category[data-essential="true"] .cookie-toggle::after {
  background: #fff;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal button {
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  border-radius: 7px;
  border: none;
  background: #22223b;
  color: #fff;
  font-weight: 700;
  transition: background 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #9a8c98;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 1.35rem;
  color: #9a8c98;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 18px 6px;
    max-width: 98vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.98rem;
    padding: 16px 3vw 12px 3vw;
  }
}

/* ===== UTILITIES & MICRO-INTERACTIONS ===== */
.shadow-light {
  box-shadow: 0 2px 12px 0 rgba(34,34,59,0.06) !important;
}
.shadow-hover:hover {
  box-shadow: 0 5px 20px 0 rgba(34,34,59,0.13) !important;
  transform: translateY(-2px) scale(1.02) !important;
}
.rounded {
  border-radius: 16px !important;
}
.m-b-20 { margin-bottom: 20px !important; }
.m-b-40 { margin-bottom: 40px !important; }
.m-t-20 { margin-top: 20px !important; }

/* ===== FIXED SPACING BETWEEN SECTIONS ===== */
.section, section {
  margin-bottom: 60px;
  /* already applies above for all sections - strengthen if necessary */
  padding: 40px 20px;
}
.card-container, .content-grid {
  gap: 24px;
}
.card, .testimonial-card {
  margin-bottom: 20px;
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #9a8c98;
  outline-offset: 2px;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 10px;
  background: #f2e9e4;
}
::-webkit-scrollbar-thumb {
  background: #e4dede;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a8c98;
}

/* ===== BRAND FONT IMPORT (for self-host or Google Fonts) ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ===== END OF STYLES ===== */
