/* =========================================================
   CSS RESET & NORMALIZE
   ========================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F5F4F0;
  color: #252850;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #252850;
  text-decoration: none;
  outline: none;
  transition: color 0.18s;
}
a:focus, a:hover {
  color: #A77941;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  cursor: pointer;
  border: none;
  outline: none;
}

/* =========================================================
   FONT IMPORTS & SCANDINAVIAN TYPOGRAPHY
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #252850;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.subheadline {
  font-family: 'Lato', Arial, sans-serif;
  color: #A77941;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.5;
}
p, ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: #252850;
}
strong {
  font-weight: 700;
  color: #252850;
}

/* =========================================================
   LAYOUT & CONTAINER STYLES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Scandinavian whitespace helpers */
.text-section {
  margin-bottom: 24px;
}
.text-section ul {
  margin: 0 0 16px 0;
  padding: 0;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}

/* =========================================================
   HEADER + NAVIGATION
   ========================================================= */
header {
  background: #fff;
  border-bottom: 1px solid #E3E1DD;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.logo img {
  height: 52px;
  width: auto;
  vertical-align: middle;
}

/* Main navigation (Desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: none;
  color: #252850;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F4F0;
  color: #A77941;
}
.main-nav .btn-primary {
  margin-left: 18px;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #252850;
  border-radius: 6px;
  padding: 6px 14px 6px 10px;
  font-size: 2rem;
  transition: background 0.18s;
  z-index: 103;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F5F4F0;
  color: #A77941;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(37,40,80,0.10);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 32px 6px 0;
  background: none;
  color: #A77941;
  font-size: 2.2rem;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F5F4F0;
  color: #252850;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-left: 32px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #252850;
  background: none;
  border-radius: 6px;
  padding: 8px 18px;
  transition: background .13s, color .13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #A77941;
  background: #F5F4F0;
}

@media (max-width: 1150px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  body {
    font-size: 0.97rem;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 850px) {
  header .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 12px;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.98rem;
  }
}

/* Hide nav and show menu button on mobile */
@media (max-width: 768px) {
  header .container {
    height: 64px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo img {
    height: 44px;
  }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: #F5F4F0;
  padding: 60px 0 48px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Don't use grid */
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 520px;
}
.hero h1 {
  color: #252850;
  font-size: 2.7rem;
}
.hero .btn-primary {
  margin-top: 10px;
}
@media (max-width: 700px) {
  .hero {
    padding: 36px 0 30px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* =========================================================
   FLEX LAYOUT COMPONENTS & PATTERNS
   ========================================================= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 22px 0 rgba(37,40,80,0.08);
  padding: 28px 20px 18px 20px;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .19s, transform .19s;
  margin-bottom: 20px;
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
}
.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
  color: #252850;
}
.feature p {
  font-size: 0.98rem;
  color: #59595a;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 32px 0 rgba(167,121,65,0.13);
  transform: translateY(-2px) scale(1.016);
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.service {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(37,40,80,0.08);
  padding: 22px 20px 16px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service h3 {
  font-size: 1.08rem;
  color: #252850;
  margin-bottom: 2px;
}
.service strong {
  color: #A77941;
  font-weight: 700;
}

.price-table {
  background: #faf9f7;
  border-radius: 12px;
  padding: 18px 18px 10px 18px;
  box-shadow: 0 1px 8px 0 rgba(37,40,80,0.09);
  margin-bottom: 20px;
}
.price-table h3 {
  color: #252850;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.price-table ul {
  margin-bottom: 0;
}
.price-table ul li {
  font-size: 0.98rem;
  color: #252850;
  margin-bottom: 8px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(37,40,80,0.08);
  margin-bottom: 20px;
  padding: 24px 20px 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 14px 0 rgba(37,40,80,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  max-width: 360px;
  min-width: 220px;
  margin-bottom: 20px;
  border-left: 4px solid #A77941;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: #252850;
  font-size: 1.01rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #6a6a6a;
  font-size: 0.93rem;
  font-weight: 400;
  margin-top: auto;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(37,40,80,0.13);
  border-color: #252850;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.faq {
  background: #fafaf8;
  border-radius: 9px;
  box-shadow: 0 1px 7px 0 rgba(37,40,80,0.07);
  padding: 18px 16px 10px 16px;
  flex: 1 1 270px;
  margin-bottom: 20px;
}
.faq h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* CONTACT & FOOTER */
.contact, .contact-details {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 22px 0 rgba(37,40,80,0.08);
  margin-bottom: 30px;
  padding: 36px 18px;
}

footer {
  background: #faf9f7;
  padding: 32px 0 22px 0;
  border-top: 1.5px solid #e6e5e2;
  font-size: 0.99rem;
}
.footer-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #777;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.99rem;
  transition: color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A77941;
}
.footer-brand {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  color: #989898;
  font-size: 0.97rem;
  margin-top: 6px;
}
.footer-brand img {
  height: 32px;
}

@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
  .testimonials {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .services-list {
    gap: 14px;
  }
  .testimonial-card {
    min-width: 180px;
    padding: 16px;
  }
}
@media (max-width: 700px) {
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonials {
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    border-left: 3px solid #A77941;
    padding: 14px;
  }
}

/* ==============================================
   BUTTONS & INTERACTIONS
   ============================================== */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #fff;
  background: #252850;
  border-radius: 30px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 1px 8px 0 rgba(37,40,80,0.05);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A77941;
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(37,40,80,0.09);
  transform: translateY(-1px) scale(1.012);
}
.btn-primary:active {
  background: #252850;
  transform: scale(0.98);
}

/* Utility spacings */
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-12 { margin-bottom: 12px; }

/* Inputs (if any forms are added) */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  background: #faf9f7;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  color: #252850;
  margin-bottom: 16px;
  width: 100%;
  box-shadow: none;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #A77941;
  outline: none;
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #252850;
  border-top: 2.5px solid #E3E1DD;
  box-shadow: 0 -3px 16px 0 rgba(37,40,80,0.07);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 300;
  animation: slideUp 0.55s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.cookie-banner .btn-cookie {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  background: #252850;
  color: #fff;
  font-weight: 500;
  border: none;
  outline: none;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .btn-cookie.cookie-settings {
  background: #F5F4F0;
  color: #252850;
  border: 1.5px solid #E3E1DD;
}
.cookie-banner .btn-cookie:hover,.cookie-banner .btn-cookie:focus {
  background: #A77941;
  color: #fff;
}
.cookie-banner .btn-cookie.cookie-settings:hover, .cookie-banner .btn-cookie.cookie-settings:focus {
  background: #e9e7e2;
  color: #252850;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 310;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,40,80,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinModal .28s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeinModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 36px 0 rgba(37,40,80,0.15);
  min-width: 290px;
  max-width: 98vw;
  padding: 30px 20px 18px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideModalIn .41s cubic-bezier(.4,0,.2,1);
}
@keyframes slideModalIn {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  color: #A77941;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 1.4rem;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #252850;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category .category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cookie-category label {
  font-size: 1.09rem;
  font-weight: 600;
  color: #252850;
}
.cookie-category .desc {
  font-size: 0.98rem;
  color: #646464;
  margin-top: 2px;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  border-radius: 15px;
  background: #e8e9e7;
  position: relative;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s;
}
.cookie-toggle[aria-checked="true"] {
  background: #A77941;
}
.cookie-toggle .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px 0 rgba(37,40,80,0.13);
  transition: left .16s cubic-bezier(.4,0,.2,1);
}
.cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 23px;
}
.cookie-category .cookie-toggle[aria-disabled="true"] {
  background: #cacaca;
  cursor: not-allowed;
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  align-items: center;
}
.cookie-modal .btn-cookie {
  min-width: 110px;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 10px 12px;
  }
}

