/* ========================
   CSS RESET & BASE STYLES
   ======================== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: #F5F7FA;
  color: #173043;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: #23527C;
  transition: color 0.2s;
}

/* ============================
   CUSTOM PROPERTIES (FALLBACK)
   ============================ */
:root {
  --color-primary: #23527C;
  --color-secondary: #4FB286;
  --color-accent: #F5F7FA;
  --color-action: #F46262;
  --color-bg-light: #F5F7FA;
  --color-bg-dark: #173043;
  --color-text-main: #173043;
  --color-text-invert: #fff;
  --color-testimonial-bg: #fff;
  --color-testimonial-border: #E1E6ED;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-card: 0 4px 24px rgba(35,82,124,0.16);
  --shadow-pop: 0 6px 32px rgba(35,82,124,0.22);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 7px;
}

/* =====================
   HEADINGS & TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 22px; line-height: 1.25; }
h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; color: var(--color-secondary); }
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
p, ul, ol { font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; color: var(--color-text-main); }
ul, ol { padding-left: 18px; margin-bottom: 20px; }
ul li, ol li { margin-bottom: 9px; line-height: 1.6; }
strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  color: var(--color-action);
}

/* ====================
   CONTAINER & LAYOUTS
   ==================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 1024px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 48px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px;
  min-width: 270px;
  flex: 1 1 310px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px) scale(1.03);
}

.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(--color-testimonial-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(35,82,124,0.08);
  border: 1.5px solid var(--color-testimonial-border);
  margin-bottom: 24px;
  max-width: 570px;
  flex: 1 1 280px;
  color: #081828;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.certifications {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0 0;
}

.guarantees {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--color-primary);
}

/* Cards for home/feature blocks */
.content-wrapper > ul li,
.content-wrapper > ol li {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(79,178,134,0.08), 0 0.5px 3px rgba(35,82,124,0.04);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.18s, background 0.2s;
}
.content-wrapper > ul li:hover {
  background: #F7FDFB;
  box-shadow: 0 4px 20px rgba(79,178,134,0.18);
}

.content-wrapper > ul,
.content-wrapper > ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(79,178,134,0.055);
  padding: 0 0 2px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  /* subtle hand-drawn squiggle as artistic accent */
  border-bottom: 3px solid var(--color-secondary);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 5px 4px;
  border-radius: 7px;
  transition: background 0.22s, color 0.22s;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 1.5px;
  transition: width 0.23s;
  margin-top: 3px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
header img {
  height: 48px;
  margin-right: 6px;
}
.cta-btn {
  background: linear-gradient(90deg, var(--color-secondary), #43c5ba 80%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 11px 28px;
  margin-left: 20px;
  border: none;
  box-shadow: 0 3px 13px rgba(35,82,124,0.07);
  text-shadow: 0 1px 0 #27a09114;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.14s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #34b57d, var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 18px rgba(35,82,124,0.14);
  transform: scale(1.045) translateY(-1.5px) rotate(-2deg);
}

/* Only show burger on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s;
  z-index: 51;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================
   MOBILE MENU OVERLAY
   ======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(35, 82, 124, 0.98);
  color: #fff;
  z-index: 102;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.75,.01,.22,1.42);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 600;
  padding: 30px 24px 12px 24px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 110;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
  margin-top: 10px;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.37rem;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 12px;
  width: 100%;
  transition: background 0.25s, color 0.16s;
  display: block;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateX(10px) scale(1.03);
}

@media (max-width: 450px) {
  .mobile-nav {
    padding: 0 13px;
  }
  .mobile-nav a {
    font-size: 1.06rem;
    padding: 8px 1px;
  }
}

/* ========================
   HERO & SECTION ARTISTRY
   ======================== */
section {
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(79,178,134,0.08), 0 0.5px 3px rgba(35,82,124,0.07);
  background: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  transition: box-shadow 0.22s;
}
section:before {
  content: '';
  display: block;
  /* playful brush accent */
  position: absolute;
  left: -7%;
  top: -60px;
  width: 38%;
  height: 70px;
  background: var(--color-secondary);
  opacity: 0.16;
  border-radius: 36px 90px 30px 55px;
  filter: blur(12px);
  z-index: 1;
}
section:after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -40px;
  width: 33%;
  height: 52px;
  background: var(--color-primary);
  opacity: 0.080;
  border-radius: 0 40px 80px 120px;
  filter: blur(11px);
  z-index: 1;
}
section .container, section .content-wrapper, section .text-section {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  section {
    border-radius: var(--radius-md);
    margin-bottom: 22px;
  }
}

/* =====================
   TABLE STYLING (PRICES)
   ===================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 1.5px 8px rgba(35,82,124,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 26px;
}
thead {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
}
th, td {
  padding: 14px 18px;
  font-size: 1rem;
}
th {
  font-weight: 700;
}
td {
  color: #173043;
}
tr:nth-child(even) td {
  background: #f5f7fabb;
}
tr:hover td {
  background: #f5f7fa;
}

/* Artistic visual accent for price tables */
@media (max-width: 620px) {
  table, thead, tbody, tr, th, td {
    display: block;
  }
  th, td {
    padding: 12px 7px;
    width: 100%;
    box-sizing: border-box;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 10px;
    box-shadow: 0 1px 2px #e5e5e5;
  }
}

/* ==================
   FOOTER
   ================== */
footer {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  padding: 34px 0 14px 0;
  margin-top: 30px;
  border-top-left-radius: 27px;
  border-top-right-radius: 27px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.88;
  transition: color 0.17s, opacity 0.17s;
  border-radius: 5px;
  padding: 5px 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  background: rgba(255,255,255,0.10);
}
.footer-info {
  font-size: 0.98rem;
  opacity: 0.88;
}

