/* =================================================
   RESET & BASE STYLES
================================================== */

/* Box sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background-color: #F6F6F2;
  color: #223A49;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  min-height: 400px;
}

/* Remove default list styles */
ul, ol {
  margin: 0 0 24px 0;
  padding: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  list-style: none;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: #B29562;
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
}
ul li {
  padding-left: 22px;
}
ol {
  counter-reset: num;
}
ol li {
  counter-increment: num;
  padding-left: 28px;
  position: relative;
}
ol li::before {
  content: counter(num)'.';
  color: #223A49;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Headings typography */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #223A49;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 9px; }

p, label {
  font-size: 1rem;
  line-height: 1.65;
  color: #223A49;
  margin-top: 0;
  margin-bottom: 16px;
}

blockquote {
  font-style: italic;
  color: #223A49;
  background: #F6F6F2;
  border-left: 4px solid #B29562;
  padding: 12px 20px;
  margin: 0 0 10px 0;
}
cite {
  display: block;
  font-size: 0.95em;
  font-style: normal;
  color: #223A49;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* Links */
a {
  color: #223A49;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B29562;
  text-decoration: none;
}

/* =================================================
   LAYOUT STRUCTURE
================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(34,58,73,0.06);
}

/* -------------------------------------------------
   HEADER, NAVIGATION, HERO
-------------------------------------------------- */
header {
  background: #223A49;
  color: #fff;
  box-shadow: 0 2px 16px rgba(34,58,73,0.11);
  position: relative;
  z-index: 900;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
header a img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 4px 0;
  font-size: 1rem;
  transition: color 0.16s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #B29562;
  transition: width .24s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B29562;
}

.cta-btn {
  background: #B29562;
  color: #fff;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 28px;
  border-radius: 24px;
  margin-left: 12px;
  box-shadow: 0 4px 24px -8px rgba(34,58,73,0.08);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.24s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #223A49;
  color: #B29562;
  box-shadow: 0 8px 16px -6px rgba(178,149,98,0.09);
}

/* Hamburger menu on mobile */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 3px 12px 0 12px;
  line-height: 36px;
  border-radius: 8px;
  transition: background 0.18s;
  z-index: 1002;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(178,149,98,0.20);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,58,73,0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 32px 0 32px;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(34,58,73,0.3);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.44,0.13,0.48,0.87);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 30px;
  padding: 0 10px 0 0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  padding: 16px 0;
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px solid rgba(246,246,242,0.08);
  transition: color 0.18s, background 0.17s;
  width: 100%;
  display: block;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B29562;
  background: rgba(178,149,98,0.10);
}

/* Hide main-nav and show hamburger on small screens */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none!important;
  }
}

/* =================================================
   HERO SECTIONS
================================================== */
.hero {
  background: linear-gradient(90deg, #F6F6F2 30%, #EBEFF2 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 16px rgba(34,58,73,0.03);
  margin-bottom: 60px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: #223A49;
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* =================================================
   FLEX LAYOUT CLASSES (MANDATORY)
================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,58,73,0.05);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  min-height: 180px;
  padding: 28px 24px 18px 24px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f6f6f2;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34,58,73,0.06);
  margin-bottom: 20px;
  border: 1.5px solid #e3e3db;
  transition: box-shadow 0.23s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(178,149,98,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 34px;
}
.product-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,58,73,0.07);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 230px;
  transition: box-shadow 0.2s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-item:hover {
  box-shadow: 0 6px 28px rgba(34,58,73,0.17);
}

.services-highlight {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 15px 0 0 0;
  align-items: flex-start;
}