/* =========================================================
   RESPONSIVE DESIGN & SPACING
   ========================================================= */
@media (max-width: 768px) {
  .features-grid, .testimonials, .content-grid, .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .price-table {
    padding: 12px 8px 8px 8px;
  }
  .service, .card, .feature, .testimonial-card {
    padding: 14px 10px 14px 10px;
    max-width: 100%;
    min-width: 0;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 6px;
  }
  .contact, .contact-details {
    padding: 18px 4px;
  }
  main {
    padding-bottom: 78px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.06rem; }
  .btn-primary, .cookie-banner .btn-cookie {
    font-size: 0.92rem;
    padding: 10px 18px;
  }
}

/* Spacing: minimum 20px margin between all cards/sections handled above with gap and margin-bottom */

/* =========================================================
   ADDITIONAL MICRO-INTERACTIONS
   ========================================================= */
.feature:active, .service:active {
  box-shadow: 0 2px 8px 0 rgba(167,121,65,0.12), 0 1px 2px 0 rgba(37,40,80,0.08);
  transform: scale(0.99);
}
.testimonial-card:active {
  box-shadow: 0 2px 10px 0 rgba(167,121,65,0.12);
}

/* Subtle link underline effect */
.main-nav a::after, .footer-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #A77941;
  transition: width .18s;
  margin: 0 auto 0 auto;
}
.main-nav a:hover::after, .main-nav a:focus::after, .footer-nav a:hover::after, .footer-nav a:focus::after {
  width: 90%;
}

/* Icon style for contact info */
.text-section img {
  width: 20px;
  height: 20px;
  margin-right: 3px;
  vertical-align: middle;
  filter: grayscale(40%) brightness(0.85);
}

/* Hide outline except for keyboard navigation */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid #A77941;
  outline-offset: 2px;
}

/* Accessibility: Reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
