/* =============================
   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, 
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F5F1ED;
  color: #223151;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
article, aside, footer, header, nav, section, main {
  display: block;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #223151;
  text-decoration: none;
  transition: color 0.20s cubic-bezier(.57,1.75,.41,.73);
}
a:hover, a:focus {
  color: #D8892C;
  outline: none;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border-radius: 0;
}

/* =============================
   FONT IMPORTS
   ============================= */
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,600,700&display=swap');

:root {
  --primary: #223151;
  --secondary: #F5F1ED;
  --accent: #D8892C;
  --font-display: 'Josefin Sans', Arial, sans-serif;
  --font-body: Arial, sans-serif;
}

/* =============================
   STRUCTURED GEOMETRIC TYPE SCALE
   ============================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--primary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.subheadline {
  color: #223151;
  font-size: 1.25rem;
  font-family: var(--font-display);
  margin-bottom: 24px;
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #223151;
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #223151;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 8px;
  background: #F5F1ED;
}

/* =============================
   LAYOUT STRUCTURE
   ============================= */
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.content-wrapper {
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgba(34,49,81,0.12), 0 1.5px 5px rgba(216,137,44,0.04);
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
/* Text section with less visual layer (About, etc.) */
.text-section {
  background: #F5F1ED;
  box-shadow: none;
  padding: 40px 20px 20px 20px;
}

/* =============================
   NAVIGATION & HEADER
   ============================= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(34,49,81,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  z-index: 100;
  position: sticky;
  top: 0;
}
header > a img {
  height: 52px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  color: var(--primary);
}
header nav a.active, header nav a:focus, header nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff !important;
  background: var(--accent);
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(216,137,44,0.10);
  cursor: pointer;
  margin-left: 24px;
  transition: box-shadow 0.20s, filter 0.15s, transform 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #be681f;
  color: #fff !important;
  box-shadow: 0 2px 16px 0 rgba(216,137,44,0.18);
  filter: brightness(0.98) saturate(1.1);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary) !important;
  background: var(--secondary);
  border: 2px solid var(--primary);
  padding: 10px 30px;
  border-radius: 30px;
  outline: none;
  cursor: pointer;
  margin-top: 16px;
  margin-bottom: 12px;
  transition: background 0.20s, border 0.2s, color 0.20s, transform 0.16s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 2px 10px 0 rgba(34,49,81,0.10);
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent);
}
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 7px 17px 8px 17px;
  margin-left: 28px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}

/* =============================
   MOBILE NAVIGATION MENU
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,81,0.98);
  z-index: 220;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.85,0,.27,1.09);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 32px 0 0;
  cursor: pointer;
  z-index: 222;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 46px 24px 48px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background 0.16s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* =============================
   RESPONSIVE NAVIGATION
   ============================= */
@media (max-width: 1024px) {
  header nav {
    gap: 16px;
  }
  .cta-primary {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* =============================
   SECTIONS
   ============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 15px;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(34,49,81,0.04);
  padding: 28px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2px solid rgba(216,137,44,0.06);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.16s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 18px rgba(216,137,44,0.13);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.02) rotate(-1deg);
}
.feature-grid img {
  width: 42px;
  height: 42px;
}

/* General Card Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(34,49,81,0.09);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 19px 22px 19px;
  min-width: 260px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact List */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}
.contact-list img {
  width: 26px;
  height: 26px;
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px rgba(34,49,81,0.05);
  transition: box-shadow 0.15s, border 0.15s;
}
.testimonial-card blockquote {
  color: #223151;
  background: none;
  border: none;
  font-size: 1.09rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--accent);
  font-size: 1.08rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    padding: 15px;
  }
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #223151;
  color: #fff;
  padding: 38px 0 18px 0;
  text-align: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.17s, background 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: var(--accent);
}
footer p {
  font-size: 15px;
  color: #fff;
  margin: 10px 0 0 0;
}

/* =============================
   NEWSLETTER BOX
   ============================= */
