/* ------------------
  RESET & BASE STYLES
------------------- */
html {
  box-sizing: border-box;
  height: 100%;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #F6F6F2;
  color: #1D4C45;
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #1D4C45;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
a:hover,
a:focus {
  color: #A8C4B7;
  outline: none;
}
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}
ul {
  list-style: square inside;
}
ol {
  list-style: decimal inside;
}
li {
  margin-bottom: 0.5rem;
}
blockquote,
.quote {
  margin: 24px 0;
  padding: 24px 32px;
  border-left: 6px solid #A8C4B7;
  background: #fff;
  font-style: italic;
  color: #21584e;
  font-size: 1.125rem;
}

/* ------------------------
  BRAND COLORS & TYPOGRAPHY
------------------------ */
:root {
  --brand-primary: #1D4C45;
  --brand-secondary: #A8C4B7;
  --brand-accent: #F6F6F2;
  --brand-text-dark: #1D4C45;
  --brand-text-light: #fff;
  --brand-shadow: rgba(29,76,69,0.09);
  --spacing-base: 16px;
  --radius: 18px;
  --radius-sharp: 4px;
  --transition: 0.28s cubic-bezier(.77,0,.18,1);
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Source+Sans+Pro:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #1D4C45;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
}
h2 {
  font-size: 1.88rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.25rem;
  color: #437266;
  margin-bottom: 1.5rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
}
p {
  margin-bottom: 1.125em;
}
strong {
  font-weight: 700;
}
small, .small-print {
  font-size: 0.94rem;
}

/* ---------------
   STRUCTURE
--------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* Section spacing - geometric structured pattern */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}

/* ---------------
   HEADER & NAV
--------------- */
header {
  background: #fff;
  box-shadow: 0 2px 24px -12px var(--brand-shadow);
  border-bottom: 3px solid var(--brand-secondary);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 18px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 0 8px 0;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  border-bottom: 2px solid var(--brand-secondary);
  color: var(--brand-secondary);
  background: none;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  border-radius: var(--radius);
  padding: 12px 30px;
  box-shadow: 0 4px 16px -10px var(--brand-shadow);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.12s;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  outline: none;
}

/* Hamburger + mobile nav */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 300;
  position: relative;
  margin-left: 18px;
  transition: background 0.14s;
}
.mobile-menu-toggle:active {
  background: #21584e;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  box-shadow: 4px 0 60px -16px var(--brand-shadow);
  z-index: 400;
  transform: translateX(-105%);
  transition: transform var(--transition);
  padding: 18px 28px 28px 28px;
  gap: 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: #21584e;}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: bold;
  color: var(--brand-primary);
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--brand-secondary);
  background: var(--brand-accent);
  outline: none;
}

/* Hide navigation on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Overlay for menu (touch outside closes menu) */
.mobile-menu::after {
  display: none;
}

@media (max-width: 400px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 12px 6vw;
  }
}

/* -------------
  HERO SECTIONS
------------- */
section:first-of-type {
  background: #A8C4B7;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--brand-primary);
  margin-bottom: 60px;
  position: relative;
}
section:first-of-type h1 {
  color: #1D4C45;
}

/* -------------------
  FLEX STRUCTURES
------------------- */
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 28px 30px 28px 30px;
  border-radius: var(--radius-sharp);
  box-shadow: 0 4px 24px -12px var(--brand-shadow);
  min-width: 220px;
  flex: 1 1 240px;
  border: 2.5px solid #e8efec;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 36px -10px var(--brand-shadow);
  transform: translateY(-3px) scale(1.03);
  border-color: var(--brand-secondary);
}

/* Testimonial card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5faf7;
  border-radius: var(--radius);
  box-shadow: 0 8px 36px -10px var(--brand-shadow), 0 1px 0 #e6f1ee;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-left: 8px solid var(--brand-secondary);
  flex: 1 1 320px;
  color: #1D4C45;
}
.testimonial-card strong { color: #1D4C45;}
.testimonial-card span {
  color: #adad21;
  font-size: 1.15em;
  margin-left: 8px;
}

/* Cards (if introduced in blog/pages) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px -10px var(--brand-shadow);
  padding: 26px 24px 18px 24px;
}

.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;
}

.text-section {
  margin-top: 12px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 0;
  width: 20px;
  height: 20px;
}

/* Blog Popular tags */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.popular-tags span {
  background: #A8C4B7;
  border-radius: var(--radius-sharp);
  color: #1D4C45;
  font-size: 0.94rem;
  padding: 4px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Blog articles */
article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px -12px var(--brand-shadow);
  margin-bottom: 20px;
  padding: 24px 21px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid #A8C4B7;
}
article h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}
article a {
  display: inline-block;
  margin-top: 5px;
  font-size: 1.06rem;
  color: #1D4C45;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #A8C4B7;
  transition: border-color 0.18s, color 0.18s;
}
article a:hover,
article a:focus {
  color: #A8C4B7;
  border-color: #1D4C45;
  outline: none;
}
article:hover, article:focus-within {
  box-shadow: 0 8px 38px -10px var(--brand-shadow);
  transform: translateY(-3px) scale(1.025);
}

