/* === CSS RESET & BASE 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; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.5; background: #F5F7FA; color: #25496B; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 3px 10px 0 rgba(0,0,0,0.045); }
th, td { padding: 16px 12px; text-align: left; }
th { background: #F4B94011; color: #25496B; font-weight: 600; font-family: 'Montserrat',Arial,sans-serif; }
tr:nth-child(even) { background: #F5F7FA; }


/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400,300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #25496B;
  font-size: 16px;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25496B;
  letter-spacing: -.01em;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 22px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.375rem; line-height: 1.28; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol, address, table, blockquote {margin-bottom: 16px; font-size: 1rem;}
strong, b { font-weight: 700; }
small { color: #776d63; font-size: 0.94em; }

/* === BRAND COLORS === */
:root {
  --primary: #25496B;
  --primary-contrast: #fff;
  --secondary: #F5F7FA;
  --accent: #F4B940;
  --accent-dark: #d29d27;
  --accent-light: #FDE8B9;
  --card-bg: #fff;
  --shadow-soft: 0 3px 12px 0 rgba(244, 185, 64, 0.08), 0 0.5px 3px 0 rgba(40,40,40,0.04);
  --shadow-strong: 0 10px 32px 0 rgba(37,73,107,0.08);
  --testimonial-bg: #fffaf2;
  --testimonial-text: #25496B;
  --footer-bg: #25496B;
  --footer-text: #fff;
}


/* === GENERAL CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* === SECTION SPACING === */
section {
  background: var(--secondary);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}

@media (max-width: 992px) {
  section {
    padding: 32px 10px;
    border-radius: 20px;
  }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 600px) {
  section {
    padding: 24px 3vw;
    margin-bottom: 34px;
    border-radius: 16px;
  }
}


/* === HEADER, NAVIGATION & CTA === */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(37, 73, 107, 0.04);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
header img[alt="Dynamo Field"] {
  height: 44px;
  padding-right: 10px;
  border-radius: 8px;
  transition: box-shadow 0.22s;
}
header img[alt="Dynamo Field"]:hover {
  box-shadow: 0 2px 8px 0 rgba(244,185,64,0.16);
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary);
  opacity: .94;
  border-radius: 12px;
  padding: 7px 14px;
  transition: background 0.22s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
  outline: none;
}
nav a.cta.primary,
.mobile-nav a.cta.primary {
  background: var(--accent);
  color: var(--primary-contrast);
  border-radius: 16px;
  padding: 12px 26px;
  font-size: 1.11rem;
  font-weight: 700;
  box-shadow: 0 1.8px 8px 0 rgba(244,185,64,.08);
  transition: background 0.15s, box-shadow 0.18s, filter 0.14s;
}
nav a.cta.primary:hover, nav a.cta.primary:focus {
  background: var(--accent-dark);
  color: #fff;
  filter: brightness(1.04) saturate(1.07);
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  border-radius: 10px;
  padding: 4px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(244,185,64, .09);
  margin-left: 12px;
  transition: background 0.25s, filter 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent-dark);
  filter: brightness(1.07);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,73,107,0.93);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.41,1.09,.28,.91);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 0 0 42vw;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin: 30px 32px 0 0;
  align-self: flex-end;
  padding: 0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 32px 0 0;
  align-items: flex-end;
}
.mobile-nav a {
  color: #fff;
  padding: 14px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  width: 100%;
  text-align: right;
  border-radius: 16px;
  transition: background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--primary);
}

@media (max-width: 1000px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .mobile-menu { padding-left: 25vw; }
  .mobile-nav { margin: 36px 13vw 0 0; }
}