/* =============================
   TESTIMONIALS & MICROSERVICES
   ============================= */
.testimonial-card {
  border-left: 6px solid var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1.09rem;
  line-height: 1.6;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(35,82,124,0.08);
}
.testimonial-card p {
  margin-bottom: 6px;
  color: #183547;
  font-style: italic;
}
.testimonial-card strong {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.96rem;
  color: var(--color-primary);
  opacity: 0.90;
}

/* ========================
   BUTTONS & INTERACTIONS
   ======================== */
button, .cta-btn, input[type="submit"] {
  font-size: 1.07rem;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, transform 0.14s;
  box-shadow: 0 2px 10px rgba(35,82,124,0.05);
}
button:focus, .cta-btn:focus { box-shadow: 0 0 0 2px var(--color-secondary) inset; }

/* ========================
   RESPONSIVE FLEX CONTROLS
   ======================== */
@media (max-width: 1024px) {
  .container { max-width: 94vw; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 7px; }
  .main-nav { display:none; }
  .cta-btn { display: none; }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { max-width: 100%; }
  section { margin-bottom: 18px; }
  header .container { gap: 10px; min-height: 54px; }
}
@media (max-width: 550px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.01rem; }
}

/* ===============
   ICON/LIST STYLE
   =============== */
.content-wrapper ul li img,
.text-section ul li img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
  flex-shrink: 0;
  filter: brightness(0.9) contrast(1.05);
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 1.005rem;
  color: #23527C;
}

/* =================
   COOKIE CONSENT
   ================= */
.cookie-banner {
  position: fixed;
  z-index: 121;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #173043;
  box-shadow: 0 -3px 12px rgba(35,82,124,0.18);
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: cookieBannerIn 0.5s cubic-bezier(.7,1.7,.33,.69) both;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  border: none;
  margin: 0 1.5px;
  transition: background 0.18s, color 0.17s, box-shadow 0.16s, transform 0.10s;
  font-size: 1rem;
  box-shadow: 0 2px 7px rgba(79,178,134,0.07);
}
.cookie-banner .cookie-btn.reject {
  background: #e74c3c;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #23527C;
}
.cookie-banner .cookie-btn:hover, .cookie-btn:focus {
  background: #34b57d;
  color: #fff;
  transform: scale(1.041);
}
.cookie-banner .cookie-btn.reject:hover {
  background: #b83728;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #183547;
}
.cookie-banner a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ========================
   COOKIE MODAL (PREFERENCES)
   ======================== */
.cookie-modal {
  position: fixed;
  z-index: 130;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.94);
  width: 98vw;
  max-width: 410px;
  background: #fff;
  color: #183547;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(35,82,124,0.18);
  padding: 28px 26px 22px 26px;
  animation: cookieModalIn 0.44s cubic-bezier(.14,.94,.4,1.16) both;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%, -80%) scale(0.86); }
  to {   opacity: 1; transform: translate(-50%, -50%) scale(1);   }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--color-secondary);
  font-weight: 700;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #173043cc;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover { color: var(--color-secondary); }

.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 16px 0;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 8px 0;
}
.cookie-toggle {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.essential {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  padding: 8px 19px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.18s;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #23527C;
}

@media (max-width: 550px) {
  .cookie-modal {padding:16px 8px;}
}

/* ===== Scrollbar =============*/
::-webkit-scrollbar {width: 10px;background: #f3fbf7;}
::-webkit-scrollbar-thumb {background: #23527C45; border-radius: 5px;}

/* ==============================
   ARTISTIC/CREATIVE ACCENTS
   ============================== */
body, section, header, footer, .cta-btn, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  /* playful subtle border radius for creative vibe */
  border-radius: var(--radius-lg);
}
section, .card, .testimonial-card {
  /* gentle shadow for uplifted effect */
  box-shadow: 0 3px 22px rgba(35,82,124,0.09);
}
.cta-btn, .card {
  font-family: var(--font-display);
  border-width: 3.5px;
}

/* --- ARTISTIC DISPLAY FONT HEADINGS --- */
h1, h2, .cta-btn, .footer-nav a {
  text-shadow: 0.5px 1.5px 0 #BCD7C7, 0 1.5px 8px #4FB28628;
  letter-spacing: 0.01em;
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
a, .cta-btn, .cookie-btn, button {
  transition: color 0.16s, background 0.18s, box-shadow 0.13s, transform 0.13s;
}
.cta-btn:active {
  background: #173043;
  color: #fff;
  transform: scale(0.98) translateY(1px);
}

/* ===================
   FORM & INPUTS (for contact)
   =================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #BCD7C7;
  background: #fafcfd;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.17s, background 0.08s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #f7fdfb;
}

/* ==================
   PRINT
   ================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none!important;
  }
  body { background: #fff; color: #000; }
}

/* ===========================
   INPUT FONTS FALLBACKS
   =========================== */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular'),
    url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
  font-style: normal; font-weight: 700;
}
@font-face {
  font-family: 'Open Sans';
  src: local('Open Sans'), local('OpenSans-Regular'),
    url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
  font-style: normal;
  font-weight: 400;
}

/* =================================
   FOCUS STATES FOR KEYBOARD ACCESS
   ================================= */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  z-index: 3;
}

/* =============================
   MISCELLANEOUS ADJUSTMENTS
   ============================= */
@media (max-width: 420px) {
  .footer-nav {
    flex-direction: column;
    gap: 11px;
  }
  .content-wrapper {
    gap: 8px;
  }
  .testimonial-card {
    padding: 11px 7px;
    border-radius: var(--radius-md);
  }
}
/* Last spacing tweak: Ensure all cards/sections min 20px apart */
.section, .card, .testimonial-card, .content-wrapper > ul li {
  margin-bottom: 22px;
}
/* No overlap guaranteed */

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