/* 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, 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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F6F4EE;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #F6F4EE;
  color: #2F4858;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #2F4858;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E6B94C;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
hr {
  border: none;
  height: 1px;
  background: #E6B94C;
  margin: 24px 0;
}

/* TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2F4858;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.subheadline {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.1rem;
  color: #44596b;
  margin-bottom: 24px;
}
p {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
.text-section {
  max-width: 780px;
}

/* CONTAINER & GRID ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border: 2px solid #E6B94C;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 4px 16px rgba(47, 72, 88, 0.06);
  flex: 1 1 240px;
  min-width: 280px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.era-tag {
  background: #E6B94C;
  color: #2F4858;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 16px;
  margin-left: 8px;
}

/* SECTION SPACING ------------------------------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section {
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .section {
    padding: 60px 0;
    margin-bottom: 80px;
  }
  section {
    margin-bottom: 60px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 2px solid #E6B94C;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(47, 72, 88, 0.06);
  padding: 32px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* HERO STYLE ------------------------------------------------- */
.hero {
  padding: 60px 0 40px 0;
  background: #2F4858;
  color: #fff;
  min-height: 330px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1,
.hero .subheadline {
  color: #fff;
}
.hero .btn-primary {
  background: #E6B94C;
  color: #2F4858;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #fff;
  color: #2F4858;
}

@media (max-width: 725px) {
  .hero {
    padding: 36px 0 24px 0;
    min-height: 200px;
  }
}

/* MAIN NAVIGATION -------------------------------------------- */
header {
  background: #fff;
  position: relative;
  z-index: 10;
  border-bottom: 2px solid #e8e7dd;
  box-shadow: 0 2px 8px rgba(47,72,88,.03);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 32px;
  position: relative;
}
.main-nav > a img {
  height: 44px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  color: #2F4858;
  padding: 6px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #E6B94C;
  color: #2F4858;
}
.btn-primary {
  background: #2F4858;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 30px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(47,72,88,0.09);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E6B94C;
  color: #2F4858;
  box-shadow: 0 3px 16px #E6B94C88;
}
.btn-secondary {
  background: #E6B94C;
  color: #2F4858;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #2F4858;
  border-radius: 10px;
  padding: 10px 28px;
  margin-top: 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff;
  color: #2F4858;
  border-color: #E6B94C;
}

/* MOBILE MENU ------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: #2F4858;
  margin-left: 8px;
  cursor: pointer;
  z-index: 120;
  padding: 6px 10px;
}
@media (max-width: 1023px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(47, 72, 88, 0.92);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.65,.04,.46,1.01);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  padding: 16px 20px;
  margin-top: 8px;
  margin-right: 8px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 32px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #e6b94c33;
  transition: background 0.16s, color 0.16s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6B94C;
  color: #2F4858;
}

@media (max-width: 768px) {
  .main-nav {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* CARDS, FEATURES & LISTS ------------------------------------- */
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.5;
}
ul li img {
  vertical-align: middle;
  height: 22px;
  width: 22px;
  margin-right: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 2px solid #E6B94C;
  border-radius: 12px;
  padding: 22px 18px;
  margin-bottom: 22px;
  min-width: 220px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* TESTIMONIALS ------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid #2F4858;
  border-left: 8px solid #E6B94C;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(47, 72, 88, 0.09);
  position: relative;
}
.testimonial-card p {
  color: #2F4858;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  color: #2F4858;
  font-size: 0.97rem;
  margin-left: auto;
  text-align: right;
  font-weight: 600;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 10px;
  }
  .testimonial-card span {
    margin-left: 0;
    text-align: left;
  }
}

