/* ================================
   RESET & NORMALIZE (Modern CSS Reset)
=================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F7F4EF 0%, #e8dfd1 100%);
  color: #273246;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-weight: 400;
  transition: background 0.6s;
  -webkit-font-smoothing: antialiased;
}
:root {
  --color-primary: #273246;
  --color-secondary: #B58F5A;
  --color-accent: #F7F4EF;
  --color-neutral: #ffffff;
  --color-muted: #e8dfd1;
  --color-shadow: rgba(39, 50, 70, 0.08);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-primary);
  outline: none;
}
ul, li, ol {
  list-style: none;
}
input, button, textarea, select {
  font: inherit;
  outline: none;
  border-radius: 0;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ================================
   TYPOGRAPHY
=================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--color-primary);
}
strong {
  font-weight: bold;
  color: var(--color-secondary);
}
.text-section p {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

/* ================================
   CONTAINER & FLEX LAYOUTS
=================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-neutral);
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: box-shadow 0.3s;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  max-width: 270px;
  background: linear-gradient(120deg, #F7F4EF 85%, #fffbe7 100%);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 20px 24px 20px;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px rgba(181,143,90,0.16);
  transform: translateY(-5px);
}
.feature-grid img {
  height: 54px;
  width: 54px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-neutral);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  width: 100%;
  transition: box-shadow 0.3s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(181,143,90,0.16);
  transform: translateY(-3px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}

/* ================================
   HEADER & NAVIGATION
=================================== */
header {
  background: linear-gradient(90deg, #273246 70%, #4D5670 100%);
  color: var(--color-accent);
  box-shadow: 0 2px 9px var(--color-shadow);
  padding: 0 0 0 0;
  position: relative;
}
.logo-brand {
  padding: 18px 0 14px 0;
  display: flex;
  align-items: center;
}
.logo-brand img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0;
}
.main-nav a {
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 14px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Header Layout */
header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
header > div, header > nav, header > button {
  display: flex;
  align-items: center;
}
header > .logo-brand {
  justify-content: flex-start;
}
header > .main-nav {
  justify-content: flex-end;
  flex: 1 1 auto;
}
header {
  flex-wrap: wrap;
}
/* Position header contents */
header {
  padding-left: 16px;
  padding-right: 16px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

/* ================================
   MOBILE NAVIGATION
=================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 12px;
  margin-left: 16px;
  margin-right: 0px;
  z-index: 40;
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: linear-gradient(120deg, #ffffff 86%, #f7f4ef 100%);
  box-shadow: -10px 0 34px rgba(39,50,70,0.10);
  z-index: 1001;
  padding: 40px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.60,0,0.26,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: var(--color-neutral);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: 24px;
  transition: background 0.15s;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f2ece1;
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 13px 0 8px 0;
  font-size: 1.15rem;
  border-radius: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 16px;
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 95%;
  }
}
@media (max-width: 820px) {
  header {
    flex-direction: row;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 66px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 830px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 750px) {
  section {
    padding: 30px 8px;
  }
  .feature-grid > div {
    max-width: unset;
    min-width: 160px;
    padding: 18px 10px 16px 10px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    gap: 0;
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 42;
  }
  .logo-brand {
    flex: 1 1 auto;
    padding: 10px 0 10px 0;
  }
}
@media (max-width: 668px) {
  .mobile-menu {
    max-width: 100vw;
    padding: 28px 10px 8px 10px;
  }
  h1 { font-size: 2rem; }
}

/* ================================
   HERO, CTA, CARDS
=================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #B58F5A 60%, #a87732 100%);
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 34px;
  border: none;
  border-radius: 22px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.23s, box-shadow 0.18s, transform 0.13s;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #a87732 20%, #273246 90%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(181,143,90,0.23);
  transform: translateY(-2px) scale(1.03);
}

/* ================================
   TESTIMONIALS & BLOCKS
=================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F4EF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,50,70,0.07);
  margin-bottom: 20px;
  flex-direction: column;
  position: relative;
  border-left: 6px solid var(--color-secondary);
  color: var(--color-primary);
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card p {
  color: #222c3f;
  font-size: 1.11rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(39,50,70,0.19);
  transform: translateY(-2px) scale(1.015);
}

/* ================================
   FOOTER
=================================== */
footer {
  background: linear-gradient(90deg,#273246 80%, #B58F5A 100%);
  color: var(--color-accent);
  padding: 36px 0 12px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 12px rgba(39,50,70,0.06);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 4px 14px;
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer p {
  font-size: 0.98rem;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 0;
  opacity: 0.88;
}

/* ================================
   SOCIAL LINKS (Contact page)
=================================== */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  border-radius: 50%;
  padding: 7px;
  transition: background 0.18s, transform 0.12s;
}
.social-links a:hover {
  background: var(--color-primary);
  transform: scale(1.08) rotate(-7deg);
}
.social-links img {
  width: 26px;
  height: 26px;
  display: block;
}

/* ================================
   COOKIE BANNER & MODAL
=================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,#F7F4EF 85%, #B58F5A 100%);
  color: #222c3f;
  padding: 22px 18px 18px 18px;
  box-shadow: 0 -4px 28px rgba(39, 50, 70, 0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2001;
  transition: transform 0.42s cubic-bezier(0.77,0,0.18,1), opacity 0.23s;
  gap: 18px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: all;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 8px 24px;
  margin-bottom: 0;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-muted);
  color: var(--color-primary);
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,50,70,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #273246;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(39,50,70,0.14);
  min-width: 320px;
  max-width: 96vw;
  padding: 36px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  animation: cookieModalIn 0.5s cubic-bezier(0.6,0,0.26,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.94) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.2rem;
  color: var(--color-secondary);
  background: var(--color-neutral);
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7f4ef;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--color-primary);
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #e6e6e4;
  border: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  width: 22px;
  height: 22px;
  position: absolute;
  left: 1.5px;
  top: 1px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s, background 0.14s;
  box-shadow: 0 2px 6px rgba(39,50,70,0.11);
}
.cookie-toggle:checked:before {
  left: 20px;
  background: #fffbe7;
}

/* Essential cookies label */
#essential-cookies[disabled], .cookie-toggle[disabled] {
  background: #bcbcbc !important;
  pointer-events: none;
  opacity: 0.46;
}

/* ================================
   LISTS (Inside Content)
=================================== */
ul, ol {
  list-style: disc inside none;
  margin-left: 20px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: #273246;
  font-size: 1em;
  line-height: 1.45;
}
ul.social-links {
  list-style: none;
  margin-left: 0;
  margin-bottom: 0;
}

/* ================================
   MISCELLANEOUS
=================================== */
section {
  background: transparent;
  margin-bottom: 60px;
  padding: 0;
}

/* For all content areas */
main {
  padding-bottom: 40px;
}

/* ================================
   RESPONSIVE LAYOUT (Mobile first)
=================================== */
@media (max-width: 1100px) {
  .feature-grid {
    gap: 18px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 950px) {
  .feature-grid {
    flex-wrap: wrap;
  }
}
@media (max-width: 780px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 170px;
    max-width: 100%;
  }
  .footer-nav {
    gap: 12px;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
  .card {
    padding: 14px 8px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  html { font-size: 15px; }
  .cookie-modal-content {
    padding: 22px 6px 12px 6px;
    min-width: 98vw;
  }
}
@media (max-width: 520px) {
  .testimonial-card,
  .card {
    border-radius: 10px;
    font-size: 0.98em;
    padding: 8px 3px;
  }
  .section {
    border-radius: 10px;
    padding: 22px 4px;
  }
}

/* Text-Image Section Responsive */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ================================
   VISUAL FOCUS & ACCESSIBILITY
=================================== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ================================
   OVERRIDES FOR FORMATTING & ERRORS
=================================== */
::-webkit-input-placeholder { color: #9e9e9e;}
::-moz-placeholder { color: #9e9e9e;}
:-ms-input-placeholder { color: #9e9e9e;}
::placeholder { color: #9e9e9e;}

/* ================================
   UTILITY CLASSES
=================================== */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.text-center { text-align: center !important; }

/* ================================
   PRINT (for privacy/legal pages)
=================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none !important; }
  main, section, .container, .content-wrapper { background: #fff !important; color: #000 !important; }
  a { color: #212121 !important; }
}

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