/* --- 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.55;
  min-height: 100vh;
  background: #FAFAF8;
  color: #222A36;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #225B7C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #1B4A70;
  outline: none;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: 1em;
  outline: none;
  border: none;
  cursor: pointer;
  background: none;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* --- TYPOGRAPHY: Elegant Classic Style --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  color: #1B4A70;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.14;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #232A36;
  font-size: 1em;
  margin-bottom: 14px;
}
strong {
  color: #225B7C;
  font-weight: 700;
}

/* --- BRAND COLOR PALETTE ---*/
:root {
  --primary: #225B7C;
  --secondary: #1B4A70;
  --accent: #F0B43A;
  --background: #FAFAF8;
  --surface: #FFFFFF;
  --muted-text: #63594C;
  --border: #E4E2DD;
  --shadow: rgba(27, 74, 112, 0.08);
  --shadow-hover: rgba(27, 74, 112, 0.16);
}

/* --- CONTAINERS & SECTIONS --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 2px 16px var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 32px;
  }
}

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

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px 20px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1em;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--accent);
}
.cta-primary {
  background: var(--primary);
  color: var(--surface) !important;
  border-radius: 6px;
  padding: 11px 30px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.07em;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, box-shadow 0.22s, transform 0.2s;
  border: none;
  display: inline-block;
  margin-left: 18px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow-hover);
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 8px 26px;
  font-size: 1em;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-top: 18px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--surface);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 26px;
  background: var(--accent);
  color: var(--secondary);
  width: 46px;
  height: 46px;
  font-size: 2rem;
  z-index: 2001;
  display: none;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.14s;
}
.mobile-menu-toggle:active {
  background: var(--primary);
  color: var(--surface);
  transform: scale(0.98);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 84vw;
  max-width: 400px;
  background: var(--surface);
  box-shadow: -4px 0 24px var(--shadow-hover);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.7, 0, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 24px 40px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.14s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--secondary);
  font-size: 1.1em;
  font-weight: 500;
  padding: 10px 4px;
  width: 100%;
  border-radius: 6px;
  background: none;
  transition: background 0.15s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--accent);
}
@media (max-width: 992px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    width: 97vw;
    max-width: 100vw;
    padding: 24px 10px 28px 10px;
  }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(90deg, #f9f7ef 85%, #f2eedd 100%);
  padding: 68px 0 42px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  margin-bottom: 0;
}
.hero p {
  font-size: 1.23em;
  color: var(--muted-text);
  margin-bottom: 20px;
}

/* --- FEATURE GRID & SECTION LAYOUTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--shadow);
  padding: 32px 20px;
  min-width: 230px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.21s;
}
.feature img {
  width: 46px;
  height: 46px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 18px var(--shadow-hover);
  transform: translateY(-6px) scale(1.03);
}

/* --- CARD & FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 11px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 25px 20px;
  min-width: 220px;
  flex: 1 1 340px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px var(--shadow-hover);
  transform: translateY(-3px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
    align-items: flex-start;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDF8;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 1px 10px var(--shadow);
  margin-bottom: 20px;
  color: #111925;
  transition: box-shadow 0.21s, transform 0.17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 17px var(--shadow-hover);
  transform: scale(1.02);
}

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

/* --- ABOUT & SERVICE SECTIONS --- */
.about-brief, .service-list, .company-highlights, .values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.short-description {
  flex: 2 1 310px;
}
.company-highlights {
  flex-direction: column;
  min-width: 200px;
  gap: 16px;
}
.company-highlights ul, .values-list ul {
  margin-left: 0;
}
.company-highlights li, .values-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-text);
  font-size: 1em;
  background: none;
  border: none;
  margin-bottom: 4px;
}
.company-highlights img, .values-list img {
  width: 29px; height: 29px;
}

.service-list {
  flex-direction: column;
  gap: 12px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--secondary);
  font-size: 1.09em;
  margin-bottom: 0;
  background: none;
}
.service-list img {
  width: 28px; height: 28px;
}

