/* =============================
   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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F3F6F9;
  color: #2A2E5C;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
article, aside, footer, header, nav, section, main {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFB547;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  border: none;
}
button {
  cursor: pointer;
  background: none;
  outline: none;
}
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
}

/* =============================
   VARIABLES
============================= */
:root {
  --primary: #2A2E5C;
  --secondary: #FFB547;
  --accent: #F3F6F9;
  --shadow: 0 4px 20px rgba(42,46,92,0.08), 0 1.5px 5px rgba(42,46,92,0.07);
  --radius: 18px;
  --radius-card: 22px;
  --transition: 0.225s cubic-bezier(.4,0,.2,1);
  --font-display: 'Oswald', 'Arial Black', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* =============================
   CONTAINERS & STRUCTURE
============================= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* Core sections spacing/alignment */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 900px){
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}

/* Cards and Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 260px;
  padding: 28px 24px 24px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 34px rgba(42,46,92,0.10), 0 2px 8px rgba(42,46,92,0.09);
}

/* Content grid/flex 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Feature grid: for features section on many pages */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 245px;
  flex: 1 1 260px;
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 6px solid var(--secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid > div:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 34px rgba(42,46,92,0.10), 0 2px 8px rgba(42,46,92,0.09);
}
.feature-grid img {
  width: 48px; height: 48px; margin-bottom: 8px;
}
@media (max-width: 992px) {
  .feature-grid {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

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

/* =============================
   TYPOGRAPHY
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 0.01em;
  font-weight: 600;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.037em;
}
@media (max-width: 900px){
  h1 { font-size: 2rem; }
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  font-weight: 600;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
.subheadline {
  font-family: var(--font-body);
  color: #48536A;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #353A52;
  line-height: 1.7;
}
strong {
  font-weight: bold;
}
h1, h2, h3, h4 { margin-top: 0; }

a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* List Styles */
ul, .section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.section ul li, .section ol li {
  padding-left: 0;
  position: relative;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}
.section ul li img {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  vertical-align: middle;
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 82px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 16px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.03rem;
  letter-spacing: 0.043em;
}
.main-nav a {
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}
header .cta-btn {
  margin-left: auto;
}

/* Hide nav on mobile */
@media (max-width: 900px){
  .main-nav, header .cta-btn {
    display: none;
  }
}
@media (max-width: 900px) {
  header img {
    height: 40px;
    margin-right: 0;
  }
}

/* =============================
   MOBILE MENU (BURGER NAV)
============================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 28px;
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(42,46,92,0.10);
  border: 2.5px solid var(--primary);
  color: var(--primary);
  z-index: 220;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(42,46,92,0.13);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 90vw;
  max-width: 400px;
  background: #fff;
  box-shadow: 5px 0 48px rgba(42,46,92,0.24);
  z-index: 2999;
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(.8,0,.14,1);
  padding: 36px 36px 24px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.4rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 48px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.19rem;
  letter-spacing: 0.045em;
  padding: 12px 4px;
  border-radius: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 600;
  background: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
/* Overlay blur for mobile menu */
.mobile-menu.open::after {
  content: '';
  display: block;
  position: fixed;
  top:0; left:0;
  width: 100vw; height: 100vh;
  background: rgba(44, 47, 72, .26);
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 901px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* =============================
   HERO SECTIONS
============================= */
.hero {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-top: 32px;
  margin-bottom: 48px;
  position: relative;
}
.hero .container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  gap: 22px;
  color: #fff;
  align-items: flex-start;
}
.hero h1,
.hero h2, .hero .subheadline {
  color: #fff;
  text-shadow: 0 2px 4px rgba(42,46,92,0.08);
}
.hero .cta-btn {
  margin-top: 10px;
}
@media (max-width: 768px){
  .hero {
    margin-top: 12px;
    margin-bottom: 22px;
  }
  .hero .container {
    min-height: 160px;
    padding: 20px 6px;
  }
}

/* =============================
   CALL TO ACTION BUTTONS
============================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 12px 29px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.037em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  border: 2.5px solid transparent;
}
.cta-btn.primary {
  background: var(--secondary);
  color: var(--primary);
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--secondary);
}
.cta-btn.secondary {
  background: var(--primary);
  color: #fff;
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 500px) {
  .cta-btn { min-width: 120px; padding: 10px 16px; font-size: 1rem; }
}

/* =============================
   TESTIMONIALS
============================= */
.testimonials {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding-bottom: 52px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1.5px 7px rgba(42,46,92,0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 5px 15px rgba(42,46,92,0.08);
  transform: translateY(-3px);
}
.testimonial-card p {
  color: #243055;
  font-family: var(--font-body);
  font-size: 1.09rem;
  font-weight: 500;
  margin: 0 0 0 0;
  flex: 1;
}
.testimonial-card span {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 20px;
}
@media (max-width: 600px){
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 10px;
  }
  .testimonial-card span { margin-left: 0; }
}

/* =============================
   FOOTER
============================= */
footer {
  background: #fff;
  padding: 40px 0 28px 0;
  box-shadow: 0 -4px 14px rgba(42,46,92,0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 48px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.027em;
  padding: 4px 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
}
footer p {
  margin: 0;
  color: #5A607E;
  font-size: 0.99rem;
}
@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  footer {
    padding: 28px 0 18px 0;
  }
}

/* =============================
   SERVICES/ABOUT SECTION styles
============================= */
.services ul {
  gap: 16px;
  margin-bottom: 20px;
}
.services ul li {
  background: var(--accent);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 16px 16px 28px;
  margin-bottom: 12px;
  position: relative;
  font-size: 1.05rem;
  color: #25315a;
  box-shadow: 0 1.5px 8px rgba(42,46,92,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.services ul li strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-right: 10px;
}
.services ul li span {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.08rem;
}

.author-bio-short {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-top: 16px;
}
.author-bio-short h3 {
  font-size: 1.13rem;
  margin-bottom: 8px;
}

/* About/contact icon styles */
.mini-contact-info,
.contact .content-wrapper img {
  display: inline-block;
  vertical-align: middle;
}
.mini-contact-info img {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

/* =============================
   FLEXBOX COLUMN DIRECTION ON MOBILE
============================= */
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .content-wrapper, .section {
    padding: 24px 0;
    margin-bottom: 30px; 
  }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
============================= */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width:100vw;
  background: #fff;
  color: var(--primary);
  border-top: 3.5px solid var(--secondary);
  box-shadow: 0 -2.5px 32px rgba(42,46,92,0.09);
  z-index: 6000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px 22px 32px;
  font-size: 0.96rem;
  animation: cookieSlidein 0.6s cubic-bezier(0.8,0,0.2,1);
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    padding: 18px 8px 18px 8px;
    gap: 15px;
    font-size: 0.95rem;
    align-items: flex-start;
  }
}
@keyframes cookieSlidein {
  from { transform: translateY(80px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
#cookie-banner .cookie-btn {
  margin-left: 10px;
  min-width: 118px;
  padding: 11px 21px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  border: 2.5px solid transparent;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
#cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
#cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
#cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}

/* Cookie modal */
#cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -47%) scale(1);
  background: #fff;
  z-index: 7000;
  min-width: 340px; max-width: calc(100% - 32px);
  width: 400px;
  border-radius: 22px;
  box-shadow: 0 7px 42px rgba(42,46,92,0.22);
  padding: 38px 30px 30px 30px;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.55s cubic-bezier(.8,0,.2,1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity:0; transform: translate(-50%, -30%) scale(0.93); }
  to { opacity:1; transform: translate(-50%, -47%) scale(1); }
}
#cookie-modal h2 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 8px;
}
#cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#cookie-modal label {
  font-family: var(--font-body);
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--primary);
}
#cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  border-radius: 7px;
  border: 2px solid var(--primary);
}
#cookie-modal .cookie-btn {
  margin-top: 12px;
  display: inline-flex;
  min-width: 114px;
}
#cookie-modal .cookie-btn:last-child {
  margin-left: 8px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 17px;
  right: 19px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  border-radius: 50%;
  width: 34px; height: 34px;
  transition: background var(--transition);
}
#cookie-modal .close-modal:hover,
#cookie-modal .close-modal:focus {
  background: var(--accent);
}
@media (max-width: 400px) {
  #cookie-modal {
    padding: 20px 4px 16px 8px;
    min-width: unset;
    width: 95vw;
  }
}