/* FOOOTER -------------------------------------------------- */
footer {
  background: #2F4858;
  color: #fff;
  padding: 42px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  max-width: 1280px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand img {
  height: 52px;
  margin-bottom: 4px;
}
.footer-brand span {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.14rem;
  color: #E6B94C;
  letter-spacing: 0.06em;
}
.footer-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: #F6F4EE;
  margin-top: 4px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 180px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: 7px;
  padding: 5px 0px 5px 0px;
  transition: background 0.15s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E6B94C;
  background: #fff1;
}
.footer-contact p, .footer-contact a {
  color: #eee;
  font-size: 0.96rem;
  margin-bottom: 7px;
}
.footer-contact strong {
  color: #E6B94C;
  font-weight: 600;
}
.footer-contact a:hover {
  color: #E6B94C;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-social a {
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  transition: background 0.18s, box-shadow 0.18s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #E6B94C;
  box-shadow: 0 0 0 3px #fff2;
}
.footer-social img {
  height: 23px;
  width: 23px;
}
@media (max-width: 1023px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* UTILITY AND HELPERS -------------------------------------- */
.group-pricing, .pricing-grid {
  background: #fff7e0;
  color: #2F4858;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1rem;
  margin: 18px 0;
}

/* COOKIES CONSENT BANNER & MODAL --------------------------- */
.cookies-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 3000;
  background: #2F4858;
  color: #fff;
  padding: 24px 12px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(47,72,88,.12);
  transition: transform 0.42s cubic-bezier(.65,.04,.46,1.01);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookies-banner p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}
.cookies-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-btn, .cookie-settings-btn {
  background: #E6B94C;
  color: #2F4858;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, color 0.18s;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #fff;
  color: #2F4858;
}
.cookies-banner .cookie-settings-btn {
  background: #fff;
  color: #2F4858;
  border: 1.5px solid #E6B94C;
  font-weight: 500;
  margin-left: 5px;
}
/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left:0; right:0; top:0; bottom:0;
  background: rgba(47, 72, 88, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.65,.04,.46,1.01);
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #2F4858;
  border-radius: 18px;
  padding: 40px 24px 28px 24px;
  max-width: 430px;
  box-shadow: 0 10px 50px #2F485855;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: slideUp 0.5s cubic-bezier(.65,.04,.46,1.01);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; } 
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 0;
  text-transform: uppercase;
  color: #2F4858;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  width: 48px;
  height: 24px;
  border-radius: 12px;
  border: none;
  background: #e8e8e8;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle[aria-checked="true"] {
  background: #E6B94C;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
  box-shadow: 0 1px 3px #2f485820;
}
.cookie-toggle[aria-checked="true"]::before {
  left: 27px;
  background: #2F4858;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  color: #2F4858;
  font-size: 1.14rem;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 512px) {
  .cookie-modal {
    width: 98vw;
    padding: 22px 5vw 16px 5vw;
  }
}

/* GEOMETRIC/STRUCTURED THEME DECOR -------------------------- */
.card, .feature-item, .feature-grid > div, .testimonial-card, .cookie-modal, .card-container > .card {
  box-shadow: 0 4px 18px rgba(47, 72, 88, 0.10);
  border-radius: 14px 28px 14px 28px;
  /* Angular, geometric corners: play with accent corners */
}
.btn-primary, .btn-secondary, .cookie-btn, .cookie-settings-btn {
  border-radius: 10px 18px 10px 18px;
}
input, select, textarea, button {
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

/* MICRO-INTERACTIONS/TRANSITIONS --------------------------- */
button, .btn-primary, .btn-secondary, .cookie-btn, .cookie-settings-btn, .mobile-nav a {
  transition: background 0.18s, color 0.14s, box-shadow 0.18s, border-color 0.15s, transform 0.15s;
}
button:active, .btn-primary:active, .btn-secondary:active, .cookie-btn:active, .mobile-nav a:active {
  transform: scale(0.97);
}

/* RESPONSIVE DESIGN (Mobile-First) -------------------------- */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 7px;
  }
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.18rem; }
  .section, section {
    padding: 24px 3px;
    margin-bottom: 34px;
  }
  .card, .feature-item, .feature-grid > div, .testimonial-card {
    padding: 14px 7px;
    font-size: 0.97rem;
    min-width: 0;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.99rem;
    padding: 8px 15px;
  }
}

/* ACCESSIBILITY & FOCUS STYLES ------------------------- */
a:focus, button:focus, input:focus {
  outline: 2px solid #E6B94C;
  outline-offset: 2px;
}

/* SHADOW & HIERARCHY --------------------------------------- */
.card, .feature-item, .feature-grid > div, .testimonial-card {
  box-shadow: 0 4px 16px #2F485810;
}

/* THANK YOU PAGE ------------------------------------------- */
.hero + section,
.hero + .container {
  margin-top: 20px;
}

/* PRINT ----------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookies-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section, section, .container {
    padding: 0 0 !important;
    margin: 0 0 20px 0 !important;
  }
}
