/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F2F6F9;
  color: #1A4052;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button, [role="button"] {
  cursor: pointer;
}
:focus {
  outline: 2px solid #FDB813;
  outline-offset: 2px;
}

/* --- CUSTOM PROPS FOR WARM FRIENDLY THEME --- */
:root {
  --color-primary: #1A4052;
  --color-secondary: #FDB813;
  --color-accent: #F2F6F9;
  --color-card-bg: #fff9f2;
  --color-card-border: #fde9c2;
  --color-footer-bg: #1A4052;
  --color-footer-text: #fff;
  --color-shadow: rgba(253, 184, 19, 0.14);
  --color-shadow-deep: rgba(26, 64, 82, 0.08);
  --color-btn-hover: #fece5b;
  --color-secondary-darker: #e09e08;
  --color-link-hover: #E09E08;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  color: #1A4052;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #223A42;
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
  color: #1A4052;
}

/* --- GENERAL LAYOUT --- */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- FLEXBOX SPACING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1.5px solid var(--color-card-border);
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #fffdfa;
  border: 1.5px solid #fde9c2;
  box-shadow: 0 3px 14px var(--color-shadow-deep);
  max-width: 600px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-shadow-deep);
}
.testimonial-card p {
  color: #1A4052;
  font-size: 1rem;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: #4D6C7F;
  font-size: 0.98rem;
  font-style: italic;
}
.stars {
  color: #FDB813;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-list article {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 260px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}
.article-list h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* --- HEADER, NAVIGATION --- */
header {
  background: #fffefa;
  box-shadow: 0 2px 12px var(--color-shadow-deep);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 43px;
  width: auto;
  border-radius: 12px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: #1A4052;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: #1A4052;
}
.cta-btn {
  background: var(--color-secondary);
  color: #1A4052;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 28px;
  display: inline-block;
  box-shadow: 0 4px 14px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  margin-left: 16px;
  text-align: center;
  letter-spacing: 0.015em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-btn-hover);
  color: #1A4052;
  box-shadow: 0 6px 22px var(--color-shadow);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 44px;
  color: #1A4052;
  border: none;
  margin-left: 14px;
  transition: background 0.18s;
  justify-content: center;
  align-items: center;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-btn-hover);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 64, 82, 0.95);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.57,0.01,0,1), opacity 0.22s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  background: var(--color-secondary);
  color: #1A4052;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2010;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-btn-hover);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 88px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
  padding: 12px 0;
  border-radius: 10px;
  width: fit-content;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #1A4052;
  padding-left: 8px;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(105deg, #fff9f2 55%, #fde9c2 100%);
  padding: 70px 0 56px 0;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 2px 30px var(--color-shadow-deep);
  margin-bottom: 38px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: #1A4052;
  font-size: 2.15rem;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.17rem;
  margin-bottom: 18px;
}
.hero .cta-btn {
  margin-top: 14px;
}

/* --- UL/LI styling --- */
ul {
  margin-bottom: 12px;
  padding-left: 0;
}
ul li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 12px;
  min-height: 20px;
  color: #34627A;
  font-size: 1rem;
  line-height: 1.5;
}
ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: 40px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -2px 18px var(--color-shadow-deep);
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 18px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #FDB813;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fece5b;
}
.footer-contact p {
  color: #fff;
  font-size: 0.99rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- CARDS, TESTIMONIALS, FEATURES --- */
.card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow-deep);
  transform: translateY(-3px) scale(1.02);
}
.feature-item strong {
  color: #FDB813;
}
span {
  color: #E09E08;
  font-size: 0.99rem;
  margin-left: 3px;
}

/* --- FORMS --- */
input, textarea, select {
  border: 1.5px solid #BDD6E0;
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  font-family: var(--font-body);
  transition: border-color 0.14s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FDB813;
  box-shadow: 0 2px 8px var(--color-shadow);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 9px;
  color: #1A4052;
}

/* --- LINKS --- */
a {
  transition: color 0.15s, background 0.12s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
}

