/* =============================================
   CSS RESET & BASELINE 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, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  font-weight: inherit;
}
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #F3F6F8;
  color: #0e2c3e;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #16507A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #79B4B7;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #134166;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1em; }
strong { font-weight: 600; }
hr { border: none; border-top: 1px solid #e6ecef; margin: 32px 0; height: 1px; }

/* =============================================
   BRAND COLORS (as CSS variables for fallback)
============================================= */
:root {
  --primary: #16507A;
  --secondary: #79B4B7;
  --accent: #F3F6F8;
  --heading: #134166;
  --body: #0e2c3e;
  --white: #fff;
  --shadow: rgba(18, 80, 134, 0.11);
  --card-bg: #fff;
  --border: #e3e9ef;
  --cta-hover: #123a5e;
  --warning: #dfa33a;
  --danger: #c94039;
  --success: #3ab67e;
  --black: #111820;
}

/* =============================================
   LAYOUT & SPACING UTILITIES
============================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 4px 22px var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  margin-bottom: 20px;
}

/* =============================================
   MODERN GRADIENT BACKGROUNDS
============================================= */
.hero, .cta {
  background: linear-gradient(95deg, #79B4B7 0%, #16507A 100%);
  color: var(--white);
  margin-bottom: 60px;
  border-radius: 24px;
  padding: 60px 0 56px 0;
  box-shadow: 0 6px 36px var(--shadow);
}
.hero h1,
.hero h2,
.cta h2 {
  color: #fff;
}

/* =============================================
   NAVIGATION (DESKTOP & MOBILE)
============================================= */
header {
  background: var(--card-bg);
  box-shadow: 0 4px 16px var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px 12px 10px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.cta.primary {
  background: linear-gradient(90deg, #16507A 40%, #79B4B7 100%);
  color: #fff;
  box-shadow: 0 2px 14px var(--shadow);
  font-weight: 700;
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: linear-gradient(90deg, #123a5e 40%, #65a6ac 100%);
}
.main-nav a:hover {
  background: var(--secondary);
  color: var(--white);
}
.main-nav img {
  height: 36px;
  margin-right: 10px;
}
/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(93deg, #16507A 70%, #79B4B7 100%);
  box-shadow: 0 8px 44px var(--shadow);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1), opacity 0.25s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 22px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #fff;
  z-index: 130;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: rgba(255,255,255,0.15);
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 36px 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  transition: background 0.2s, color 0.2s;
  border-radius: 12px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  background: rgba(255,255,255,0.11);
}

/* ===== BURGER BUTTON ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 110;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: var(--accent);
}

/* =============================================
   HERO & CTA BUTTONS
============================================= */
.cta, .hero .cta.primary {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 38px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(87deg, #16507A 70%, #79B4B7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 16px var(--shadow);
  margin-top: 12px;
  margin-bottom: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.18s, transform .14s;
  outline: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(94deg, #134166 77%, #79B4B7 100%);
  box-shadow: 0 6px 24px rgba(22, 80, 122, 0.16);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary {
  background: #fff;
  color: #16507A;
  border: 2px solid #16507A;
  box-shadow: 0 2px 8px var(--shadow);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #79B4B7;
  color: #fff;
  border-color: #134166;
}

/* =============================================
   FEATURE GRID & FLEX SPACING
============================================= */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 30px 24px 24px 24px;
  min-width: 200px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 6px #e0f1f5);
}
.feature-item h3 {
  font-size: 1.2rem;
  color: #16507A;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(18, 80, 134, 0.22);
  transform: translateY(-2px) scale(1.03);
}

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px var(--shadow);
}
.testimonials h2 {
  color: #134166;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--accent);
  border-left: 7px solid #79B4B7;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  font-size: 1.06rem;
  color: #1a2530;
  transition: box-shadow 0.17s, border-color 0.18s;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(121, 180, 183, 0.17);
  border-color: #16507A;
}
.testimonial-card span {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16507A;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
}
.testimonial-card blockquote {
  margin: 0 0 10px 0;
}

/* =============================================
   CARD CONTAINERS, CASE STUDIES, SERVICE CARDS
============================================= */
.card-container, .card-grid, .case-study-cards, .detailed-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card, .case-study-card, .service-item {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 24px 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.case-study-card {
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 350px;
}
.case-study-card h3 {
  font-size: 1.12rem;
  color: #16507A;
  margin-bottom: 9px;
}
.card:hover, .case-study-card:hover, .service-item:hover {
  box-shadow: 0 8px 24px rgba(18, 80, 134, 0.16);
  transform: translateY(-2px) scale(1.02);
}

/* =============================================
   OTHER FLEXBOX LAYOUTS FROM MANDATORY PATTERNS
============================================= */
.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;
}

/* =============================================
   PRICING TABLE & FAQ ACCORDION
============================================= */
.pricing {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.service-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--shadow);
  border-radius: 14px;
  overflow: hidden;
}
.service-price-table th, .service-price-table td {
  padding: 14px 12px;
  text-align: left;
}
.service-price-table th {
  background: #79B4B7;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
}
.service-price-table tr:nth-child(even) {
  background: #f8fcfd;
}
.service-price-table tr:nth-child(odd) {
  background: #fff;
}
.service-price {
  color: #134166;
  font-weight: 700;
  margin-left: 8px;
}
.faq-accordion > div {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px 20px 15px 20px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-bottom: 16px;
}
.faq-accordion h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: #16507A;
}
.faq-accordion p {
  font-size: 0.97rem;
}

/* =============================================
   LEGAL PAGES & TEXT CONTENT
============================================= */
.legal .container {
  padding-top: 30px;
}
.legal .text-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 28px 22px;
  font-size: 1rem;
  color: var(--body);
}
.legal h2 {
  color: #16507A;
  font-size: 1.17rem;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 20px 24px 20px;
  box-shadow: 0 -2px 22px var(--shadow);
  margin-top: 40px;
  border-radius: 22px 22px 0 0;
  z-index: 11;
  position: relative;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.95;
  transition: color 0.25s, text-decoration 0.22s;
}
.footer-nav a:hover { text-decoration: underline; color: #79B4B7; }
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.footer-branding img {
  height: 38px;
  margin-bottom: 4px;
}
.footer-branding span {
  font-size: 0.98rem;
  color: #d0e1ea;
}

/* =============================================
   COOKIE CONSENT BANNER & MODAL
============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: linear-gradient(97deg, #16507A 80%, #79B4B7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px 22px 16px;
  z-index: 9999;
  box-shadow: 0 -2px 18px var(--shadow);
  border-radius: 22px 22px 0 0;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpBanner 0.7s cubic-bezier(.5,.2,.3,1);
}
@keyframes slideUpBanner {
  0% { transform: translateY(120%); opacity: 0; }
  94% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  border: none;
  padding: 11px 23px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s, transform .13s;
  margin: 0;
  background: #fff;
  color: #16507A;
  box-shadow: 0 1px 9px var(--shadow);
}
.cookie-banner button.accept {
  background: linear-gradient(92deg, #16507A 80%, #79B4B7 100%);
  color: #fff;
  box-shadow: 0 2px 8px var(--shadow);
}
.cookie-banner button.accept:hover { background: #123a5e; }
.cookie-banner button.reject {
  background: #fae6de;
  color: #c94039;
  border: 1.5px solid #c94039;
}
.cookie-banner button.reject:hover { background: #ffe1e5; }
.cookie-banner button.settings {
  background: #fff;
  color: #16507A;
  border: 1px solid #16507A;
}
.cookie-banner button.settings:hover { background: #eaf8fa; }

/* ===== COOKIE MODAL ===== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(22, 80, 122, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #134166;
  border-radius: 18px;
  padding: 40px 28px 32px 28px;
  max-width: 430px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px var(--shadow);
  animation: modalPop 0.33s cubic-bezier(.38,.07,.39,.98);
  z-index: 10001;
}
@keyframes modalPop {
  0% { transform: scale(0.88) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #16507A;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
}
.cookie-modal label {
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #134166;
}
.cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #79B4B7;
}
.cookie-modal .essential {
  opacity: 0.65;
}
.cookie-modal .cookie-modal-btns {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: transparent;
  color: #16507A;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* =============================================
   CONTACT INFO & THANK YOU PAGE
============================================= */
.contact-info .contact-details {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 17px 20px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #134166;
}
.contact-info a {
  color: #16507A;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.17s;
}
.contact-info a:hover { color: #65a6ac; }
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
}
.thank-you h1 {
  color: #134166;
}

/* =============================================
   VALUES GRID & TEAM INTRO (About Page)
============================================= */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.values-grid > div {
  background: var(--card-bg);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 18px 16px;
  min-width: 200px;
  max-width: 320px;
  flex: 1 1 200px;
}
.values-grid h3 {
  font-size: 1.13rem;
  color: #16507A;
  margin-bottom: 6px;
}
.team-intro {
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 18px 16px 12px 16px;
}

/* =============================================
   GENERAL UTILITY CLASSES
============================================= */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* =============================================
   RESPONSIVE DESIGN – MOBILE FIRST
============================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .feature-grid, .values-grid, .case-study-cards, .card-container, .card-grid, .detailed-service-list {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 720px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }

  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero, .cta {
    padding: 38px 0 32px 0;
  }
  .section, .features, .pricing {
    padding: 26px 6px;
  }
  .testimonial-card, .case-study-card, .feature-item, .values-grid > div, .service-item {
    padding: 17px 13px;
    min-width: 0;
    max-width: 100vw;
  }
  .feature-grid, .values-grid, .case-study-cards, .card-container, .card-grid, .detailed-service-list {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
  .testimonial-card {
    padding: 14px 9px;
    font-size: 0.99rem;
  }
  .service-price-table th, .service-price-table td {
    padding: 10px 7px;
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    font-size: .94rem;
    align-items: flex-start;
    padding: 18px 10px 18px 10px;
    gap: 8px;
  }
  .cookie-banner .cookie-btns {
    width: 100%;
    gap: 9px;
    flex-wrap: wrap;
  }
  .cookie-modal {
    padding: 22px 10px 16px 10px;
    max-width: 98vw;
    font-size: .94rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.05rem; }
  .footer-branding span { font-size: .89rem; }
}

/* =============================================
   SCROLLBAR & SELECTION MODERNIZATION
============================================= */
::-webkit-scrollbar { width: 9px; background: #e4ecef; }
::-webkit-scrollbar-thumb { background: #b8d7df; border-radius: 5px; }
::-webkit-selection {
  background: #16507A;
  color: #fff;
}
::selection {
  background: #16507A;
  color: #fff;
}

/* =============================================
   FONT IMPORTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:400,600,700&family=Open+Sans:400,600&display=swap');

/* =============================================
   TRANSITION MICRO-INTERACTIONS
============================================= */
.card, .case-study-card, .feature-item, .testimonial-card, .values-grid > div, .service-item {
  transition: box-shadow 0.17s, transform 0.15s, border-color 0.14s;
}
button, .cta, .main-nav a, .footer-nav a {
  transition: background 0.18s, color 0.19s, box-shadow 0.17s;
}

/* =============================================
   ACCESSIBILITY and FOCUS STATES
============================================= */
a:focus, button:focus, .cta:focus {
  outline: 2.5px solid #79B4B7;
  outline-offset: 2px;
  z-index: 10;
}
textarea:focus, input:focus, select:focus {
  outline: 1.5px solid #79B4B7;
}

/* =============================================
   HIDE UNNECESSARY ELEMENTS FOR PRINT
============================================= */
@media print {
  .main-nav, .footer-nav, .mobile-menu, .cookie-banner, .mobile-menu-toggle, .cta, .cta.primary, .cta.secondary {
    display: none !important;
  }
  body, .container, .section, footer {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