.newsletter {
  background: #fff;
  padding: 24px 18px;
  border-radius: 18px;
  border: 2px solid #D8892C21;
  margin-top: 18px;
  box-shadow: 0 1.5px 10px rgba(34,49,81,0.05);
}
.newsletter h3 {margin-bottom: 10px;}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 2500;
  background: #fff;
  color: #223151;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -3px 24px rgba(34,49,81,0.07);
  padding: 16px 10px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: cookieSlideUp 0.48s cubic-bezier(.7,0,.35,1.2);
}
@keyframes cookieSlideUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0 !important;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 9px;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  padding: 9px 40px;
  margin: 0;
  transition: background 0.2s, color 0.15s, box-shadow 0.15s;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(34,49,81,0.07);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #be681f;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--accent);
  color: #fff;
}

/* Cookie Preference Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2600;
  background: rgba(20,30,55,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #223151;
  border-radius: 22px;
  padding: 40px 28px 18px 28px;
  max-width: 430px;
  min-width: 320px;
  box-shadow: 0 2px 24px 2px rgba(34,49,81,0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.46s cubic-bezier(.7,0,.31,1.19);
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(50px); opacity: 0.2; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.23rem;
  font-family: var(--font-display);
  color: var(--primary);
}
.cookie-modal-category {
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 12px 12px 10px 14px;
  background: var(--secondary);
  border-radius: 11px;
  box-shadow: 0 1.5px 6px rgba(34,49,81,0.04);
}
.cookie-modal-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 8px;
  width: 19px;
  height: 19px;
  vertical-align: middle;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px;
  right: 20px;
  background: none;
  border: none;
  color: #223151;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

/* =============================
   RESPONSIVE & FLEXBOX PATTERNS
   ============================= */
@media (max-width: 1330px) {
  .container { max-width: 97vw; }
}
@media (max-width: 1000px){
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper, .text-section {
    padding: 24px 7px 22px 7px;
    border-radius: 12px;
  }
}
@media (max-width: 700px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.35rem; }
  .feature-grid > div { max-width: 100%; }
  section { padding: 28px 4px; }
  footer nav { gap: 4px; font-size: 0.97rem; }
}
@media (max-width: 600px) {
  .content-wrapper, .text-section { padding: 14px 3.5vw; }
  .container { padding: 0 2px; }
  .card {
    min-width: unset;
    padding: 16px 8px 16px 8px;
  }
}
@media (max-width: 520px){
  .feature-grid, .content-grid, .card-container, .section {
    flex-direction: column !important;
    gap: 13px !important;
  }
  .testimonial-card { padding: 10px 4px; }
  .newsletter { padding: 12px 5px; }
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =============================
   MICRO-INTERACTIONS & EFFECTS
   ============================= */
.card, .feature-grid > div, .testimonial-card, .newsletter {
  transition: box-shadow 0.2s, transform 0.21s, border-color 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .newsletter:hover {
  box-shadow: 0 7px 24px rgba(34,49,81,0.15);
  transform: scale(1.01) translateY(-1px);
  border-color: var(--accent);
}

/* =============================
   MISC INTERACTIVE STYLES
   ============================= */
input, textarea, select {
  font-family: var(--font-body);
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.4px solid #d0d0d0;
  background: #fff;
  transition: border-color 0.22s;
}
input:focus, textarea:focus, select:focus {
  border: 1.4px solid var(--accent);
  outline: 2px solid var(--accent);
}

/* =============================
   ACCESSIBILITY IMPROVEMENTS
   ============================= */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* =============================
   GEOMETRIC DECORATIVE SHAPES (EXAMPLES)
   ============================= */
.section::before, .section::after {
  content: "";
  display: none;
}
@media (min-width: 850px) {
  .content-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: -14px;
    left: -38px;
    width: 62px;
    height: 62px;
    background: var(--secondary);
    border: 3px solid var(--accent);
    border-radius: 14px;
    opacity: 0.17;
    z-index: 1;
    transform: rotate(15deg);
    pointer-events: none;
  }
  .content-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -22px;
    right: -46px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    border-radius: 0 12px 30px 0;
    opacity: 0.13;
    z-index: 1;
    pointer-events: none;
  }
}

/* =============================
   PRINT SUPPORT
   ============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body, .container, section, .content-wrapper { background: #fff !important; }
}
