/* ===========================================================
   CSS RESET & BASELINE (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,
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;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F5F2;
  color: #263143;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
a {
  color: #263143;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #CFA87B;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ========================================
   BRAND COLORS & TYPOGRAPHY (Setup)
   ======================================== */
:root {
  --primary: #263143;
  --secondary: #CFA87B;
  --accent: #F5F5F2;
  --text: #263143;
  --bg-main: #F5F5F2;
  --white: #fff;
  --shadow: 0 4px 20px rgba(38,49,67,0.06);
  --border-radius: 18px;
  --radius-card: 0.8em;
  --gap: 24px;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.012em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, blockquote, address {
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--primary);
}
blockquote {
  background: #EBEBE5;
  border-left: 4px solid var(--secondary);
  padding: 14px 24px;
  font-style: italic;
  color: var(--primary);
  border-radius: 0.5em;
  margin-bottom: 20px;
}
strong {
  font-weight: bold;
  color: var(--primary);
}
section ul li,
section ol li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================
   CONTAINER & STRUCTURE
   ======================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  z-index: 2;
}
.content-wrapper {
  width: 100%;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
  background: var(--white);
  border-bottom: 2.5px solid var(--secondary);
  box-shadow: 0 1px 8px rgba(38,49,67,0.035);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 1rem;
}
.main-nav a {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 0.4em;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--secondary);
  color: #fff;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  border: none;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.17s;
  margin-left: 18px;
}
.cta.primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 28px rgba(38,49,67,0.11);
  transform: translateY(-2px) scale(1.05);
}
.cta.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.cta:hover {
  box-shadow: 0 6px 28px rgba(207,168,123,0.22);
  transform: translateY(-2px) scale(1.05);
}

/* ==============
   MOBILE MENU
   ============== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  line-height: 1;
  color: var(--secondary);
  cursor: pointer;
  position: relative;
  z-index: 41;
  margin-left: 16px;
  transition: color 0.2s, filter 0.22s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
  box-shadow: 0 0 0 9999px rgba(38,49,67,0.52);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.77,0,0.175,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2em;
  background: none;
  border: none;
  color: var(--primary);
  padding: 24px 28px 8px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding-left: 30px;
  margin-top: 10px;
}
.mobile-nav a {
  font-size: 1.18rem;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 12px 0;
  border-radius: 0.3em;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
  .container {
    max-width: 94vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 10px;
  }
  .logo img {
    max-width: 128px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 {
    font-size: 1.73rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}

/* ========================================
   LAYOUT PATTERNS & FLEXBOX GRIDS
   ======================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 calc(33% - 24px);
  min-width: 270px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 30px rgba(38,49,67,0.13);
}
.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;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  padding: 20px;
  font-size: 1.07rem;
  flex: 1 1 320px;
  border-left: 7px solid var(--secondary);
  transition: box-shadow 0.21s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(38,49,67,0.16);
  transform: translateY(-2px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 22px 20px;
  border-radius: 0.8em;
  box-shadow: 0 1px 10px rgba(38,49,67,0.04);
  border-left: 5px solid var(--secondary);
}
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(38,49,67,0.08);
  padding: 16px 24px;
  margin-bottom: 10px;
  border-left: 5px solid var(--secondary);
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.service-cards > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 340px;
  padding: 27px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 5px solid var(--secondary);
  transition: box-shadow 0.21s, transform 0.13s;
}
.service-cards > div:hover {
  box-shadow: 0 8px 36px rgba(38,49,67,0.13);
  transform: scale(1.025) rotate(-0.8deg);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  background: #F5F5F2;
  border-radius: 0.7em;
  padding: 11px 18px;
}

@media (max-width: 992px) {
  .service-cards, .card-container, .content-grid {
    gap: 16px;
  }
  .card, .service-cards > div {
    min-width: 200px;
    max-width: 100%;
    flex: 1 1 250px;
  }
  .testimonial-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .service-cards, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 18px 12px 18px 14px;
    gap: 8px;
  }
  .section {
    padding: 28px 4px 32px 4px;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .faq-accordion > div {
    padding: 12px 10px;
  }
}

/* ===============================
   ICONS, CARDS, AND DETAILS
   =============================== */
