/* --- 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #163063;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  background: transparent;
  color: #163063;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #D0B158;
  outline: none;
}

/* --- BRAND COLORS & CUSTOM PROPERTIES --- */
:root {
  --primary: #163063;
  --secondary: #E4E7EC;
  --accent: #D0B158;
  --white: #fff;
  --shadow-light: 0 2px 12px rgba(22,48,99,0.06);
  --shadow-hover: 0 4px 18px rgba(22,48,99,0.14);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 22px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }

p, ul li, ol li, .subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 18px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.95;
  line-height: 1.45;
  margin-bottom: 30px;
}
blockquote {
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 10px;
  background: var(--secondary);
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius);
}
strong {
  font-weight: 600;
  color: var(--primary);
}
em {
  font-style: italic;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* --- HEADER / NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(22,48,99,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 24px;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  transition: background .15s, color .2s;
}
nav a:hover, nav a.active {
  background: var(--secondary);
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 12px 28px;
  margin-left: 14px;
  transition: background .2s, box-shadow .2s, color .2s, transform .15s;
  border: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  box-shadow: var(--shadow-light);
}
.button.primary {
  background: var(--primary);
  color: var(--white);
}
.button.primary:hover, .button.primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}
.button.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.button.secondary:hover, .button.secondary:focus {
  background: var(--primary);
  color: var(--white);
}
.link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color .15s;
}
.link:hover, .link:focus {
  color: var(--primary);
  text-decoration: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  display: none;
  margin-left: 16px;
  padding: 8px;
  cursor: pointer;
  transition: color .2s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(22,48,99,0.07);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  z-index: 200;
  padding: 36px 20px 20px 20px;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.77,.15,.4,1), opacity .3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 210;
  transition: color .2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 52px;
}
.mobile-nav a {
  padding: 16px 8px;
  font-size: 1.25rem;
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background .14s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 1100px) {
  header .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  header .container { max-width: 700px; }
}
@media (max-width: 850px) {
  header .container { max-width: 98vw; }
  nav { gap: 12px; }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MAIN STRUCTURE SPACING --- */
main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}

@media (max-width: 600px) {
  section { padding: 28px 4px; margin-bottom: 38px; }
  .content-wrapper { gap: 12px; }
}

/* --- HERO SECTION --- */
.hero {
  background: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-light);
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero .container { align-items: flex-start; }
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--primary);
}
.hero .subheadline {
  color: var(--primary);
  opacity: 0.93;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .hero h1 { font-size: 1.72rem; }
  .hero .subheadline { font-size: 1.1rem; }
}

/* --- FEATURE LIST --- */
.features {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-light);
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  justify-content: flex-start;
}
.features ul li {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  background: var(--secondary);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .18s;
}
.features ul li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.018);
}
.features ul li img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .features ul { flex-direction: column; gap: 22px; }
  .features ul li { max-width: 100%; width: 100%; }
}

/* --- ABOUT & VALUES --- */
.about, .about-preview, .values, .services-preview, .services {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section ul {
  margin-left: 16px; margin-top: 6px;
}
.text-section li {
  list-style: disc;
  margin-left: 18px;
  margin-bottom: 10px;
}

/* --- SERVICES, PRICING, FAQ --- */
.services ul, .faq ul, .services-preview ul, .values ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services ul li, .services-preview ul li, .faq ul li, .values ul li {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
}
.pricing {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}
.pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  margin-top: 15px;
}
.pricing th, .pricing td {
  font-size: 1rem;
  text-align: left;
  padding: 14px 10px;
}
.pricing th {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
}
.pricing tr {
  border-bottom: 1px solid #e0e4ea;
}

@media (max-width: 600px) {
  .pricing table, .pricing th, .pricing td {
    font-size: 0.98rem;
  }
  .services ul li, .services-preview ul li, .faq ul li { padding: 12px 10px; }
}

/* --- CARD PATTERNS (FOR POTENTIAL FUTURE USE) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  position: relative;
  padding: 24px;
  flex: 1 1 265px;
  min-width: 240px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px) scale(1.017); }

.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: 16px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 24px;
  min-width: 210px;
  max-width: 540px;
  position: relative;
}
.testimonial-customer {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.74;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 600px) {
  .testimonial-card { padding: 12px; }
}

/* --- CTA (Call-to-Action) --- */
.cta {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  margin-bottom: 60px;
}
.cta h2 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: 2rem;
}
.cta .button.primary {
  background: var(--accent);
  color: var(--primary);
  margin: 0 auto;
  min-width: 180px;
}
.cta .button.primary:hover, .cta .button.primary:focus {
  background: var(--white);
  color: var(--primary);
}
@media (max-width: 600px) {
  .cta h2 { font-size: 1.2rem; }
  .cta { padding: 22px 6px; }
}

/* --- FOOTER --- */
footer {
  background: var(--secondary);
  border-top: 2px solid #F0F3F5;
  color: var(--primary);
  padding-top: 28px;
  padding-bottom: 18px;
  margin-top: 32px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 0.98rem;
  opacity: 0.80;
  transition: color .17s, opacity .15s;
  padding: 4px 12px;
}
.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.footer-contact a {
  color: var(--primary);
  opacity: 0.78;
  font-size: 0.98rem;
  text-decoration: underline dotted;
}
.footer-contact a:hover { color: var(--accent); opacity: 1; }

@media (max-width: 600px) {
  .footer-nav { flex-direction: column; gap: 5px; }
  .footer-contact span { font-size: 0.97rem; }
}

/* --- LEGAL AND THANKYOU --- */
.legal, .thankyou {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 -2px 18px 0 rgba(22,48,99,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  min-height: 76px;
  gap: 16px;
  transition: opacity .22s, transform .34s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner .banner-text {
  flex: 1 1 auto;
  font-size: 1rem;
  color: var(--primary);
  margin-right: 18px;
}
.cookie-banner .banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.cookie-btn {
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-light);
  transition: background .18s, color .18s, box-shadow .2s;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 4px;
  }
  .cookie-banner .banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(17,30,45,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(22,48,99,0.18);
  min-width: 290px;
  max-width: 94vw;
  width: 420px;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: slideDownModal .36s ease;
}
@keyframes slideDownModal {
  from { transform: translateY(-60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--primary);
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: var(--accent);
}
.cookie-modal h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}
.cookie-modalcats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 18px 6px 6px 6px;
  }
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.button, .cookie-btn {
  transition: background .19s, color .17s, box-shadow .14s, transform .13s;
}
section, .card, .features ul li, .testimonial-card, .hero, .cta, .services ul li, .faq ul li {
  transition: box-shadow .16s, transform .13s;
}
section:hover, .card:hover, .features ul li:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}

/* --- FOCUS RING --- */
a:focus, .button:focus, .cookie-btn:focus, input:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .modal-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* --- RESPONSIVE TYPOGRAPHY (NO clamp) --- */
@media (max-width: 1000px) {
  h1 { font-size: 2.12rem; }
  h2 { font-size: 1.39rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.12rem; }
  .subheadline { font-size: 1.02rem; }
}

/* --- UTILITY SPACING --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; } 
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --- OVERRIDES FOR GENERIC TABLES / FORMS --- */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
td, th { padding: 10px 8px; }
th { color: var(--primary); background: var(--secondary); font-weight: 700; }
tr { border-bottom: 1px solid #e0e4ea; }

input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid #b3bfd6;
  padding: 10px 14px;
  background: var(--secondary);
  color: var(--primary);
  margin-bottom: 12px;
  transition: border .15s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

/* END OF CSS */