/* =================================================
   FORMS
================================================== */
form {
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
input[type="text"], input[type="email"], textarea {
  border: 1.5px solid #dbe1e6;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FBFBF8;
  color: #223A49;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #B29562;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button,
input[type="submit"] {
  background: #223A49;
  color: #fff;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 22px;
  padding: 10px 28px;
  box-shadow: 0 2px 10px rgba(34,58,73,0.03);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #B29562;
  color: #fff;
  box-shadow: 0 4px 24px -8px rgba(34,58,73,0.14);
}

.newsletter-signup input[type="email"] {
  width: 100%;
  max-width: 260px;
  margin-right: 12px;
  display: inline-block;
}
.newsletter-signup button {
  margin-top: 8px;
}

/* =================================================
   FOOTER
================================================== */
footer {
  background: #223A49;
  color: #fff;
  margin-top: 60px;
}
footer section {
  padding: 38px 0 38px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
footer img {
  height: 50px;
  width: auto;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
}
.footer-menu a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #B29562;
}
.contact-info {
  color: #F6F6F2;
  font-size: 0.97rem;
  line-height: 1.7;
}
.newsletter-signup {
  max-width: 360px;
  flex: 1 1 200px;
  font-size: 1rem;
  color: #fff;
}
.newsletter-signup p {
  margin-bottom: 6px;
}

/* =================================================
   UTILITIES & SPACING
================================================== */
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.pb-0 { padding-bottom: 0!important; }

/* =================================================
   RESPONSIVE DESIGN (Mobile-first)
================================================== */
@media (max-width: 1050px) {
  .container {
    max-width: 940px;
  }
  .content-grid, .card-container, .product-list {
    gap: 18px;
  }
  .footer-menu { gap: 12px; font-size: .97rem; }
}

@media (max-width: 900px) {
  .container {
    max-width: 740px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer .content-wrapper { gap: 20px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.13rem; }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 8px;
  }
  .hero {
    border-radius: 0 0 16px 16px;
    padding-top: 32px; padding-bottom: 32px;
    margin-bottom: 36px;
  }
  .product-list, .card-container, .content-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .product-item, .card {
    min-width: 0;
    width: 100%;
    padding: 16px 10px 14px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 13px 8px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* Expand hamburger hit area for touch */
@media (max-width: 640px) {
  .mobile-menu {
    padding: 16px 8px 0 8px;
  }
}

/* =================================================
   COOKIE CONSENT BANNER & MODAL
================================================== */

#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 4000;
  background: #fff;
  color: #223A49;
  box-shadow: 0 -4px 32px rgba(34, 58, 73, 0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 30px;
  border-top: 1.5px solid #E3E3DB;
  justify-content: space-between;
  transition: transform 0.32s cubic-bezier(0.5,0.11,0.58,0.94), opacity 0.20s;
  font-size: 1rem;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
#cookie-banner-message {
  flex: 1 1 320px;
  margin-right: 12px;
  font-size: 1rem;
}
#cookie-banner-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: #223A49;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-left: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.17s, color 0.14s;
}
.cookie-btn.settings {
  background: #B29562;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #223A49;
  border: 1.5px solid #223A49;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B29562;
  color: #fff!important;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #223A49;
  color: #fff!important;
  border-color: #B29562;
}

@media (max-width:600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 8px;
    font-size: 0.97rem;
  }
  #cookie-banner-message {
    margin-right: 0;
    font-size: .95rem;
  }
  #cookie-banner-buttons {
    flex-direction: column;
    gap: 8px !important;
    align-items: stretch;
  }
}

#cookie-modal-bg {
  position: fixed;
  z-index: 4100;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,58,73,0.52);
  display: none;
}
#cookie-modal-bg.show {
  display: block;
}
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  max-width: 96vw;
  width: 410px;
  background: #fff;
  color: #223A49;
  border-radius: 14px;
  box-shadow: 0 14px 48px 0 rgba(34,58,73,0.19);
  z-index: 4200;
  transform: translate(-50%, -50%) scale(0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.21s;
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#cookie-modal.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-modal h4 {
  font-size: 1.20rem;
  color: #223A49;
  margin-bottom: 5px;
}
#cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
}
#cookie-modal .category label {
  font-weight: 600;
  color: #223A49;
  font-size: 1rem;
}
#cookie-modal input[type='checkbox'] {
  width: 18px; height: 18px;
  accent-color: #B29562;
}
#cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
#cookie-modal .cookie-btn {
  min-width: 100px;
}
#cookie-modal .always-on {
  font-size: 0.93em;
  color: #888;
}
#cookie-modal-close {
  background: transparent;
  border: none;
  color: #223A49;
  font-size: 1.7rem;
  position: absolute;
  top: 14px; right: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 22px;
}

@media (max-width: 490px) {
  #cookie-modal {
    width: 97vw;
    max-width: 97vw;
    padding: 20px 6vw 14px 6vw;
  }
}

/* =================================================
   ACCENT & MICRO-ANIMATION
================================================== */
.card, .product-item, .testimonial-card, .section, .content-wrapper, .newsletter-signup, .feature-item {
  transition: box-shadow 0.16s, border 0.17s;
}
.cta-btn, button, input[type='submit'] {
  transition: background 0.17s, color 0.15s, box-shadow 0.21s;
}
.card:hover, .product-item:hover {
  box-shadow: 0 6px 28px rgba(34,58,73,0.19);
  border-color: #B29562;
}

/* =================================================
   ACCESSIBILITY
================================================== */
:focus {
  outline: 2px solid #B29562;
  outline-offset: 1px;
}

/* =================================================
   PRINT FRIENDLY
================================================== */
@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  header, footer, #cookie-banner, .mobile-menu, .cta-btn, .card, .product-item {
    display: none !important;
  }
}