.card img, .service-cards img, .feature-item img {
  width: 38px;
  height: 38px;
  margin-right: 6px;
  background: #EBEBE5;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 0 6px rgba(38,49,67,0.08);
}
li img {
  width: 27px;
  height: 27px;
  margin-right: 8px;
}

/* ========================================
   FOOTER DESIGN
   ======================================== */
footer {
  background: #fff;
  border-top: 2.5px solid var(--secondary);
  margin-top: 40px;
  padding: 30px 0 16px 0;
  color: var(--primary);
  box-shadow: 0 -1px 10px rgba(38,49,67,0.03);
  font-size: 0.96em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-size: 0.98em;
  transition: color 0.19s;
}
.footer-nav a:hover {
  color: var(--primary);
}
footer address,
footer p {
  text-align: center;
  color: #888;
  font-size: 0.95em;
}
footer address a {
  color: var(--primary);
}
@media (max-width: 700px) {
  footer .container {
    gap: 9px;
    padding: 0 6px 0 6px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* ===========================================================
   BUTTONS, FORMS, INTERACTIVE ELEMENTS
   =========================================================== */
button, .cta {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 999px;
  outline: none;
  border: none;
}
button:focus {
  outline: 2px solid var(--secondary);
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 24px rgba(38,49,67,0.15);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.36s cubic-bezier(0.68,-0.55,0.265,1.55), opacity 0.26s;
  border-top: 2.5px solid var(--secondary);
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__msg {
  font-size: 1.07rem;
  font-family: var(--font-body);
  color: var(--primary);
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: 99px;
  padding: 9px 26px;
  margin: 0 3px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.accept:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.reject:hover {
  background: #ececec;
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: #fff;
}

/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 10001;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 8px 36px rgba(38,49,67,0.18);
  padding: 40px 34px 30px 34px;
  min-width: 300px;
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: cookieModalIn 0.44s cubic-bezier(0.42,0,0.58,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%,60%); }
  to   { opacity: 1; transform: translate(-50%,-50%); }
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-family: var(--font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 11px 0;
  background: #F5F5F2;
  border-radius: 13px;
  padding: 12px 16px;
}
.cookie-modal label {
  font-size: 1.08rem;
  font-family: var(--font-body);
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 12px 6px 14px 6px;
    min-width: 90vw;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .cookie-banner {
    padding: 13px 2px 2px 2px;
    font-size: 1em;
  }
}

/* ========================================
   VISUAL GEOMETRY & STRUCTURE ACCENTS
   ======================================== */
/* Geometric corners and angular accents */
.card, .service-cards > div, .feature-item, .testimonial-card, .faq-accordion > div, .cookie-modal, .cookie-banner {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  /* simulate geometric motif */
  border-bottom-right-radius: 0.4em 1.3em;
  border-bottom-left-radius: 1.6em 1.1em;
  border-top-left-radius: 0.7em 1.1em;
  border-top-right-radius: 2em 1em;
}
h1, h2, h3, h4, h5, h6 {
  /* Angular font for headlines */
  font-family: var(--font-display);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.015em;
}

/* Divider lines */
.divider {
  width: 60px;
  height: 3.5px;
  background: var(--secondary);
  border-radius: 7px;
  margin: 12px 0 24px 0;
  align-self: flex-start;
}

/* ================================
   ACCESSIBILITY & MICROINTERACTIONS
   ================================ */
*:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
}
nav a:active, .cta:active {
  transform: scale(0.96);
}
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1em;
  border-radius: 7px;
  border: 1.5px solid #cfcfcf;
  padding: 8px 12px;
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

/* ============================
   RESPONSIVE GEOMETRIC HEADINGS
   ============================ */
@media (max-width: 566px) {
  h1 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-align: left;
  }
  h2 {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }
  .testimonial-card, .card, .service-cards > div {
    padding: 10px 7px;
  }
}

/* ================================
   MISCELLANEOUS UTILITIES
   ================================ */
.hide {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.align-center {
  align-items: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.gap-24 {
  gap: 24px;
}
.gap-12 {
  gap: 12px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-24 {
  margin-bottom: 24px;
}

/* ===================================
   END OF STYLE.CSS
   =================================== */
