/* --- 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,
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 {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f6f8 0%, #e5ecf5 100%);
  color: #25375a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary: #25375a;
  --secondary: #ffffff;
  --accent: #b46a15;
  --surface: #f5f6f8;
  --header-bg: #354d73;
  --header-bg-trans: rgba(53,77,115,0.96);
  --input-border: #e0e3ec;
  --shadow: 0 2px 16px rgba(37,55,90,0.09);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: all 0.24s cubic-bezier(.57,.17,.43,1.18);
}

img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

p, ul, ol {
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 24px;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.9375em;
  color: #60749c;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

main > section:not(:last-child) {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.features-grid > div {
  background: var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 250px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}
.features-grid > div:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 6px 24px rgba(37,55,90,0.11);
}
.features-grid img {
  width: 44px;
  margin-bottom: 16px;
}

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

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  background: var(--secondary);
  color: #212a3f;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(37,55,90,0.14);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.05em;
  margin-bottom: 0;
}
.testimonial-card small {
  color: var(--primary);
  font-weight: 500;
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(37,55,90,0.12);
  transform: translateY(-3px);
}

.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;
}

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

.testimonial-card,
.card,
.features-grid > div {
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .features-grid,
  .testimonials-grid,
  .card-container,
  .content-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  .features-grid, .testimonials-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .features-grid > div,
  .testimonial-card,
  .card {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .section, main > section {
    padding: 24px 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; margin-bottom: 18px; }
  h2 { font-size: 1.14rem; margin-bottom: 11px; }
  h3 { font-size: 1rem; }
  .section, main > section {
    padding: 16px 4vw;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--header-bg-trans);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(53, 77, 115, 0.08);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.main-nav img {
  height: 38px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04em;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(180, 106, 21, 0.11);
  color: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 15px;
  z-index: 1101;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  font-size: 2.25rem;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #354d73 70%, #25375a 100%);
  box-shadow: 0 8px 32px rgba(37,55,90,0.22);
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: 1200;
  padding-top: 68px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1240;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 50px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  margin-bottom: 6px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(244,203,165,0.09);
}
@media (max-width: 990px) {
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO SECTION STYLES --- */
main > section:first-child {
  background: linear-gradient(133deg, var(--header-bg) 50%, #e5ecf5 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(53,77,115,0.10);
  text-shadow: 0 2px 18px rgba(53, 77, 115, 0.09);
}
main > section:first-child h1,
main > section:first-child p {
  color: #fff;
}
main > section:first-child .button-primary {
  box-shadow: 0 4px 24px rgba(180,106,21,0.17);
}

/* --- BUTTONS --- */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 30px;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: none;
  transition: background 0.21s, color 0.19s, transform 0.14s, box-shadow 0.19s;
  min-width: 140px;
}
.button-primary {
  background: linear-gradient(90deg, var(--accent) 0%, #e09b52 95%);
  color: #fff;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(90deg, #e09b52 20%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 26px rgba(180,106,21,0.11);
}
.button-secondary {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.03);
}

/* --- NEWSLETTER SIGNUP --- */
.newsletter-signup {
  background: linear-gradient(133deg, #f5cba1 0%, #f5f6f8 100%);
  border-radius: var(--radius-lg);
  padding: 30px 18px;
  box-shadow: 0 2px 18px rgba(224,155,82,0.09);
  margin: 32px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 480px;
}
.newsletter-signup h3 {
  color: var(--accent);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 10px 0;
  border-top: 7px solid var(--accent);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  opacity: .94;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background 0.15s, color 0.15s;
  font-size: 1em;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: rgba(180,106,21,0.13);
  color: var(--accent);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.social-links img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  transition: box-shadow 0.16s, background 0.15s;
}
.social-links a:hover img {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(180,106,21,0.12);
}
footer small {
  display: block;
  margin: 14px 0 0 0;
  color: #dce3f0;
  opacity: 0.76;
}

@media (max-width: 700px) {
  .newsletter-signup, .footer-nav {
    max-width: 100%;
    width: 100%;
  }
  footer .container {
    gap: 22px;
  }
}

/* --- FORMS & ADDRESSES --- */
address {
  font-style: normal;
  color: #283a5e;
  background: #f4f5fa;
  border-radius: var(--radius-md);
  padding: 18px 18px 12px 18px;
  box-shadow: 0 1px 7px rgba(37,55,90,0.05);
  margin-bottom: 14px;
}
address a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
address a:hover { color: #e09b52; }

.map {
  background: #f5f6f8;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 7px rgba(80,90,120,0.08);
  padding: 16px 16px 9px 16px;
}

/* --- TYPOGRAPHY --- */
body, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
}
h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
}

.feature-item strong {
  color: var(--accent);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #f5cba1 55%, #f5f6f8 100%);
  color: #25375a;
  box-shadow: 0 -3px 24px rgba(53,77,115,0.11);
  z-index: 4050;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  gap: 14px;
  animation: cookie-slide-in 0.44s cubic-bezier(.68,0,.32,1.29);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1em;
  color: #25375a;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner button {
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  margin: 0 3px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  outline: none;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #e09b52;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.03);
}
.cookie-banner .settings {
  background: #f5f6f8;
  color: var(--primary);
  border: 2px solid #e0e3ec;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #ece8e1;
  color: var(--accent);
}
@media (max-width: 520px) {
  .cookie-banner {
    padding: 16px 4px;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(46, 55, 76, 0.56);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.28s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(53,80,120,.18);
  padding: 42px 28px 28px 28px;
  min-width: 98vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-pop 0.28s cubic-bezier(.73,.04,.35,1.46);
}
@keyframes modal-pop {
  from { transform: scale(0.75); opacity: 0.2; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.23em;
  margin-bottom: 10px;
  color: var(--accent);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  margin-bottom: 10px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal button, .cookie-modal input[type="checkbox"] {
  cursor: pointer;
}
.cookie-modal .cookie-toggle {
  width: 42px; height: 24px; position: relative;
  display: inline-block;
  margin-right: 7px;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .cookie-slider {
  position: absolute;
  cursor: pointer;
  background-color: #e5ecf5;
  border-radius: 12px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .3s;
}
.cookie-modal .cookie-toggle input:checked + .cookie-slider {
  background-color: var(--accent);
}
.cookie-modal .cookie-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1.5px 8px rgba(53,77,115,0.13);
}
.cookie-modal .cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  color: #aaa;
  border: none;
  font-size: 1.45em;
  cursor: pointer;
  z-index: 2;
  transition: color 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--accent);
  outline: none;
}

/* --- MICRO INTERACTIONS --- */
.button-primary, .button-secondary, .mobile-nav a, .cookie-banner button {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.14s;
}
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.17s;
}
.footer-nav a, .main-nav a {
  transition: background 0.11s, color 0.16s;
}

/* --- NO ABSOLUTE POSITIONING FOR CONTENT CARDS --- */
/* decorative purpose only */

/* --- UTILITIES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
@media (max-width: 520px) {
  .card, .features-grid > div, .testimonial-card {
    padding: 20px 8px;
  }
}

/* --- OVERRIDE AUTOFILL COLORS --- */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  background: var(--surface) !important;
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

::-webkit-input-placeholder {
  color: #b3b8c4;
}
::-moz-placeholder {
  color: #b3b8c4;
}
:-ms-input-placeholder {
  color: #b3b8c4;
}
::placeholder {
  color: #b3b8c4;
}

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