/* =====================
   Quartz Expanse – style.css
   ===================== */

/* =====================
   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; }
*, *:before, *:after { box-sizing: inherit; }

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

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; font-size: 100%; box-sizing: border-box; cursor: pointer; background: none; border: none; outline: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

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

h1, .hero h1 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #173B5D;
}

h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #173B5D;
}

h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #173B5D;
}

h4, h5, h6 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  color: #173B5D;
}

p, ul, ol, li, dl, dt, dd {
  font-size: 1rem;
  margin-bottom: 10px;
}
p { margin-bottom: 16px; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }

.text-section p:last-child, .text-section ul:last-child, .text-section ol:last-child {
  margin-bottom: 0;
}
dt {
  font-weight: 700;
  margin-top: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
dd {
  margin-left: 0;
  margin-bottom: 12px;
}

/* ===========
   LAYOUT & SECTIONS
   ============ */
main { width: 100%; }

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F2F2F2;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(250,170,76,0.05), 0 1.5px 6px rgba(23,59,93,0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
}

section.hero {
  background: #fff8f2;
  box-shadow: none;
  margin-bottom: 0px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-radius: 0 0 36px 36px;
  display: flex;
}

section.testimonials {
  background: #fff;
  box-shadow: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.text-section {
  background: transparent;
  box-shadow: none;
  border-radius: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(23,59,93,0.11);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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: #FAFAF7;
  border: 1.5px solid #F2F2F2;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(23,59,93,0.09);
  margin-bottom: 20px;
  color: #173B5D;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(250,170,76,0.14);
  transform: translateY(-3px) scale(1.015);
}
.testimonial-meta {
  font-size: 1rem;
  font-weight: 500;
  color: #FAAA4C;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Flex gap fallback for old Safari/iOS */
@supports not (gap: 20px) {
  .content-grid > * { margin-right: 20px; margin-bottom: 20px; }
  .card-container > * { margin-right: 24px; margin-bottom: 24px; }
}

/* ================
   HEADER & NAVIGATION
   ================ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,59,93,0.07);
  padding: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  gap: 16px;
}
header img {
  max-height: 54px;
  min-height: 36px;
  border-radius: 10px;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #173B5D;
  border-radius: 10px;
  padding: 6px 14px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #FAAA4C;
  color: #173B5D;
}

.cta-btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  background: #FAAA4C;
  color: #173B5D;
  border: none;
  border-radius: 20px;
  padding: 11px 27px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(250,170,76,0.13);
  margin-left: 12px;
  display: inline-block;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.14s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #f48d11;
  color: #fff;
  box-shadow: 0 4px 22px rgba(23,59,93,0.18), 0 2px 7px rgba(250,170,76,0.15);
  transform: translateY(-2px) scale(1.035);
}

/* =====================
   MOBILE MENU
   ===================== */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: rgba(23,59,93,0.89);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.53,.02,.27,.88);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 30px 0 24px 26px;
  font-size: 2rem;
  color: #FAAA4C;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  transition: background 0.16s;
  width: 44px;
  height: 44px;
  align-self: flex-start;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(250,170,76,0.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: 24px;
}
.mobile-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: none;
  border-radius: 12px;
  padding: 9px 0 9px 4px;
  margin-right: 24px;
  transition: background 0.17s, color 0.16s;
  text-align: left;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FAAA4C;
  color: #173B5D;
}

/* Mobile menu toggle on small screens */
@media (max-width: 950px) {
  header nav, header .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 24px;
    right: 32px;
    background: #FAAA4C;
    color: #173B5D;
    border: none;
    border-radius: 13px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
    z-index: 101;
    box-shadow: 0 2px 10px rgba(23,59,93,0.09);
    transition: background 0.15s, color 0.14s, transform 0.18s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #f77603;
    color: #fff;
    transform: scale(0.95);
  }
  header .container {
    justify-content: flex-start;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 951px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ===================
   BUTTONS & LINKS
   =================== */
button, .cta-btn {
  cursor: pointer;
  outline: none;
}
a:focus, button:focus { outline: 2px dashed #FAAA4C; }
a:active { opacity: 0.96; }

/* =============================
   CARD AND FEATURED ITEMS
   ============================= */
ul li, ol li {
  margin-bottom: 18px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-radius: 13px;
  background: none;
}
ul li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  background: #fff7ef;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(250,170,76,0.10), 0 1px 2px rgba(23,59,93,0.08);
}
ul li strong {
  color: #173B5D;
}

/* =====================
   TESTIMONIALS SECTION
   ===================== */
.testimonial-card p {
  font-size: 1.13rem;
  color: #173B5D;
}
.testimonials .testimonial-card {
  background: #FFF8F2;
  border: 1.5px solid #FFE0B2;
  color: #173B5D;
}
.testimonial-meta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  color: #FAAA4C;
  font-size: 1rem;
}