/* Overlay for modal */
#cookie-overlay {
  content: '';
  display: none;
  position: fixed;
  z-index: 6999;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(42,46,92,0.33);
  backdrop-filter: blur(1.5px);
}
#cookie-overlay.open {
  display:block;
}

/* =============================
   ACCESSIBILITY: FOCUS VISIBLE
============================= */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
}

/* =============================
   GEOMETRIC, STRUCTURED DECORATIONS (subtle): 
============================= */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: 0; right: 0;
  width: 64px; height: 54px;
  background: url(../assets/geo-top.svg) no-repeat center/contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 44px;
  background: url(../assets/geo-bottom.svg) no-repeat center/contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 700px) {
  .section:before, .section:after {
    display: none;
  }
}

/* Geometric accent bar for h2 */
h2 {
  position: relative;
  padding-left: 28px;
}
h2:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 6px;
  background: var(--secondary);
  border-radius: 3px;
  position: absolute;
  left: 0; top: 14px;
}

/* =============================
   MICROINTERACTIONS & TRANSITIONS
============================= */
.card, .feature-grid > div, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

/* =============================
   UTILITIES
============================= */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.margin-auto { margin-left: auto; margin-right: auto; }

/* =============================
   PRINT STYLES (optional)
============================= */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, #cookie-banner, #cookie-modal, .cta-btn, footer {
    display: none !important;
  }
  body { color: #111; background: #fff !important; }
  .section, .card, .testimonial-card, .feature-grid > div { box-shadow: none !important; }
}
