/* CSS RESET & NORMALIZATION */
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, 
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 {
  scroll-behavior: smooth;
}
body {
  background: #F3ECE3;
  font-family: 'Roboto', Arial, sans-serif;
  color: #234156;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #a34712;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B96842;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #234156;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 14px;
  color: #234156;
}
strong, b {
  font-weight: bold;
}

/* LAYOUT CONTAINERS */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* FLEX UTILITY CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(180,104,66,0.09);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(163,71,18,0.11);
  transform: translateY(-4px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.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: #fffdf8;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(35,65,86,0.09);
  margin-bottom: 20px;
  max-width: 720px;
  color: #234156;
}
.testimonial-card blockquote {
  margin: 0;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #234156;
}
.testimonial-card footer {
  font-size: 0.98rem;
  color: #a34712;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(163, 71, 18, 0.07);
  margin-bottom: 20px;
  min-width: 200px;
}

/* INDEX PAGE SPECIAL FEATURE LIST */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  list-style: none;
  padding-left: 0;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(180,104,66,0.10);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  max-width: 285px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-grid li:hover {
  box-shadow: 0 7px 32px rgba(163,71,18,0.13);
  transform: translateY(-3px) scale(1.012);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f3ece3;
}

/* PRODUCT CATEGORIES (tuotteet.html) */
.product-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}
.product-categories-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(180,104,66,0.10);
  padding: 26px 20px 20px 20px;
  flex: 1 1 215px;
  margin-bottom: 20px;
  min-width: 215px;
  max-width: 270px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.product-categories-list li:hover {
  box-shadow: 0 6px 26px rgba(163,71,18,0.13);
  transform: translateY(-2px) scale(1.008);
}

