/* ========================================================================== */
/* CSS RESET and 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,
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; height: auto; }
button { background: none; border: none; font: inherit; cursor: pointer; }
:focus { outline: 2px solid #2A9D8F; outline-offset: 2px; }
hr { border: 0; height: 1px; background: #E5E5E5; margin: 24px 0; }

/* ========================================================================== */
/* ROOT & BRANDING -- Scandinavian Clean                                      */
/* ========================================================================== */
:root {
  /* Brand colors */
  --primary: #264653;
  --secondary: #2A9D8F;
  --accent: #F4A261;
  --gray-100: #F6F5F3;
  --gray-200: #ECECEC;
  --gray-300: #E0E0E0;
  --gray-500: #969696;
  --white: #fff;
  --black: #222;
  /* Typography */
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  /* Shadows & Radius */
  --card-shadow: 0 4px 18px rgba(38, 70, 83, 0.08);
  --focus-shadow: 0 0 0 2px var(--secondary);
  --radius: 14px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--gray-100);
  color: var(--primary);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography scale & hierarchy */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--primary);
  line-height: 1.14;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
}

p, li, .body {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 10px;
}
strong { font-weight: 600; color: var(--primary); }
em, i    { color: var(--secondary); }

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.3rem; }
  h3, .h3 { font-size: 1.1rem; }
  h4, .h4 { font-size: 0.98rem; }
  p, li, .body { font-size: 0.95rem; }
}

/* Links default + hover */
a {
  color: var(--secondary);
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================================================== */
/* LAYOUT and SPACING -- Flexbox only!                                        */
/* ========================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  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: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  font-size: 1.06rem;
  max-width: 500px;
  min-width: 230px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  padding: 24px 18px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}

/* Flexbox grid for page specific sections */
.feature-grid,
.team-grid,
.values-grid,
.service-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 22px 18px 22px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card:hover,
.feature-item:hover {
  box-shadow: 0 8px 25px rgba(38,70,83,0.13);
  transform: translateY(-3px);
}

.team-member {
  background: var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 15px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.client-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.client-story-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 16px;
  flex: 1 1 250px;
  margin-bottom: 20px;
}
.impact-statistics ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.values-grid > div {
  background: var(--white);
  padding: 16px 14px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.faq-list, .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 18px;
  margin-bottom: 10px;
}

/* Utility for common sections */
ul, ol {
  margin-left: 16px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  color: var(--primary);
}

/* ========================================================================== */
/* HEADER & NAV                                                               */
/* ========================================================================== */
header {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(38,70,83,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.main-nav > a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.16s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--gray-200);
  color: var(--secondary);
}
.main-nav img {
  height: 38px; min-width: 96px; margin-right: 20px;
}

.cta-primary {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 11px 28px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 16px rgba(42,157,143,0.11);
  transition: background 0.20s, color 0.12s, transform 0.18s;
  border: none;
  display: inline-block;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: var(--primary) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(244,162,97,0.15);
}

/* Burger menu button (mobile) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 10px 18px;
  background: none;
  border: none;
  border-radius: 8px;
  margin-left: auto;
  z-index: 60;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-200);
}

@media (max-width: 950px) {
  .main-nav { gap: 14px; }
  .main-nav img { margin-right: 8px; }
}

@media (max-width: 850px) {
  .main-nav > a:not(:first-child):not(.cta-primary) {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ======================= MOBILE MENU OVERLAY ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1001;
  background: rgba(38,70,83,0.90);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2.2rem;
  padding: 20px 22px 10px 0;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 30px 32px 0 0;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--white);
  padding: 12px 2px 12px 0;
  border-radius: 7px 0 0 7px;
  width: 100%;
  text-align: right;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 850px) {
  .main-nav {
    justify-content: flex-start;
  }
}

@media (min-width: 851px) {
  .mobile-menu { display: none !important; }
}

/* ========================================================================== */
/* HERO & KEY SECTIONS                                                        */
/* ========================================================================== */
.hero {
  background: linear-gradient(140deg, var(--gray-100), var(--gray-200) 55%, var(--white) 100%);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 50px 0 40px 0;
}
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 18px 0;
    min-height: unset;
  }
}

.features {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 17px rgba(42,157,143,0.06);
  margin-bottom: 60px;
  padding: 42px 0;
}
.features h2 {
  margin-bottom: 22px;
}
.feature-grid { flex-wrap: wrap; }

.testimonials {
  background: var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 36px 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
  justify-content: flex-start;
}
.success-rate-metric {
  color: var(--secondary);
  font-size: 1.14rem;
  font-family: var(--font-display);
  margin-top: 5px;
}