.values-list {
  flex-direction: column;
  gap: 14px;
}
.values-list li {
  padding: 12px 10px;
  background: #F3F4F0;
  border-radius: 7px;
  border: 1px solid #E8E7E2;
}

/* --- CONTACT & INFO LAYOUTS --- */
.contact-snippet, .contact-methods, .contact-information, .next-steps, .thanks-message {
  margin-top: 18px;
  margin-bottom: 18px;
}
.contact-snippet p, .contact-information p, .thanks-message p {
  font-size: 1.09em;
}
.contact-snippet img, .contact-information img {
  width: 20px; height: 20px; margin-right: 7px;
  vertical-align: sub;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.contact-fields {
  flex: 2 1 200px;
}
.map-snippet {
  flex: 1 1 170px;
  min-width: 130px;
}
.contact-information {
  flex: 1 1 210px;
}
.office-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: 0;
}
.office-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: 1em;
}

@media (max-width: 820px) {
  .contact-methods {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- BLOG --- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.blog-list article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--shadow);
  padding: 24px 16px;
  flex: 1 1 330px;
  min-width: 220px;
  margin-bottom: 14px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.blog-list article:hover, .blog-list article:focus-within {
  box-shadow: 0 6px 18px var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}
.post-tags {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.92em;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #fff8eb;
  padding: 3px 11px;
  border-radius: 13px;
}

/* --- FOOTER --- */
footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  margin-top: 40px;
  padding-top: 36px;
  color: #272B2F;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-main a img {
  width: 38px; height: 38px;
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}
.footer-links a {
  color: var(--secondary);
  font-size: 1em;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--accent);
}
.footer-contact p {
  font-size: 0.97em;
  color: var(--muted-text);
  line-height: 1.54;
}
.footer-contact img {
  width: 16px; height: 16px;
  margin-right: 7px;
  vertical-align: sub;
}
.footer-bottom {
  margin-top: 16px;
  padding: 10px 0 10px 0;
  font-size: 0.93em;
  color: var(--muted-text);
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (max-width: 820px) {
  .footer-main {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fffefa;
  border-top: 1px solid #e8d9aa;
  box-shadow: 0 -4px 22px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1em;
  line-height: 1.4;
  animation: slideInCookie 0.45s cubic-bezier(0.86,0,0.07,1);
}
@keyframes slideInCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  color: #544830;
  margin: 0;
  flex: 2 1 300px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 120px;
}
.cookie-banner button {
  background: var(--primary);
  color: var(--surface);
  border: none;
  border-radius: 6px;
  padding: 9px 19px;
  font-size: 1em;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  box-shadow: 0 1px 7px var(--shadow);
  transition: background 0.14s, box-shadow 0.19s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow-hover);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 8px;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--primary);
  color: var(--surface);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 91, 124, 0.23);
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--surface);
  border-radius: 13px;
  padding: 34px 26px 24px 26px;
  max-width: 95vw;
  width: 400px;
  box-shadow: 0 8px 26px var(--shadow-hover);
  position: relative;
  animation: fadeInModal 0.38s cubic-bezier(0.86,0,0.07,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.27em;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--secondary);
  font-size: 1em;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 5px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  color: var(--secondary);
  font-size: 1.7em;
  border: none;
  cursor: pointer;
}
.cookie-modal input[type=checkbox][disabled] {
  accent-color: var(--accent);
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal input[type=checkbox] {
  width: 21px; height: 21px;
  accent-color: var(--primary);
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    text-align: left;
    padding: 18px 5vw;
  }
  .cookie-modal {
    padding: 16px 8px 18px 8px;
    width: 99vw;
  }
}

/* --- TRANSITIONS --- */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  z-index: 1;
}
a, button, .cta-primary, .cta-secondary {
  transition: background 0.18s, color 0.17s, box-shadow 0.19s, transform 0.17s;
}

/* --- GENERAL RESPONSIVENESS --- */
@media (max-width: 650px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.13rem; }
  .container, .section { padding-left: 6px; padding-right: 6px; }
  .card, .feature, .blog-list article { padding: 14px 6px; }
}

/* --- UTILITIES --- */
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 28px; }
gap-20 { gap: 20px; }

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