/* === MAIN FLEX LAYOUTS & COMPONENTS === */
.features-grid, .blog-grid, .team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 12px 0 10px 0;
}
.features-grid > div, .blog-grid > div, .team-members > div {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  flex: 1 0 270px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.23s;
  position: relative;
}
.features-grid > div:hover, .blog-grid > div:hover, .team-members > div:hover {
  box-shadow: 0 8px 24px 0 rgba(244,185,64,0.15), 0 1.5px 10px 0 rgba(37,73,107,0.08);
  transform: translateY(-2px) scale(1.025);
}
.features-grid img, .blog-grid img, .team-members img {
  margin-bottom: 10px; max-width: 58px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
}
.testimonial-card {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--testimonial-bg);
  color: var(--testimonial-text);
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 20px 0 rgba(244,185,64,0.11);
  font-size: 1.09rem;
  position: relative;
  min-width: 210px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: scale(1.02);
}
.testimonial-card strong {
  margin-top: 10px;
  font-size: 1rem;
  color: #90711c;
  font-weight: 600;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 26px;
  min-width: 220px;
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


@media (max-width: 900px) {
  .features-grid, .blog-grid, .team-members, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .blog-grid > div, .team-members > div {
    min-width: 180px;
    max-width: 100%;
    padding: 19px 10px;
  }
  .testimonial-card { min-width: 180px; }
  .content-grid, .card-container { flex-direction: column; gap: 18px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-wrapper { gap: 14px; }
}

/* === BUTTONS & INTERACTIONS === */
.cta,
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 16px;
  padding: 13px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(244,185,64,0.11);
  transition: background 0.16s, color 0.17s, box-shadow 0.19s, transform 0.18s;
}
.cta:hover, button:hover, input[type="submit"]:hover,
.cta:focus, button:focus, input[type="submit"]:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(244,185,64,0.13);
  filter: brightness(1.07);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* === FORM ELEMENTS === */
input, textarea, select {
  border: 1.5px solid #ced6e0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  background: #fff;
  transition: border-color 0.13s;
  font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}
label { display: block; margin-bottom: 8px; font-weight: 500; font-family: 'Montserrat', Arial, sans-serif; }


/* === FOOTER === */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 14px 0 rgba(37,73,107,0.07);
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 42px 40px;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-logo img {
  height: 42px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fff;
  padding: 3px 12px;
}
.footer-main-nav, .footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
}
.footer-main-nav a, .footer-legal-nav a {
  color: #fff;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: .88;
  transition: color .17s, opacity .09s;
  border-radius: 8px;
  padding: 3px 0 3px 3px;
}
.footer-main-nav a:hover, .footer-legal-nav a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-contact img {
  vertical-align: sub;
  margin: 0 6px 0 0;
  display: inline-block;
  height: 21px;
  border-radius: 6px;
}
.footer-contact a { color: var(--accent); text-decoration: underline; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-social a img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff3e3;
  padding: 7px;
  transition: background .13s, filter 0.13s;
}
.footer-social a:hover img {
  background: var(--accent);
  filter: brightness(1.08);
}
.footer-newsletter {
  max-width: 310px;
  margin-bottom: 16px;
}
.footer-newsletter h3 { color: #ffe7b0; }

@media (max-width: 1100px) {
  footer .container { flex-direction: column; gap: 24px; }
}
@media (max-width: 700px) {
  footer { border-radius: 16px 16px 0 0; padding: 26px 0 10px 0; margin-top: 24px; }
}


/* === PAGE-SPECIFIC & UTILITY === */
idex .hero, .about-intro, .success-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  justify-content: center;
  min-height: 300px;
}
address {
  font-style: normal;
  margin-bottom: 12px;
  color: #25496B;
  line-height: 1.52;
  background: var(--accent-light);
  padding: 12px 18px 13px 18px;
  border-radius: 13px;
  box-shadow: 0 1px 9px 0 rgba(244,185,64,.09);
  font-size: 1.02rem;
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
}
ul > li, ol > li {
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  font-size: 1rem;
  padding-left: 2px;
}
ul > li:before {
  content: "• ";
  color: var(--accent);
}

blockquote {
  background: var(--accent-light);
  border-left: 7px solid var(--accent);
  margin: 18px 0;
  padding: 18px 18px 18px 24px;
  border-radius: 15px;
  font-style: italic;
  color: #80620f;
}


/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #fff8ec;
  color: #25496B;
  border-top: 2px solid #F4B94030;
  box-shadow: 0 -4px 24px 0 rgba(37,73,107,0.07);
  z-index: 1100;
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 1.03rem;
  animation: cookie-slide-in .41s cubic-bezier(.42,1,.53,1.11);
}
@keyframes cookie-slide-in { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1;} }

.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  padding: 9px 22px;
  margin: 0 2px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 7px 0 rgba(244,185,64,0.08);
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent-dark);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--primary);
  border: 1.1px solid var(--accent);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--accent-light);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,73,107,0.68);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.cookie-modal {
  background: #fff;
  color: #25496B;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(244,185,64,0.17), 0 2px 10px 0 rgba(40,40,40,0.17);
  padding: 34px 28px 24px 28px;
  min-width: 330px;
  max-width: 98vw;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalAppear .3s cubic-bezier(.47,.98,.66,.98);
}
@keyframes modalAppear { from { transform: translateY(80px); opacity: 0} to {transform:none; opacity:1;} }

.cookie-modal-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  color: #25496B;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: #f6e2b0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
}
.cookie-category label {
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category[data-essential] input {
  pointer-events: none;
}
.cookie-modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 17px;
}
.cookie-modal-actions button {
  padding: 11px 27px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  border: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--accent-dark);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; font-size: .98rem; }
  .cookie-modal { min-width: 98vw; padding: 14px 10px 18px 9vw; }
  .cookie-category label { font-size: .98rem; }
}

/* === MISCELLANEOUS === */
::-webkit-input-placeholder { color: #bababa; }
::-moz-placeholder { color: #bababa; }
:-ms-input-placeholder { color: #bababa; }
::placeholder { color: #bababa; }

hr {
  border: none;
  border-top: 1.7px solid #e9c880;
  margin: 26px 0;
}

@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
}

/* === FOCUS STYLES === */
a, button, input, textarea, select {
  outline: none !important;
}
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 2.5px var(--accent);
  background: #fffde4;
  transition: box-shadow 0.13s, background 0.13s;
}

/* === CARD GRID UTILITY === */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .card-grid { flex-direction: column; gap: 14px; }
}

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