.cta-section {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 20px 48px 20px;
  margin-bottom: 60px;
}
.cta-section h2, .cta-section p {
  color: var(--white);
}
.cta-section .cta-primary {
  margin-top: 16px;
  box-shadow: 0 2px 10px rgba(244,162,97,0.13);
}

@media (max-width: 900px) {
  .feature-grid, .service-card-list, .team-grid, .client-stories, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .service-card, .values-grid > div, .client-story-block, .team-member, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: unset;
  }
}

/* About, Services, Team, and FAQ page layouts */
.team-grid, .service-card-list, .values-grid {
  gap: 24px;
}

/* About and values blocks -- subtle pattern backgrounds */
.values {
  background: var(--gray-100);
  padding: 36px 0;
  border-radius: var(--radius);
}

/* Success Stories page */
.success-stories-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 60px;
  padding: 48px 0 36px 0;
}

/* Cookie and Privacy sections */
.privacy-policy, .cookies-policy, .gdpr-policy, .terms-of-use {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 60px;
  padding: 42px 0;
}

/* ========================================================================== */
/* CONTACT, THANK YOU, & SUPPORT STYLES                                       */
/* ========================================================================== */
.contact-section, .support-info, .thank-you-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 60px;
  padding: 34px 0 28px 0;
}
.company-contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.company-contact-details img {
  width: 18px;
  margin-right: 9px;
  vertical-align: middle;
}
.office-location-map {
  background: var(--gray-200);
  border-radius: 12px;
  padding: 18px 13px;
  margin-top: 14px;
}

@media (max-width: 650px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .section, .hero, .features, .testimonials, .cta-section, .success-stories-section, .privacy-policy, .cookies-policy, .gdpr-policy, .terms-of-use { padding-left: 4px; padding-right: 4px; }
}

/* ========================================================================== */
/* FOOTER STYLES                                                              */
/* ========================================================================== */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 36px 0 16px 0;
  margin-top: 60px;
}
footer p {
  color: white;
}
.footer-nav {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-display);
  margin: 0 3px;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  color: var(--gray-100);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}
@media (max-width: 650px) {
  .footer-contact { font-size: 0.85rem; }
  .footer-nav { font-size: 0.95rem; }
}

/* ========================================================================== */
/* BUTTONS, FORMS, & UTILITY INTERACTIONS                                     */
/* ========================================================================== */
button, .button {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.16s, transform 0.14s, box-shadow 0.17s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-1px) scale(1.03);
}

input, textarea, select {
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  background: var(--gray-100);
  margin-bottom: 16px;
  transition: border 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: var(--focus-shadow);
  outline: none;
}

/* ========================================================================== */
/* COOKIE CONSENT BANNER                                                      */
/* ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  box-shadow: 0 -2px 14px rgba(38,70,83,0.05);
  padding: 22px 10px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: transform 0.33s, opacity 0.33s;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 220px;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 0.97rem;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 500;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.reject {
  background: var(--gray-300);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(38,70,83,0.15);
  z-index: 10000;
  min-width: 310px;
  max-width: 92vw;
  padding: 36px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.28s, transform 0.32s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20%) scale(0.95);
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal .modal-section {
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-toggle {
  accent-color: var(--secondary);
}
.cookie-modal .close-modal-btn {
  align-self: flex-end;
  font-size: 1.5rem;
  background: var(--gray-200);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 4px 12px 8px; font-size: 0.97rem; }
  .cookie-banner .cookie-banner-actions { gap: 10px; }
  .cookie-modal { width: 98vw; min-width: 0; padding: 27px 5vw 22px; }
}

/* ========================================================================== */
/* RESPONSIVE HELPERS                                                         */
/* ========================================================================== */
@media (max-width: 900px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-grid { flex-direction: column; gap: 15px; }
}
@media (max-width: 650px) {
  .section, .hero, .features, .testimonials, .cta-section, .success-stories-section { padding: 22px 0; }
  h1, .h1 { font-size: 1.44rem; }
  h2, .h2 { font-size: 1.15rem; }
}

/* ========================================================================== */
/* MICRO-ANIMATIONS & SHADOWS                                                 */
/* ========================================================================== */
.card, .service-card, .feature-item, .testimonial-card, .client-story-block, .values-grid > div {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .service-card:hover, .feature-item:hover, .client-story-block:hover, .values-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 32px rgba(42,157,143,0.13);
  transform: translateY(-2px) scale(1.025);
}

.cta-primary:active, .button:active, button:active {
  transform: scale(0.98);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* ========================================================================== */
/* ACCESSIBILITY & HELPER CLASSES                                             */
/* ========================================================================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ========================================================================== */
/* END OF CSS                                                                 */