/* --- 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,
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: #F6F6F6;
  color: #262626;
}
ol, ul {
  list-style: disc inside;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* --- Fonts (Elegant Classic) --- */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,600|Cormorant+Garamond:400,600,700|Roboto:400,500&display=swap');

:root {
  --color-primary: #001F3F;
  --color-secondary: #29A3A3;
  --color-accent: #F6F6F6;
  --color-dark: #18191A;
  --color-light: #fff;
  --color-muted: #e2e5ed;
  --color-border: #D5D8DE;
  --color-shadow: rgba(30, 50, 70, 0.10);
  --color-text: #22232B;
  --color-text-secondary: #5C6270;
  --font-display: 'Cormorant Garamond', serif;
  --font-head: 'Oswald', 'Cormorant Garamond', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

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

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1180px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.14;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
.subheadline {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-weight: 400;
  margin-bottom: 32px;
}

/* --- Elegant Spacing & Section Layouts --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 3px 18px var(--color-shadow);
}

@media (max-width: 800px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 32px;
  }
}

/* --- Header --- */
header {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px 0 rgba(0,31,63,.07);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
header a img {
  max-height: 44px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s;
}
header nav a:hover, header nav a:focus {
  border-bottom: 2px solid var(--color-secondary);
}
.cta.primary {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 30px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.22s, box-shadow 0.22s;
  margin-left: 16px;
  font-weight: 600;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-light);
  box-shadow: 0 4px 14px var(--color-shadow);
}
.cta.secondary {
  display: inline-block;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 12px 32px;
  border-radius: 30px;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 10px var(--color-shadow);
  font-family: var(--font-head);
  font-weight: 600;
  transition: background 0.22s, border 0.22s, color 0.22s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-secondary);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  color: var(--color-primary);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--color-muted);
  margin-left: 10px;
  z-index: 2001;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100%;
  background: var(--color-light);
  box-shadow: -4px 0 32px rgba(0,0,0,.14);
  width: 90vw;
  max-width: 330px;
  z-index: 3000;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 18px 28px;
}
.mobile-menu.active {
  transform: translateX(-100vw);
  left: 0;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-primary);
  font-size: 2.2rem;
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 10;
  border-radius: 8px;
  border: 1px solid var(--color-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 38px;
}
.mobile-nav a {
  font-family: var(--font-head);
  color: var(--color-primary);
  background: none;
  font-size: 1.22rem;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: #F1FBFB;
}
@media (max-width: 1050px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 950px) {
  header .container {
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .mobile-menu {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 8px;
  }
  .mobile-menu-close {
    right: 9px;
    top: 14px;
  }
  .mobile-nav {
    margin-top: 22px;
    gap: 12px;
  }
}

/* --- Sections, Cards, Features --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.feature-grid > div {
  background: var(--color-accent);
  border-radius: 14px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  padding: 32px 20px 26px 20px;
  box-shadow: 0 1px 7px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  transition: box-shadow .18s, border .18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 32px rgba(0,31,63,0.09), 0 1.5px 9px var(--color-secondary);
  border-color: var(--color-secondary);
}
.feature-grid img {
  width: 44px;
  height: 44px;
}
.feature-grid h3 {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 600;
}
.feature-grid p {
  margin-bottom: 4px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-light);
  border-radius: 15px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 32px 20px 24px 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow .17s, border .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px var(--color-shadow), 0 0.5px 4px var(--color-secondary);
  border-color: var(--color-secondary);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .feature-grid, .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-list > div {
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 1px 7px var(--color-shadow);
  border: 1px solid var(--color-border);
  padding: 22px 18px 16px 18px;
}
.faq-list h3 {
  font-size: 1.05rem;
  margin-bottom: 9px;
  color: var(--color-primary);
  font-family: var(--font-head);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px var(--color-shadow);
  max-width: 520px;
  transition: box-shadow .17s, border .16s;
}
.testimonial-card:hover, .testimonial-card:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 30px var(--color-shadow),0 1px 8px var(--color-secondary);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--color-text);
  font-family: var(--font-display);
  margin-bottom: 5px;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: .99rem;
  font-style: italic;
}

@media (max-width: 720px) {
  .testimonial-card {
    max-width: 100%;
    padding: 15px 9px 13px 9px;
  }
}

/* --- Thank You Section --- */
.thankyou-content {
  background: var(--color-accent);
  border-radius: 14px;
  padding: 30px 22px;
  box-shadow: 0 1px 7px var(--color-shadow);
  margin-top: 14px;
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1.5px solid var(--color-border);
  margin-top: 44px;
  padding: 0 0 0 0;
}
footer .container {
  padding: 30px 16px 16px 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  flex: 0 0 80px;
}
.footer-info {
  flex: 1 1 240px;
  font-size: .97rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.footer-info img {
  margin-right: 6px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-top: -4px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 150px;
}
.footer-nav a, .footer-legal a {
  font-family: var(--font-head);
  color: var(--color-primary);
  font-size: .97rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-secondary);
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 8px;
}
.footer-social a img {
  width: 29px;
  height: 29px;
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: brightness(1.18) drop-shadow(0 2px 4px rgba(41,163,163,.17));
}

@media (max-width: 950px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo { margin-bottom: 12px; }
}

/* --- Cookie Consent Banner + Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -2px 18px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 14vw 22px 4vw;
  z-index: 5001;
  font-size: 1rem;
  transition: transform .44s cubic-bezier(.42,0,.19,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner__msg {
  color: var(--color-primary);
  font-family: var(--font-body);
  flex: 2;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 24px;
  padding: 9px 28px;
  margin: 0;
  transition: background .19s, color .18s, border .18s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-weight: 500;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-weight: 400;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-muted);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 10px 18px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner__actions {
    gap: 9px;
    flex-direction: column;
    width: 100%;
  }
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,35,44,0.42);
  z-index: 5002;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal__inner {
  background: #fff;
  border-radius: 17px;
  max-width: 420px;
  width: 96vw;
  padding: 30px 26px 22px 26px;
  box-shadow: 0 3px 28px var(--color-shadow), 0 8px 38px rgba(0,31,63,.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalAppear .32s cubic-bezier(.17,.67,.47,1.02);
}
@keyframes modalAppear {
  from {
    transform: translateY(44px) scale(.90);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.cookie-modal__close {
  position: absolute;
  top: 18%;
  right: 1vw;
  background: transparent;
  color: var(--color-primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 6px;
  transition: background 0.14s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-muted);
}
.cookie-modal h3 {
  font-size: 1.13rem;
  margin-bottom: 7px;
  color: var(--color-primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  border-radius: 15px;
  background: var(--color-muted);
  position: relative;
  outline: none;
  transition: background .15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: left .19s;
  box-shadow: 0 1px 3px var(--color-shadow);
}
.cookie-toggle:checked:after {
  left: 18px;
}

/* --- Accessibility & Interaction --- */
a:focus, button:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* --- Miscellaneous --- */
ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
hr {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin: 30px 0;
}

/* === RESPONSIVENESS & UTILITIES === */
@media (max-width: 600px) {
  body, .container, .footer-info, .footer-nav, .footer-legal {
    font-size: 15px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1rem; }
  .section {
    padding: 16px 4px;
  }
}
@media (max-width: 430px) {
  .section,.card,.faq-list>div, .testimonial-card, .thankyou-content {
    border-radius: 7px;
    padding-right: 5px;
    padding-left: 5px;
  }
}

/* --- Hide cookie banner for print --- */
@media print {
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
}
