/* ===== CSS RESET & NORMALIZATION ===== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F8F9FA;
  color: #252525;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #164F67;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2B90F;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  box-shadow: none;
}
button {
  cursor: pointer;
}
strong {
  font-weight: bold;
}

/* ===== BRAND COLORS & FONTS as CSS VARIABLES ===== */
:root {
  --primary: #164F67;
  --secondary: #F2B90F;
  --accent: #EFEFEF;
  --text: #252525;
  --muted: #737373;
  --background: #F8F9FA;
  --card-bg: #fff;
  --card-border: #e5e6ea;
  --header-bg: #fff;
  --footer-bg: #f4f4f4;
  --shadow: 0 4px 20px rgba(21,34,44,0.04), 0 1.5px 4px rgba(21,34,44,0.08);
  --radius: 14px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Georgia', 'Montserrat', serif;
  --font-body: 'Georgia', 'Open Sans', serif;
}

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem;
  line-height: 1.12;
  margin-top: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-top: 24px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-top: 18px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 14px;
}
p, li, span, label {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.375rem; }
}

/* ===== HEADER/NAVIGATION ===== */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.035);
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--secondary);
}

.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 10px rgba(30,30,30,0.06);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(22,79,103,0.06);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 20px 0 rgba(22,79,103,0.09);
  transform: translateY(-2px) scale(1.03);
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 25px;
  right: 22px;
  z-index: 2100;
  font-size: 2.1rem;
  background: var(--secondary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(22,79,103,0.08);
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.07);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(22,79,103,0.97);
  z-index: 2090;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  font-size: 2.25rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 24px 20px 8px 0;
  border: none;
  box-shadow: 0 1.5px 6px rgba(0,0,0,0.10);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 8px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 1.3rem;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid rgba(234,234,234,0.16);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (min-width: 992px) {
  .mobile-menu-toggle,
  .mobile-menu { display: none !important; }
}
@media (max-width: 991px) {
  header nav, header .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}
@media (max-width: 560px) {
  .mobile-menu-close, .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .mobile-nav a {
    font-size: 1.1rem;
    padding: 13px 16px;
  }
}

/* ===== MAIN LAYOUT SECTIONS ===== */
main {
  min-height: 64vh;
  padding-top: 34px;
  padding-bottom: 38px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== CARD CONTAINER & CARDS ===== */
.card-container, .blog-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
/* For card-like layouts inside services or articles */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(22,79,103,0.09);
  border-color: var(--secondary);
  transform: translateY(-4px) scale(1.018);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ===== TEXT & IMAGE SECTIONS ===== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(22,79,103,0.07);
  margin-bottom: 20px;
  min-width: 220px;
  border-left: 5px solid var(--primary);
}
.testimonial-card p {
  font-style: italic;
  color: var(--primary);
  font-size: 1.04rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.97rem;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

/* ===== BLOG GRID (index, blog) ===== */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 33%;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.blog-grid > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(164,164,164,0.10);
  transform: translateY(-4px) scale(1.017);
}
.category-filters {
  margin-top: 7px;
  font-size: 0.98rem;
  color: var(--muted);
}
.category-filters a {
  color: var(--primary);
  font-family: var(--font-body);
  margin: 0 5px;
  border-bottom: 1px solid transparent;
  transition: border-bottom var(--transition);
}
.category-filters a:hover {
  border-bottom: 1px solid var(--secondary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--card-border);
  padding: 38px 0 18px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 0.98rem;
  opacity: 0.83;
  padding: 3px 0;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.99rem;
}
.footer-contact img:first-child {
  margin-bottom: 6px;
  height: 32px;
  width: auto;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .footer-contact {
    align-items: flex-start;
    margin-top: 6px;
  }
}

/* ===== BUTTONS & LINKS UNIVERSAL ===== */
button, .cta-btn {
  border: none;
  outline: none;
  transition: all var(--transition);
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px var(--secondary), 0 2px 10px #ccc;
}

/* ===== TABLES (Reset/Classic) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px 0;
}
th, td {
  padding: 10px 12px;
  border: 1px solid var(--card-border);
}
th {
  background: var(--accent);
  font-weight: bold;
}

/* ===== FORMS (if any) ===== */
input, select, textarea {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(22,79,103,0.12);
}
label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 1.01rem;
  color: var(--muted);
}