/* COLOR CONTRAST FOR TESTIMONIALS - strong enforcement */
.testimonial-card, .testimonials .testimonial-card {
  background: #fff8f2;
  color: #173B5D;
  border-color: #FAAA4C33; /* very soft accent border */
}
.testimonial-card p, .testimonial-card .testimonial-meta {
  color: #173B5D;
}

/* =====================
   FOOTER
   ===================== */
footer {
  width: 100%;
  background: #173B5D;
  color: #fff;
  padding: 48px 0 32px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 40px rgba(23,59,93,0.10);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 9px;
  padding: 4px 10px;
  transition: background 0.16s, color 0.15s;
  width: max-content;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #FAAA4C;
  color: #173B5D;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.98rem;
  font-family: "Roboto", Arial, sans-serif;
}
.footer-info a { color: #FAAA4C; }
.footer-brand img {
  margin-top: 12px;
  max-height: 48px;
  border-radius: 10px;
}

/* ==============
   COOKIE CONSENT
   ============== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1010;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff8f2;
  box-shadow: 0 -1px 24px rgba(250,170,76,0.16), 0 -1.5px 8px rgba(23,59,93,0.07);
  padding: 24px 8vw 24px 8vw;
  gap: 24px;
  border-radius: 24px 24px 0 0;
  animation: cookieBannerSlideIn 0.5s cubic-bezier(.38,.09,.21,.97);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(100%); opacity:0; }
  80%{ opacity:1; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner .cookie-banner-text {
  flex: 2 1 320px;
  color: #173B5D;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-consent-banner .cookie-banner-actions {
  flex: 1 0 262px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-end;
}
.cookie-btn {
  background: #FAAA4C;
  color: #173B5D;
  border: none;
  border-radius: 12px;
  padding: 9px 22px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size:1rem;
  transition: background 0.18s, color 0.15s, box-shadow 0.13s;
  box-shadow: 0 2px 8px rgba(250,170,76,0.10);
  margin-right: 4px;
}
.cookie-btn.primary:hover,
.cookie-btn.primary:focus {
  background: #f48d11;
  color: #fff;
}
.cookie-btn.secondary {
  background: #fff;
  color: #F0970B;
  border: 1.5px solid #FAAA4C;
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: #FAAA4C;
  color: #fff;
}
.cookie-btn.settings {
  background: #173B5D;
  color: #fff;
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fafaf7;
  color: #173B5D;
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,59,93,0.42);
  z-index: 1020;
  animation: fadeModalBg 0.28s;
}
@keyframes fadeModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  bottom: 50%; left: 50%;
  transform: translate(-50%, 50%) scale(1);
  z-index: 1030;
  background: #fff8f2;
  border-radius: 18px;
  box-shadow: 0 10px 48px rgba(23,59,93,0.24);
  max-width: 470px;
  width: 92vw;
  padding: 32px 32px 28px 32px;
  color: #173B5D;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 1;
  animation: modalPopIn 0.43s cubic-bezier(.3,.67,.18,.95);
}
@keyframes modalPopIn {
  0% { transform: translate(-50%,60%) scale(0.8); opacity:0; }
  70%{ opacity: 1; }
  100% { transform: translate(-50%,50%) scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-modal .category label {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: #173B5D;
}
.cookie-modal .category input[type=checkbox] {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #FAAA4C;
  accent-color: #FAAA4C;
  cursor: pointer;
  transition: box-shadow 0.13s;
  margin-right: 4px;
}
.cookie-modal .category .disabled {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .category .locked {
  margin-left: 6px;
  font-size: 1.2em;
  color: #a27333;
}
.cookie-modal .modal-actions {
  display: flex; gap: 15px; justify-content: flex-end; margin-top: 24px;
}

/* Essential always enabled */
.cookie-modal .category.essential label {
  font-weight: 700;
  color: #FAAA4C;
}
.cookie-modal .category.essential input[type=checkbox] {
  accent-color: #FAAA4C;
  background: #fff7ef;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */

@media (max-width: 1200px) {
  .container { max-width: 960px; }
  section, .section { padding: 36px 6vw; }
  .footer-brand img { max-height: 42px; }
}
@media (max-width: 950px) {
  .container { max-width: 98vw; }
  footer .container { flex-direction: column; gap: 28px; align-items: stretch; }
  .footer-brand { align-self: center; }
}
@media (max-width: 768px) {
  section, .section {
    padding: 33px 10px;
    margin-bottom: 42px;
    border-radius: 19px;
  }
  .content-wrapper { gap: 15px; }
  h1, .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.09rem; }
  nav { gap: 12px; }
}
@media (max-width: 600px) {
  .container { max-width: 99vw; padding: 0 6px; }
  section, .section { padding: 22px 0px; }
  .testimonials .testimonial-card,
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 7px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 5vw 15px 5vw;
  }
  .cookie-consent-banner .cookie-banner-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .footer-info, .footer-nav {
    font-size: 0.95rem;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  h1, .hero h1 { font-size: 1.1rem; margin-bottom: 12px; }
  h2 { font-size: 1rem; }
  .footer-brand img { max-height: 30px; }
  .cookie-modal { max-width: 97vw; padding: 18px 3vw 14px 3vw; }
}

/* BASIC FLEX RESPONSIVE for text-image sections and content grids */
.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .card-container { flex-direction: column; gap: 16px; }
}

