/* --- CSS RESET & NORMALIZE --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: none; }
button, input, select, textarea { font: inherit; }

/* ---- BRAND VARIABLES (with fallbacks for old browsers) ---- */
:root {
  --primary: #264653;
  --secondary: #e9c46a;
  --accent: #f4f4f9;
  --accent-dark: #e3e3e9;
  --highlight: #ff7a5a;
  --text-main: #222;
  --text-alt: #264653;
  --display-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Lato', Arial, Helvetica, sans-serif;
  --shadow-md: 0 4px 24px 0 rgba(38, 70, 83, 0.08);
  --radius: 18px;
  --focus-outline: 2px solid #e9c46a;
}

@media (prefers-color-scheme: dark) {
  html, body { background: #222; }
  .testimonial-card { background: #fff; }
}

body {
  font-family: var(--body-font, 'Lato', Arial, Helvetica, sans-serif);
  font-size: 16px;
  color: var(--text-main);
  background: var(--accent);
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* --- HEADINGS & TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--display-font);
  font-size: 2.8rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 1px 2px 0 var(--secondary);
}
h2, .h2 {
  font-family: var(--display-font);
  font-size: 2rem;
  color: var(--highlight);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 0 var(--secondary);
}
h3, .h3 {
  font-family: var(--display-font);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
p, li, .text-section {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 14px;
}
strong { font-weight: 700; color: var(--primary); }
.section ul li, .section ol li { margin-bottom: 10px; }

/* --- LINKS & BUTTONS --- */
a.button, button.button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 13px 38px;
  font-family: var(--display-font);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(38, 70, 83, 0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.22s;
  cursor: pointer;
  margin-top: 18px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
a.button.primary, .button.primary {
  background: linear-gradient(90deg, var(--primary) 62%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(233,196,106, 0.09);
}
a.button:hover, .button:hover, .button:focus {
  background: var(--highlight);
  color: var(--primary);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 28px 0 rgba(38,70,83, 0.12);
  outline: var(--focus-outline);
}
.button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.button:active {
  transform: scale(0.98);
}
nav a {
  font-family: var(--display-font);
  font-weight: 600;
  transition: color 0.15s;
  color: var(--primary);
  font-size: 1rem;
}
nav a:hover, nav a:focus {
  color: var(--highlight);
  text-decoration: underline;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 38px 26px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .content-wrapper { padding: 22px 9px; margin-bottom: 28px; }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--accent);
  border-bottom: 4px solid var(--secondary);
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 21px;
  padding-bottom: 21px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav img { height: 38px; margin-right: 22px; }
nav ul { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
nav ul li { margin-bottom: 0; }
nav ul li a {
  padding: 6px 9px;
  border-radius: 5px;
  transition: background 0.16s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2.3rem;
  border-radius: 16px;
  padding: 9px 16px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.13s;
  z-index: 1400;
}
.mobile-menu-toggle:focus { outline: var(--focus-outline); }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2000;
  background: rgba(38,70,83,0.98);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.6,.03,.28,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  opacity: 0.999;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 6px 0;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 99px;
  font-size: 2.7rem;
  padding: 7px 22px;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-end;
  box-shadow: 0 2px 7px 0 rgba(0,0,0,.10);
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--highlight);
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 35px;
  border-radius: 18px;
  transition: background 0.14s, color 0.16s;
  width: 90%;
  text-align: left;
  background: transparent;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  header nav ul, header nav .button.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 500px) {
  nav img, header nav img { height: 30px; margin-right: 7px; }
}

/* ---- MAIN SECTIONS LAYOUT/STYLING ---- */
.section, .content-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, .content-section { padding: 23px 4px; margin-bottom: 28px; }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  padding: 24px 19px;
  position: relative;
  z-index: 1;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 29px 0 rgba(38,70,83,0.13);
  transform: translateY(-3px) 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;
}
@media (max-width:1024px) {
  .content-grid { flex-direction: column; gap: 15px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 13px 0 rgba(38,70,83,0.09);
  padding: 20px;
  margin-bottom: 22px;
  min-width: 280px;
  max-width: 460px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--display-font);
  line-height: 1.5;
  font-style: italic;
}
.testimonial-card div strong {
  color: var(--highlight);
  font-size: 1.02rem;
  font-weight: 700;
}
.testimonial-card img {
  margin-left: 10px;
  height: 22px;
  vertical-align: middle;
}
.testimonial-card div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

/* --- FEATURE LISTS --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 17px;
  box-shadow: 0 2px 9px 0 rgba(232,196,106,0.05);
  margin-bottom: 18px;
}

/* --- TEAMS / ABOUT SECTIONS --- */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 20px;
}
.team-section > div {
  background: var(--accent-dark);
  border-radius: 13px;
  box-shadow: 0 2px 14px 0 rgba(38,70,83, 0.06);
  padding: 22px 18px 15px 18px;
  min-width: 200px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-section h3 {
  margin-bottom: 5px;
  color: var(--highlight);
  font-size: 1.2rem;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 35px 0 0 0;
  margin-top: 75px;
  border-top: 5px solid var(--secondary);
  border-radius: 40px 40px 0 0;
}
footer .container {
  flex-direction: row;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}
footer nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav ul li a {
  color: var(--secondary);
  font-size: 1rem;
  font-family: var(--display-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.13s, color 0.13s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer .text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 1rem;
  font-family: var(--body-font);
  color: #fff;
  line-height: 1.6;
}
footer .text-section img {
  height: 27px;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 20px; align-items: stretch; }
}
@media (max-width: 600px) {
  footer .container { padding-bottom: 7px; }
  footer .text-section { font-size: 0.97rem; }
}


/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 26px 1px rgba(38,70,83,0.13);
  border-top: 4px solid var(--secondary);
  z-index: 5000;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 24px;
  padding: 24px 8% 18px 8%;
  font-size: 1.08rem;
  font-family: var(--body-font);
  animation: cookieBannerIn 0.5s cubic-bezier(.7,-0.02,.44,.99);
}
@keyframes cookieBannerIn {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text { flex: 1 1 260px; padding-right:12px; }
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 24px;
  font-family: var(--display-font);
  font-size: 1.07rem;
  font-weight: 700;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
  margin-top: 0;
}
.cookie-btn.accept { background: var(--primary); color: #fff; }
.cookie-btn.reject { background: var(--secondary); color: var(--primary); }
.cookie-btn.settings { background: #fff; color: var(--primary); border: 2px solid var(--secondary); }
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--highlight);
  color: #fff;
  outline: var(--focus-outline);
}

@media (max-width: 690px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 17px; padding: 22px 5% 15px 5%; font-size: 1rem; }
  .cookie-banner__actions { gap: 10px; width: 100%; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 6000;
  background: rgba(38,70,83,0.8);
  display: flex;
  align-items: center; justify-content: center;
  animation: fadein 0.32s cubic-bezier(.7,-0.02,.44,.99);
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 6px 32px 0 rgba(38,70,83,0.12);
  max-width: 420px;
  min-width: 270px;
  padding: 30px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 1.11rem;
}
.cookie-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.7rem;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus { color: var(--highlight); }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1.05rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
}
.cookie-category.essential input[type=checkbox] {
  accent-color: #87b5d9;
}
.cookie-category .toggle-label {
  font-family: var(--display-font);
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 490px) {
  .cookie-modal__content { padding: 18px 8px 15px 8px; font-size: 1rem; }
}