/* ===== SPACING HELPERS ===== */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-2 { margin-top: 16px !important; }
.pt-2 { padding-top: 16px !important; }
.pt-4 { padding-top: 32px !important; }
.pb-4 { padding-bottom: 32px !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ===== FLEX HELPERS ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-between { justify-content: space-between; }

/* ===== RESPONSIVE LAYOUT ===== */
@media (max-width: 1200px) {
  .container { max-width: 990px; }
}
@media (max-width: 900px) {
  .container { max-width: 760px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    padding: 11px 10px;
  }
  .content-wrapper {
    gap: 16px;
  }
  section {
    padding: 28px 7px;
  }
  .card, .blog-grid > div, .testimonial-card, .feature-item {
    padding: 18px 8px;
  }
  .blog-grid > div {
    max-width: 100%;
    min-width: 160px;
    flex-basis: 100%;
  }
}
@media (max-width: 576px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1.12rem; }
  nav a, .cta-btn, .footer-contact {
    font-size: 1rem;
  }
  section, .section {
    padding: 15px 2px;
    margin-bottom: 34px;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -4px 24px rgba(22,79,103,0.06);
  padding: 20px 10px;
  z-index: 2200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: cookieBannerSlideIn 0.42s cubic-bezier(.71,1.6,.4,1);
}
.cookie-banner p {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
  max-width: 520px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  display: inline-block;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  margin-left: 0;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn-reject {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--card-border);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-settings {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-banner .cookie-btn-group {
    justify-content: flex-end;
  }
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(140px); opacity: 0.1; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2230;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,79,103,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.35s cubic-bezier(.71,1.6,.4,1);
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  min-width: 325px;
  max-width: 96vw;
  border-radius: var(--radius);
  box-shadow: 0 8px 50px rgba(22,79,103,0.13);
  padding: 32px 26px 24px 26px;
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(.71,1.6,.4,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 450px) {
  .cookie-modal { padding: 15px 9px 12px 9px; min-width: 99vw; }
}
@keyframes modalPopIn {
  from { transform: scale(0.87) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.29rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-category label {
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 0;
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
  margin-left: 13px;
  cursor: pointer;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-modal .cookie-toggle .switch {
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left var(--transition);
}
.cookie-modal .cookie-toggle[aria-checked="true"] .switch {
  left: 18px;
}
.cookie-modal .cookie-toggle[disabled] {
  background: var(--accent);
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ===== ACCESSIBLE FOCUS STATES ===== */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, input:focus-visible, .cookie-btn-accept:focus-visible, .cookie-btn-reject:focus-visible, .cookie-btn-settings:focus-visible {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 2px;
}

/* ===== ICON IMAGES (reset inline) ===== */
img[alt*='icon'], img[alt*='Icon'] {
  vertical-align: middle;
  margin-right: 8px;
  height: 24px;
  width: 24px;
}

/* ===== MISC & UTILITY CLASSES ===== */
.muted { color: var(--muted); }
.bg-primary { background: var(--primary) !important;  color: #fff !important; }
.bg-secondary { background: var(--secondary) !important; color: #fff !important; }
.bg-accent { background: var(--accent) !important; color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.5s both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== OVERRIDES / ADJUSTMENTS FOR BUILT-IN HTML ===== */
::-webkit-input-placeholder { color: var(--muted); }
::-moz-placeholder { color: var(--muted); }
:-ms-input-placeholder { color: var(--muted); }
::placeholder { color: var(--muted); }

/* ===== HIGH CONTRAST FOR TESTIMONIALS ===== */
.testimonial-card, .testimonial-card p {
  background: #fff;
  color: var(--primary) !important;
  border-left: 5px solid var(--primary);
}

/* === Ensure NO overlap and proper white space === */
.card-container > *, .card, .blog-grid > div, .testimonial-card, .feature-item, .section > .container, section > .container, .content-wrapper > * {
  margin-bottom: 20px;
}

/* === END OF CSS === */