/* BLOG LIST (blogi.html) */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}
.blog-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(180,104,66,0.09);
  padding: 24px 22px 20px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 310px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.blog-list li:hover {
  box-shadow: 0 6px 26px rgba(163,71,18,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* BUTTONS & CTA */
.cta-primary {
  display: inline-block;
  background: #B96842;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 45px;
  box-shadow: 0 4px 18px rgba(163,71,18,0.11);
  transition: background 0.18s, box-shadow 0.18s, transform 0.10s;
  border: none;
  margin-top: 12px;
  margin-bottom: 12px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #a34712;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 32px rgba(163,71,18,0.13);
  color: #fff;
}
button.cta-primary {
  cursor: pointer;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(35,65,86,0.09);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
}
header nav a {
  font-size: 1.03rem;
  color: #234156;
  font-weight: 600;
  border-radius: 20px;
  padding: 7px 16px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: #f3ece3;
  color: #B96842;
}
header a img {
  height: 40px;
  max-height: 40px;
  min-width: 90px;
  margin-right: 10px;
  border-radius: 10px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #B96842;
  color: #fff;
  font-size: 2rem;
  padding: 6px 22px 6px 18px;
  border-radius: 12px;
  border: none;
  margin-left: 12px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 14px rgba(182,104,66,0.10);
  z-index: 99;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #a34712;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF8F2;
  box-shadow: 0 6px 30px rgba(35,65,86,0.16);
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #B96842;
  color: #fff;
  font-size: 1.7rem;
  border-radius: 10px;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  padding: 7px 16px 7px 14px;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #a34712;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #234156;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 8px 12px 0;
  border-radius: 24px;
  transition: color 0.14s, background 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #B96842;
  background: #f3ece3;
}

/* Hide desktop nav and show burger on mobile */
@media (max-width: 900px) {
  header .container nav, header .container .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}


/* FOOTER */
footer {
  background: #234156;
  color: #fff;
  padding: 42px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.footer-brand img {
  max-height: 38px;
  border-radius: 12px;
}
.footer-brand span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.02rem;
  background: transparent;
  border-radius: 14px;
  padding: 3px 10px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B96842;
  background: #fffdf8;
}
.footer-contact ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 5px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 1rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 6px;
}

/* RESPONSIVE - MOBILE FIRST! */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 26px 7px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .card-container, .content-grid, .product-categories-list, .blog-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* More responsive minor tweaks */
@media (max-width: 480px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .feature-grid li, .product-categories-list li, .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* TABLES FOR LEGAL PAGES */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
}
th, td {
  padding: 12px 9px;
  border-bottom: 1px solid #e6e2d7;
}
th {
  color: #B96842;
  text-align: left;
  font-size: 1.08rem;
}

/* QUOTES & BLOCKQUOTES */
blockquote {
  background: #F3ECE3;
  padding: 14px 18px;
  border-left: 4px solid #B96842;
  border-radius: 12px;
  color: #234156;
  font-style: italic;
  margin-bottom: 12px;
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 13px;
  border: 1px solid #D9CBB8;
  border-radius: 11px;
  background: #fff;
  margin-bottom: 10px;
  font-size: 1rem;
  transition: border 0.1s, box-shadow 0.1s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B96842;
  box-shadow: 0 2px 8px rgba(163,71,18,0.07);
  outline: none;
}
label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

/* MICRO INTERACTIONS */
.card, .feature-grid li, .product-categories-list li, .blog-list li, .testimonial-card, .cta-primary {
  transition: box-shadow 0.2s, transform 0.2s, background 0.16s, color 0.13s;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1200;
  background: #fffdf8;
  color: #234156;
  box-shadow: 0 -4px 24px rgba(163,71,18,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 7vw 20px 7vw;
  font-size: 1rem;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  transition: transform 0.4s cubic-bezier(.87,0,.29,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner p {
  margin: 0 20px 0 0;
  flex: 1 1 0%;
}
.cookie-banner .cookie-action-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: #B96842;
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0;
  box-shadow: 0 2px 11px rgba(163,71,18,0.08);
  transition: background 0.13s, color 0.14s;
}
.cookie-banner button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.cookie-banner .settings-btn {
  background: #234156;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #a34712;
  color: #fff;
}
.cookie-banner .secondary-btn {
  background: #fff;
  color: #B96842;
  border: 1px solid #B96842;
}
.cookie-banner .secondary-btn:hover,
.cookie-banner .secondary-btn:focus {
  background: #B96842;
  color: #fff;
}

/* COOKIE MODAL (preferences) */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1210;
  background: rgba(35,65,86,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.27s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffdf8;
  border-radius: 18px;
  max-width: 470px;
  min-width: 280px;
  padding: 35px 30px 22px 30px;
  box-shadow: 0 8px 42px rgba(163,71,18,0.16);
  position: relative;
  animation: fadeinmodal 0.35s cubic-bezier(.74,0,.44,1);
}
@keyframes fadeinmodal {
  from { opacity: 0; transform: scale(0.97) translateY(22px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.26rem;
  color: #a34712;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 25px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.07rem;
  color: #234156;
  margin-bottom: 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: #B96842;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid #B96842;
  margin-right: 0;
}
.cookie-category .essential {
  opacity: 0.67;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  color: #a34712;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  border-radius: 9px;
  padding: 2px 9px;
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #f3ece3;
}
@media (max-width: 600px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 22px 10px 15px 10px;
  }
}

/* Z-INDEX declarations */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { z-index: 100; }
footer { z-index: 10; }

/* MISCELLANEOUS */
hr {
  border: none;
  border-top: 1.5px solid #e6e2d7;
  margin: 21px 0 21px 0;
}
::-webkit-input-placeholder { color: #A8A4A0; opacity: 1; }
::-moz-placeholder { color: #A8A4A0; opacity: 1; }
:-ms-input-placeholder { color: #A8A4A0; opacity: 1; }
::placeholder { color: #A8A4A0; opacity: 1; }

/* ADDITIONAL SPACING (if extra alignment needed) */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* Print logo color protection (SVG) */
img[alt*="logo"], img[alt*="Logo"] {
  background: transparent;
  box-shadow: none;
  border-radius: 13px;
}

/* BREATHING ROOM (for white space) */
main section:not(:last-child) {
  margin-bottom: 46px;
}

/* VISUAL EFFECTS FOR DECORATIVE ELEMENTS */
.card::after, .feature-grid li::after, .testimonial-card::after {
  content: '';
  display: none;
}

/* END OF CSS */