/* --- SECTION SPACING & ALIGNMENT (MANDATORY) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    max-width: 84vw;
  }
  .card-container, .content-grid, .article-list {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav {
    gap: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .footer-logo img {
    height: 30px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 20px;
    margin-left: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 32px 0 24px 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 36px;
  }
  .card {
    min-width: 0;
    padding: 18px 11px 14px;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 1rem;
    max-width: 99vw;
  }
  .article-list article {
    padding: 14px 8px 12px 8px;
    font-size: 1rem;
    min-width: 0;
  }
  .footer-nav {
    gap: 10px;
  }
  footer .container {
    gap: 13px;
    flex-direction: column;
    padding-bottom: 8px;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 14px;
  }
  .hero {
    padding-top: 16px;
    padding-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffdfa;
  box-shadow: 0 -4px 26px rgba(26,64,82,0.13);
  border-top: 2.5px solid #fde9c2;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  padding: 18px 14px 19px;
  gap: 16px;
  animation: cookieBannerFadeIn 0.45s cubic-bezier(0.47,0,0.745,0.715);
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #223A42;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-btns {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: #FDB813;
  color: #1A4052;
  border-radius: 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 23px;
  font-weight: 600;
  border: none;
  box-shadow: 0 3px 16px var(--color-shadow);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
  margin-bottom: 0;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #fece5b;
  color: #1A4052;
  box-shadow: 0 6px 30px var(--color-shadow-deep);
}
.cookie-btn.secondary {
  background: #fff;
  color: #FDB813;
  border: 1.5px solid #FDB813;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, border 0.12s;
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: #fde9c2;
  color: #1A4052;
  border: 1.5px solid #E09E08;
}

/* COOKIES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,64,82,0.89);
  z-index: 3500;
  align-items: center;
  justify-content: center;
  animation: fadeModalBg 0.25s;
}
@keyframes fadeModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fffdfa;
  border-radius: 22px;
  max-width: 430px;
  width: 88vw;
  padding: 32px 20px 28px 20px;
  box-shadow: 0 8px 48px var(--color-shadow-deep);
  animation: modalSlideUp 0.28s cubic-bezier(0.6,0.04,0.98,0.335);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(72px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-content h3 {
  color: #1A4052;
  font-size: 1.14rem;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-weight: 600;
  color: #34627A;
  margin-bottom: 0;
  font-size: 1.01rem;
}
.cookie-category .toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
}
.cookie-category .toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-category .toggle-span {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #F2F6F9;
  border-radius: 22px;
  transition: background 0.15s;
}
.cookie-category .toggle input:checked + .toggle-span {
  background: #FDB813;
}
.cookie-category .toggle-span:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.13);
  transition: transform 0.16s;
}
.cookie-category .toggle input:checked + .toggle-span:before {
  transform: translateX(14px);
}
.cookie-modal-content .close-cookie-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 1.5rem;
  background: #FDB813;
  color: #1A4052;
  border-radius: 50%;
  width: 36px; height: 36px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.17s;
}
.close-cookie-modal:hover,
.close-cookie-modal:focus {
  background: #fece5b;
}
.cookie-modal-content .cookie-btns {
  margin-top: 13px;
}

/* --- MICRO INTERACTIONS / TRANSITIONS --- */
.cta-btn, .card, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .footer-logo img, .article-list article, .testimonial-card {
  transition: box-shadow 0.17s, background 0.15s, color 0.13s, transform 0.14s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* --- UTILITIES --- */
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Z-INDEX --- */
header { z-index: 100; position: relative; }
footer { z-index: 50; position: relative; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 3500; }

/* --- SPECIAL / MISC --- */
address {
  font-style: normal;
  color: #38708D;
}
.address-map {
  background: #FDF6E7;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.97rem;
  color: #34627A;
  margin-top: 10px;
}
/* Case studies in reference.html */
h3 {
  margin-top: 18px;
  color: #1A4052;
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- SUCCESS & ERROR FEEDBACK (e.g., Thank-you page) --- */
.success-feedback, .error-feedback {
  background: #fffefa;
  border-radius: 14px;
  padding: 28px 16px;
  margin: 26px 0;
  color: #1A4052;
  border: 1.5px solid #fde9c2;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-align: center;
  font-size: 1.1rem;
}

/* --- PREVENT ABSOLUTE FOR CONTENT CARDS --- */
.card, .testimonial-card, .article-list article {
  position: relative;
}

/* No display:grid/grid-*, column-*, or break-inside anywhere as per specs. */