/* CALM GRID – Monochrome Sophisticated - Responsive CSS (Flex only) */

/* ========== CSS RESET & 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,
b, u, i, center,
dl, dt, dd, menu, 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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f7f7f7;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
input, textarea, select, button {
  font: inherit;
  outline: none;
}

/* ========== BRAND VARIABLES ========== */
:root {
  --primary: #314049;
  --secondary: #8ac6d1;
  --accent: #f7f7f7;
  --black: #181818;
  --dark-gray: #292e31;
  --gray: #b4b7ba;
  --white: #fff;

  --shadow: 0 6px 24px rgba(20,24,33,0.10);
  --radius: 14px;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* ========== TYPOGRAPHY ========== */
body {
  font-family: var(--font-body);
  color: var(--black);
  font-size: 16px;
  background: var(--accent);
  letter-spacing: 0.03em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.09;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--dark-gray);
}
h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
}
p, ul, ol, blockquote {
  color: var(--primary);
  font-size: 1.0625rem;
  margin-bottom: 18px;
  line-height: 1.7;
}
strong, b {
  color: var(--black);
  font-weight: 700;
}
a {
  color: var(--primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.price {
  font-family: var(--font-display);
  color: var(--dark-gray);
  font-size: 1.05em;
  font-weight: 600;
}

/* ========== GENERAL CONTAINER AND SECTION ========== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========== FLEXBOX LAYOUT PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 12px 36px rgba(49,64,73,0.18);
  transform: translateY(-2px) scale(1.018);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px 30px 22px 26px;
  margin-bottom: 24px;
  min-width: 280px;
  max-width: 480px;
  transition: box-shadow 0.18s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 9px 22px rgba(49,64,73,0.19);
  transform: translateY(-2px);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--dark-gray);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-size: 1.05em;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .01em;
  margin-top: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--primary);
  padding: 0 0 4px 0;
}
ul li img {
  width: 36px;
  height: 36px;
  filter: grayscale(100%) contrast(1.05);
  margin-right: 10px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 18px 0 rgba(30,36,44,0.045);
  padding-top: 0;
  z-index: 30;
  position: sticky;
  top: 0;
}
.main-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.03rem;
}
.main-nav a {
  color: var(--primary);
  opacity: 0.85;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 0.2s, background 0.25s, opacity 0.25s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--black);
  opacity: 1;
}
.main-nav a.cta-btn {
  background: var(--primary);
  color: var(--white);
  font-weight: bold;
  padding: 8px 26px;
  border-radius: 99px;
  margin-left: auto;
  box-shadow: 0 1px 7px rgba(49,64,73,0.07);
  text-align: center;
  transition: background 0.18s, color 0.2s, transform 0.21s;
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.045);
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 14px;
  display: block;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 2.2rem;
  color: var(--primary);
  z-index: 34;
  background: none;
  border: none;
  transition: color 0.14s;
  padding: 8px 14px 8px 8px;
  border-radius: 8px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--dark-gray);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(28,30,34, 0.95);
  z-index: 1002;
  padding: 34px 30px 24px 30px;
  transform: translateX(-100vw);
  transition: transform 0.31s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
  animation: slideMenuIn .31s cubic-bezier(.72,0,.25,1) 1;
}
@keyframes slideMenuIn {
  from { transform: translateX(-100vw); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 2.1rem;
  color: var(--white);
  background: none;
  border: none;
  z-index: 1104;
  cursor: pointer;
  transition: color 0.17s;
  padding: 4px 8px;
  border-radius: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.26rem;
  width: 100%;
  align-items: flex-start;
  margin-top: 46px;
}
.mobile-nav a {
  color: var(--white);
  padding: 8px 7px 7px 4px;
  border-radius: 7px;
  transition: background 0.16s, color 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
/* Hide mobile menu on desktop */
@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== CTA BUTTONS ========== */
.cta-btn {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  padding: 12px 36px;
  border-radius: 99px;
  box-shadow: 0 2px 18px 0 rgba(49,64,73,0.13);
  outline: none;
  margin-top: 12px;
  letter-spacing: 0.01em;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.22s;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(49,64,73,0.19);
  transform: translateY(-2px) scale(1.045);
  text-decoration: none;
}

/* ========== HERO SECTION ========== */
main > section:first-child {
  padding-top: 50px;
  padding-bottom: 22px;
  background: var(--white);
  box-shadow: 0 3px 19px 0 rgba(49,64,73,0.04);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
@media (max-width: 900px) {
  main > section:first-child {
    border-radius: 0;
    padding-top: 36px;
  }
}

/* ========== PRICING TAGS ========== */
.price {
  background: #ececec;
  color: var(--primary);
  font-size: 1.02em;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.08em 0.7em;
  margin-left: 8px;
  display: inline-block;
}

/* ========== FOOTER ========== */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 34px 0 0 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-bottom: 6px;
}
.footer-nav a, .legal-nav a {
  color: var(--white);
  opacity: 0.92;
  transition: color 0.13s, opacity 0.17s;
  font-size: 1.04em;
  font-weight: 500;
  letter-spacing: .01em;
}
.footer-nav a:hover, .legal-nav a:hover, .footer-nav a:focus, .legal-nav a:focus {
  color: var(--secondary);
  opacity: 1;
  text-decoration: underline;
}
.footer-description {
  margin-top: 16px;
  font-size: .96em;
  color: #c1d1da;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(186,200,212,0.13);
  padding-top: 10px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 970px) {
  .container {
    max-width: 97vw;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav {
    gap: 14px;
    font-size: 0.98rem;
  }
}
@media (max-width: 820px) {
  h1 { font-size: 2.04rem; }
  h2 { font-size: 1.22rem; }
  .container { padding-left: 6px; padding-right: 6px; }
  section, .section {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 43px;
  }
  .card {
    padding: 18px 10px;
  }
  .testimonial-card {
    max-width: 98vw;
    padding: 16px 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .text-section, .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px;
  }
  .card-container {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .footer-nav, .legal-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  main > section:first-child {
    padding: 32px 0 8px 0;
  }
  .mobile-nav {
    font-size: 1.035rem;
    margin-top: 30px;
    gap: 13px;
  }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.1rem; margin-bottom: 10px; }
  section, .section {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 18px;
    margin-bottom: 22px;
  }
}

/* ========== TABLES & LISTS ========== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 14px;
}
th, td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #e6e6ec;
}
th {
  background: #ededed;
  color: var(--primary);
}

ol {
  list-style: decimal inside;
  color: var(--primary);
  gap: 14px;
}
ol li {
  padding: 3px 0 3px 0;
}

/* ========== ADDRESS ========== */
address, address strong, address a {
  color: var(--primary);
  line-height: 1.65;
  font-size: 1.07em;
  font-style: normal;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--gray);
  padding-left: 17px;
  margin: 10px 0 10px 0;
  background: #f2f4f6;
  color: var(--dark-gray);
}

/* ========== INTERACTIVE ELEMENTS: TRANSITIONS ========== */
button, .cta-btn, a, .card, .testimonial-card {
  transition-property: background, color, box-shadow, transform, opacity;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -5px 24px rgba(44,51,54,0.12);
  border-top: 1.5px solid #ececec;
  z-index: 2200;
  padding: 20px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: bannerInUp 0.25s cubic-bezier(.6,0,.2,1) 1;
}
@keyframes bannerInUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  flex: 1 1 auto;
  margin-bottom: 0;
  color: var(--dark-gray);
  max-width: 540px;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-accept,
.cookie-reject,
.cookie-settings {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid var(--primary);
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.13s, color 0.15s, border 0.17s;
  margin-bottom: 0;
  box-shadow: none;
}
.cookie-accept {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-reject {
  background: var(--white);
  color: var(--primary);
  border-color: var(--gray);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--accent);
  color: var(--dark-gray);
  border-color: var(--secondary);
}
.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 17px 10px;
    gap: 8px;
  }
  .cookie-btns {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Cookie modal popup --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,32,36,0.72);
  z-index: 3300;
  justify-content: center;
  align-items: center;
  display: none;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeInMod .16s cubic-bezier(.7,0,.2,1) 1;
}
@keyframes fadeInMod {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  box-shadow: 0 10px 40px rgba(49,64,73,0.13);
  border-radius: var(--radius);
  max-width: 430px;
  width: 96vw;
  padding: 28px 22px 22px 24px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: bannerModalIn .20s cubic-bezier(.7,0,.2,1) 1;
}
@keyframes bannerModalIn {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.04em;
  color: var(--primary);
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray);
  border-radius: 13px;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(49,64,73,0.07);
  transition: transform 0.19s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-btns button {
  min-width: 110px;
  font-size: 1em;
  padding: 7px 15px;
  border-radius: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px; top: 13px;
  font-size: 1.55rem;
  color: var(--gray);
  background: none;
  border: none;
  z-index: 3;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--dark-gray);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 6px;
    gap: 18px;
  }
  .cookie-modal h2 { font-size: 1.12rem; }
}

/* ========== UTILITY HELPERS ========== */
.hide-mobile { display: block; }
@media (max-width: 900px) {
  .hide-mobile { display: none; }
}
.hidden { display: none; }

/* ================= CUSTOM SCROLLBAR (Modern Browsers) ================= */
html::-webkit-scrollbar {
  width: 7px;
  background: var(--accent);
}
html::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 4px;
}

/* ========== MICRO-INTERACTIONS (SUBTLE ANIMATIONS) ========== */
.card, .testimonial-card {
  will-change: transform, box-shadow;
}

/* ========== ERROR/INFO MESSAGES ========== */
.info-message, .error-message {
  background: #f7f3ed;
  border-left: 4px solid #cfa571;
  color: var(--dark-gray);
  font-size: 1em;
  padding: 11px 22px;
  border-radius: 7px;
  margin-bottom: 15px;
  box-shadow: 0 2px 7px rgba(197,177,135,0.075);
  line-height: 1.4;
}

/* ========== PRINTING: Monochrome Friendly ========== */
@media print {
  *, *:before, *:after {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