/* ---------------
   FORMS (newsletter etc.)
--------------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius-sharp);
  outline: none;
}
input, textarea, select {
  border: 1.5px solid #A8C4B7;
  padding: 10px 13px;
  margin-bottom: 13px;
  background: #F6F6F2;
  color: #1D4C45;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border-color: #1D4C45;
  box-shadow: 0 0 0 3px #a8c4b742;
}

button, .btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sharp);
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.14s;
  margin-top: 8px;
}
button:hover, .btn:hover,
button:focus, .btn:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: translateY(-1px) scale(1.03);
  outline: none;
}

/* ---------------
  FAQ/Accordion
--------------- */
dl {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 24px -10px var(--brand-shadow);
  padding: 24px 26px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 1.15rem;
  margin-top: 16px;
  margin-bottom: 10px;
}
dd {
  margin-bottom: 12px;
  margin-left: 10px;
  color: #21584e;
  font-size: 1.04rem;
}

/* ---------------
  FOOTER
--------------- */
footer {
  background: #1D4C45;
  color: #fff;
  padding: 32px 0 22px 0;
  border-top: 5.5px solid #A8C4B7;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
}
footer nav a {
  color: #F6F6F2;
  transition: color 0.18s;
  font-weight: 700;
  letter-spacing: 0.02em;
}
footer nav a:hover, footer nav a:focus {
  color: #A8C4B7;
  text-decoration: underline;
  outline: none;
}
footer address {
  font-style: normal;
  margin-right: 13px;
}
footer .text-section {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 8px;
  align-items: flex-start;
  color: #e5f1ed;
  font-size: 0.99rem;
}
footer .small-print {
  margin-top: 16px;
  color: #A8C4B7;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* ---------------
  COOKIE CONSENT BANNER + MODAL
--------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1100;
  width: 100%;
  background: #fff;
  color: #1D4C45;
  box-shadow: 0 -6px 32px -8px var(--brand-shadow);
  border-top: 3px solid #A8C4B7;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 8vw 18px 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: cookie-banner-enter 0.7s cubic-bezier(.77,0,.18,1);
  transition: transform 0.3s;
}
@keyframes cookie-banner-enter {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { flex: 1 1 240px; }
.cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btns button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 23px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #1D4C45;
  color: #F6F6F2;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px -8px var(--brand-shadow);
  transition: background 0.18s, color 0.18s, transform 0.13s;
}
.cookie-btns button:hover,
.cookie-btns button:focus {
  background: #A8C4B7;
  color: #1D4C45;
  outline: none;
  transform: scale(1.04);
}
.cookie-btn-settings {
  background: #A8C4B7;
  color: #1D4C45;
  border: 1px solid #1D4C45;
}
.cookie-btn-settings:hover {
  background: #1D4C45;
  color: #F6F6F2;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(29,76,69,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.4s;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 64px -12px var(--brand-shadow);
  padding: 36px 30px 26px 30px;
  min-width: 310px;
  max-width: 98vw;
  color: #1D4C45;
  animation: cookie-modal-popin 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
}
@keyframes cookie-modal-popin {
  from { transform: scale(0.9); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  margin-bottom: 6px;
  text-align: center;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  font-size: 1.08rem;
}
.cookie-category label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #1D4C45;
  cursor: pointer;
  line-height: 1;
}
.cookie-modal-btns {
  display: flex;
  gap: 13px;
}

/* Always show essential as disabled/enabled */
.cookie-category input[type=checkbox][disabled] + label::after {
  content: ' (pakollinen)';
  font-weight: 400;
  font-size: 0.96em;
  color: #7ea69b;
  margin-left: 2px;
}

/* ---------------
  RESPONSIVE
--------------- */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  section {
    padding: 32px 9px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.4rem; }
  section { padding: 24px 5px; }
  .feature-item {
    padding: 18px 13px;
    min-width: 140px;
  }
  .feature-grid {
    gap: 10px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
  .testimonial-card {
    padding: 15px 10px;
    gap: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.99rem;
    padding: 16px 14px;
  }
  .cookie-btns button {
    padding: 9px 15px;
    font-size: 0.98rem;
  }
}
@media (max-width: 700px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  header .container {
    height: auto;
    min-height: 62px;
    padding: 11px 8px;
  }
  footer .text-section {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  section { padding: 16px 2vw; margin-bottom: 36px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
}

/* Utility spacing */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }

/* Geometric accents */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -22px;
  left: 0;
  width: 52px;
  height: 8px;
  background: #A8C4B7;
  clip-path: polygon(0 0, 100% 1%, 94% 100%, 6% 100%);
}
section:first-of-type:before, footer:before {
  display: none;
}

/* CTAs and cards interactive effect */
.cta-btn:active {
  transform: translateY(1px) scale(0.99);
}
.card:active, .feature-item:active, article:active {
  transform: scale(0.99);
}

/* Hide visually */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
}

/* Misc */
::-webkit-input-placeholder { color: #688c81; }
::-moz-placeholder { color: #688c81; }
:-ms-input-placeholder { color: #688c81; }
::placeholder { color: #688c81; }

/* Z-index sorting */
header { z-index: 20; }
.mobile-menu { z-index: 400; }
.cookie-banner { z-index: 1100; }
.cookie-modal-overlay { z-index: 1200; }

/*
Geometric_structured aesthetic is implemented via
- consistent angular, grid-like spacing
- Montserrat for headings (angular, geometric sans)
- boxed cards with strong borders/shadows
- accent bars + backgrounds
- SOLID COLORS ONLY (no gradients)
- only Flexbox (no grid or column properties)
- sharp geometric corners / alternating round (radius: 8px-18px)
*/