/* ---- FORMS ---- */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid var(--secondary);
  font-size: 1.08rem;
  padding: 10px 12px;
  margin-top: 7px;
  transition: border .13s;
  outline: none;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--primary);
}
label { display: block; margin-bottom: 5px; font-family: var(--body-font); font-size: 1rem; }


/* ---- GENERAL ARTISTIC ELEMENTS & EFFECTS ---- */
.section, .content-section, .content-wrapper, .card, .testimonial-card {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 40% 60% 70% 30% / 30% 60% 40% 70%;
  background: var(--secondary);
  opacity: 0.22;
  position: absolute;
  left: 21px;
  top: -32px;
  z-index: 0;
}
.content-wrapper:before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 38% 62% 41% 59%;
  background: var(--highlight);
  opacity: 0.16;
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 0;
}
.card:before, .testimonial-card:before, .feature-item:before, .team-section > div:before {
  content: '';
  background: var(--secondary);
  opacity: 0.10;
  border-radius: 50%;
  position: absolute;
  right: 9px;
  top: 13px;
  width: 17px;
  height: 17px;
  z-index: 0;
}
.card:after, .feature-item:after {
  content: '';
  background: var(--highlight);
  border-radius: 43% 57% 33% 67% / 71% 54% 46% 29%;
  opacity: 0.13;
  position: absolute;
  left: 10px; bottom: 10px;
  width: 14px; height: 14px;
  z-index: 0;
}

/* ---- VISUAL HIERARCHY & SPACING ---- */
section + section { margin-top: 0; }
section .container, .content-section .container {
  gap: 0;
}
.section-title, .content-section .h1, .content-section h2 { margin-bottom: 22px; }
h2 + ul, h2 + div, h2 + p { margin-top: 6px; }
p + ul, p + ol { margin-top: 7px; }
ul, ol { padding-left: 21px; }
li { margin-bottom: 11px; }

/* ---- RESPONSIVE TYPOGRAPHY SCALE ---- */
@media (max-width: 900px) {
  h1, .h1 { font-size: 2.2rem; }
  h2, .h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.43rem; }
  h2, .h2 { font-size: 1.16rem; }
  h3, .h3 { font-size: 1.06rem; }
}

/* ---- ARTISTIC DECORATIVE DETAILS ---- */
.artistic-border {
  border: none;
  border-top: 3px dashed var(--secondary);
  margin: 42px 0 36px 0;
}

/* --- SPECIALS FOR PAGE-SPECIFIC CLASSES --- */
.text-section {
  padding: 18px 0 7px 0;
  font-size: 1rem;
}
.text-section h3 {
  color: var(--highlight);
  font-family: var(--display-font);
  margin-bottom: 7px;
}
.text-section img {
  margin-right: 9px;
  vertical-align: middle;
  height: 24px;
}

/* --- Support for visually impaired users --- */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* ---- MICRO-INTERACTIONS & TRANSITIONS ---- */
.button, .button.primary, .card, .testimonial-card, .feature-item, .team-section > div, nav a, footer nav ul li a, .mobile-nav a, .cookie-btn {
  transition: box-shadow 0.2s, background 0.18s, color 0.15s, transform 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .team-section > div:hover {
  transform: translateY(-2px) scale(1.013);
  box-shadow: 0 7px 17px 0 rgba(38,70,83,0.12);
}

/* ---- SPECIAL FLEXBOX ENFORCEMENT ---- */
.card-container, .team-section, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  display: flex; flex-wrap: wrap;
}
/* --- END --- */