/* Ensure all cards/sections, etc. have at least 20px margin */
.card, .testimonial-card, .content-wrapper, .text-section {
  margin-bottom: 20px;
}
section:last-child, .section:last-child { margin-bottom: 0; }

/* Avoid absolute positioning for content elements except for modal/cookie banner */
/* Z-indexes: header > mobile-menu(99-101) > cookie banner(1010+) > modal(1030+) */

/* ===============
   TRANSITIONS & MICROINTERACTIONS
   =============== */
a, button, .cta-btn, .footer-nav a, .cookie-btn {
  transition: background 0.22s, color 0.16s, box-shadow 0.14s, transform 0.12s;
}
.card, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.12s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px rgba(250,170,76,0.18), 0 2.5px 8px rgba(23,59,93,0.08);
  transform: translateY(-2.5px) scale(1.01);
}

/* ================
   FORM ELEMENTS (for contact page expansions)
   ================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 15px;
  border: 1.5px solid #FAAA4C;
  background: #fff8f2;
  border-radius: 13px;
  margin-bottom: 20px;
  color: #173B5D;
  width: 100%;
  box-shadow: 0 1px 6px rgba(250,170,76,0.06);
}
input:focus,
textarea:focus {
  border-color: #F0970B;
  outline: none;
  box-shadow: 0 2px 12px rgba(250,170,76,0.10);
}
label { display: block; font-weight: 500; margin-bottom: 4px; }

/* ================
   SCROLLBAR (soft)
   ================ */
body::-webkit-scrollbar {
  width: 10px;
  background: #fff8f2;
}
body::-webkit-scrollbar-thumb {
  background: #FAAA4C;
  border-radius: 6px;
}
body { scrollbar-width: thin; scrollbar-color: #FAAA4C #fff8f2; }

/* ================
   SELECTION COLOR
   ================ */
::selection { background: #FAAA4C; color: #173B5D; }

/* ================
   ACCESSIBILITY
   ================ */
[tabindex]:focus { outline: 2px dashed #FAAA4C; outline-offset: 2px; }

/* END OF STYLE.CSS */
