/* ---------------------------
   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, 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 {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #161a26;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #161a26;
  color: #F5F7FA;
  font-size: 16px;
  letter-spacing: 0.02em;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
*, *:before, *:after {
  box-sizing: inherit;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
a {
  color: #59B07A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1ABC9C;
}

/* -----------------------------
   BRAND COLORS & FONTS
------------------------------*/
:root {
  --primary: #1A4062;
  --secondary: #59B07A;
  --accent: #F5F7FA;
  --surface: #232a3b;
  --surface-alt: #272f43;
  --navbar-bg: #1A4062;
  --footer-bg: #232a3b;
  --border: #24354b;
  --neon-blue: #63B3ED;
  --neon-green: #3EF195;
  --error: #ff6384;
  --transition: 0.25s cubic-bezier(.42,0,.58,1);
  --radius: 14px;
  --radius-card: 18px;
  --shadow:0 2px 16px 0 rgba(30,50,84,0.18);
  --shadow-hover:0 4px 24px 0 rgba(50,255,246,0.13);
  --display: 'Montserrat', Arial, Helvetica, sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* -----------------------------
   GENERAL LAYOUT UTILITY
------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  position: relative;
}

/* Section modifiers */
.hero, .about-hero, .services-hero, .contact-hero, .thankyou, .faq-hero {
  background: linear-gradient(110deg, #23314b 0%, #1A4062 100%);
  color: var(--accent);
  border-bottom: 2px solid #334363;
  margin-bottom: 60px;
  padding: 60px 20px 40px 20px;
}

.cta-banner, .contact-teaser {
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-card);
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  padding: 32px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--neon-green);
}
.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;
  background: var(--accent);
  color: #1A4062;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(34,211,238,0.10);
  min-width: 240px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary);
  position: relative;
  font-size: 1.05em;
}
.testimonial-card strong {
  font-size: .98em;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------
   HEADER & NAVIGATION
---------------------------------*/
header {
  background: var(--navbar-bg);
  color: var(--accent);
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 16px 0 rgba(30,50,84,0.15);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 70px;
  gap: 40px;
}
.nav-main {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-main a {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1em;
  text-shadow: 0 1px 10px #1a40626c;
  transition: color var(--transition), text-shadow var(--transition);
  position: relative;
}
.nav-main a:after {
  content: '';
  display: block;
  margin: 4px auto 0;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width .22s;
}
.nav-main a:hover:after, .nav-main a:focus:after {
  width: 100%;
}
.nav-main a:hover,
.nav-main a:focus {
  color: var(--secondary);
}

.cta-primary {
  background: linear-gradient(100deg, #59B07A 0%, #63B3ED 100%);
  color: #161a26;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1em;
  border: none;
  border-radius: 40px;
  padding: 12px 32px;
  box-shadow: 0 2px 16px 0 rgba(50,255,246,0.16);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
  text-transform: none;
  transition: box-shadow .24s, filter .22s, background .26s, color .22s;
  outline: none;
  margin-left: 24px;
  margin-right: 0;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  filter: brightness(1.16) saturate(1.3);
  color: #1A4062;
  box-shadow: 0 4px 28px 0 #3EF19533, 0 0 0 4px #59B07A66;
}

/* Mobile menu burger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--accent);
  cursor: pointer;
  z-index: 60;
  margin-left: 18px;
  transition: color .22s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--neon-blue);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,49,84,0.98);
  box-shadow: 0 8px 42px #000c 0px 8px 24px #00f3 2px;
  z-index: 100;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  transition: transform .40s cubic-bezier(.57,.14,.41,.87);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 2.2em;
  position: absolute;
  top: 18px; right: 22px;
  z-index: 101;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 70px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.35em;
  padding: 14px 40px;
  border-radius: 33px;
  text-align: center;
  width: 260px;
  transition: background .19s, color .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #161a26;
}

@media (max-width: 1024px) {
  .nav-main {
    gap: 20px;
  }
  header .container { gap: 20px; }
  .cta-primary { margin-left: 12px; }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
    flex-direction: row;
  }
  .cta-primary { margin-left: 8px; }
}
@media (max-width: 768px) {
  .nav-main, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: space-between;
    gap: 10px;
  }
}

/* -----------------------------
   HERO HEADINGS & HEADINGS
------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--accent);
  margin-bottom: 0.3em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8em;
  line-height: 1.12;
}
h2 {
  font-size: 2em;
  line-height: 1.18;
  color: var(--neon-blue);
}
h3 {
  font-size: 1.20em;
  color: var(--secondary);
  margin-bottom: .25em;
  font-weight: 600;
}
h4 {
  font-size: 1em;
  color: var(--neon-blue);
  font-weight: 600;
}
.section h2, .content-wrapper h2 {
  margin-top: 0;
}

@media (max-width: 600px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.40em; }
  h3 { font-size: 1.12em; }
}

/* -----------------------------
   GENERAL TEXT
------------------------------*/
p, li, dd {
  font-size: 1em;
  margin-bottom: 0.3em;
  font-family: var(--body);
  color: #e4ebf3;
  line-height: 1.62;
}

ul, ol {
  margin: 12px 0 22px 24px;
  padding-left: 20px;
  font-size: 1em;
}
ul li, ol li {
  margin-bottom: 8px;
}
dl {
  margin: 16px 0 32px 0;
}
dt {
  font-weight: bold;
  color: var(--secondary);
  margin-top: 16px;
  font-size: 1.1em;
}
dd {
  margin-bottom: 12px;
}

strong,
b {
  font-weight: 700;
  color: var(--secondary);
}

address {
  font-style: normal;
  color: var(--accent);
}

/* ----------------------------------
   FEATURES GRID & LISTS
-----------------------------------*/
.features-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 8px 0;
}
.features-grid > div,
.services-list > div,
.service-card {
  background: var(--surface);
  padding: 28px 22px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 230px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.features-grid > div:hover,
.services-list > div:hover,
.service-card:hover {
  border-color: var(--neon-green);
  box-shadow: var(--shadow-hover),0 0 0 2px #3EF19533;
}
.features-grid img, .services-list img, .service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 5px #34e29b55);
}
.service-price {
  margin-top: 8px;
  color: var(--neon-green);
  font-weight: bold;
  font-family: var(--display);
  letter-spacing: 0.01em;
  font-size: 1.13em;
}

/* Team listing */
.team-member {
  background: var(--surface-alt);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #1a406222;
  padding: 22px 18px;
  margin-bottom: 24px;
  border-left: 4px solid var(--neon-blue);
}
.team-member h3 {
  color: var(--secondary);
}

/* Story section highlight */
.story .highlight {
  background: var(--surface);
  color: var(--accent);
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
  padding: 14px 22px;
  margin-top: 16px;
}

/* FAQ */
.faq-list dl {
  width: 100%;
}

.faq-list dt {
  margin-top: 20px;
  font-family: var(--display);
}
.faq-list dd {
  margin-left: 0;
  background: var(--surface-alt);
  padding: 14px 18px;
  border-radius: 7px;
  color: #F5F7FA;
  margin-bottom: 12px;
}

/* Legal pages and address */
.legal {
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

.legal a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Thank you */
.thankyou {
  padding: 70px 0 70px 0;
}

/* ---------------------------------
   TESTIMONIALS
----------------------------------*/
.testimonials {
  background: linear-gradient(120deg, #272f43 35%, #1a4062 100%);
  color: #1A4062;
  border-radius: var(--radius-card);
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .testimonial-list { flex-direction: column; gap: 20px; }
  .features-grid, .services-list { flex-direction: column; gap: 18px; }
  .card-container { flex-direction: column; }
}

/* ----------------------------------
   FOOTER DESIGN
-----------------------------------*/
footer {
  background: var(--footer-bg);
  color: var(--accent);
  font-size: 0.98em;
  width: 100%;
  padding: 0;
  position: relative;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 20px 18px 20px;
  text-align: center;
}
footer img {
  width: 56px;
  height: auto;
  margin-bottom: -8px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 500;
  transition: color .22s;
  font-size: 1em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  margin-bottom: 8px;
  color: #bcdaef;
  font-size: .98em;
}

/* -----------------------------
   RESPONSIVE DESIGN
------------------------------*/
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 10px; padding-right: 10px;
  }
  .content-grid, .features-grid, .services-list, .testimonial-list,
  .card-container, .footer-nav {
    flex-direction: column !important;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero, .about-hero, .services-hero, .contact-hero, .thankyou { padding: 40px 10px 28px 10px; }
  .section, .legal, .testimonials, .cta-banner, .contact-teaser { padding: 28px 10px; }
  .team-member, .testimonial-card { padding: 15px 10px; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.19em; }
  h2 { font-size: 1em; }
}
@media (max-width: 450px) {
  .cta-primary{ width: 100%; font-size: 1em; padding: 10px 12px; }
  .footer-nav, .testimonial-list { gap: 13px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Force no overlapping */
.features-grid > div, .services-list > div, .card, .service-card, .testimonial-card, .team-member {
  min-width: 0;
  margin-right: 0;
}

/* ----------------------------------
   BUTTONS, ACCENTS & EFFECTS
-----------------------------------*/
button {
  font-family: var(--display);
  border: none;
  border-radius: var(--radius);
  background: var(--secondary);
  color: #161a26;
  padding: 11px 25px;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 2px 8px #59B07A55;
  transition: background .22s, color .17s, box-shadow .24s;
}
button:hover, button:focus {
  background: var(--neon-green);
  color: #1A4062;
  box-shadow: 0 4px 16px #34e29bbe, 0 0 0 2px #1A406260;
  outline: none;
}

/* Inputs */
input, textarea, select {
  background: var(--surface-alt);
  color: var(--accent);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 1em;
  width: 100%;
  transition: border-color .19s, box-shadow .20s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 2px #63b3ed99;
  outline: none;
}

/* Link styles in text */
p a { color: var(--secondary); text-decoration: underline; }
p a:hover, p a:focus { color: var(--neon-blue); }

/* -------------------------------
   COOKIE CONSENT BANNER
--------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(34,50,75,0.95);
  color: var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  z-index: 1111;
  box-shadow: 0 -3px 20px #59B07A45;
  gap: 22px;
  font-size: 1em;
  animation: cookie-slide-in .7s cubic-bezier(.54,1.9,.41,.84);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(150%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner button {
  padding: 10px 22px;
  font-size: 1em;
  border-radius: 33px;
  border: none;
  font-family: var(--display);
  min-width: 110px;
  transition: background .22s, color .17s;
  box-shadow: none;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #161a26;
}
.cookie-banner .reject {
  background: #1A4062;
  color: var(--accent);
  border: 1px solid var(--secondary);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--neon-blue);
}
.cookie-banner button:hover {
  box-shadow: 0 4px 12px #59B07A99;
}

@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 8px;
    font-size: .98em;
  }
  .cookie-banner__buttons {
    justify-content: stretch;
    gap: 12px;
  }
}

/* Cookie Modal */
.cookie-modal__overlay {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 11111;
  background: rgba(25,32,53,0.95);
  justify-content: center;
  align-items: center;
  animation: cookie-modal-in .44s;
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal {
  background: #21283a;
  color: var(--accent);
  border-radius: 18px;
  max-width: 430px;
  width: 96%;
  padding: 32px 26px;
  box-shadow: 0 8px 40px #161a2990, 0 0 0 5px #3EF19533;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  color: var(--accent);
  border: none;
  font-size: 1.6em;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal__close:hover {
  color: var(--neon-green);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category label {
  font-size: 1em;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--neon-blue);
  width: 19px; height: 19px;
}
.cookie-toggle[disabled] {
  opacity: 0.66;
  cursor: not-allowed;
}


/* ----------------------------------
   ANIMATION DECOR
-----------------------------------*/
.section:after,
.hero:after, .about-hero:after, .services-hero:after, .contact-hero:after,
.contact-teaser:after, .cta-banner:after {
  content: '';
  pointer-events: none;
  display: block;
  position: absolute;
  top: -17px; right: -17px;
  width: 65px; height: 65px;
  background: radial-gradient(circle, #3EF19555  60%, #59B07A11 100%);
  border-radius: 60px;
  z-index: 0;
  opacity: .44;
  filter: blur(1.5px);
}
.section:before {
  content: '';
  pointer-events: none;
  display: block;
  position: absolute;
  bottom: -34px; left: -21px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, #63B3ED55  70%, #1A406210 100%);
  border-radius: 60px;
  z-index: 0;
  opacity: .38;
  filter: blur(1.7px);
}
.hero:after { background: radial-gradient(circle, #63B3ED88 60%, #59B07A10 100%); }
.hero:before {
  content: '';
  pointer-events: none;
  display: block;
  position: absolute;
  left: -17px; bottom: -25px;
  width: 100px; height: 55px;
  background: radial-gradient(circle, #3EF19555 50%, #1A406210 100%);
  z-index: 0;
  opacity:.38;
}

/* ----------------------------------------
   MISC UTILS
-----------------------------------------*/
.nowrap { white-space: nowrap; }
.neon-underline { text-decoration: underline; color: var(--neon-blue); }
.bg-accent { background: var(--accent); color: var(--primary); }
.bg-secondary { background: var(--secondary); color: #161a26; }
.hidden { display: none !important; }

/* Prevent overlapping */
.features-grid > div:not(:last-child),
.services-list > div:not(:last-child),
.card:not(:last-child),
.service-card:not(:last-child),
.testimonial-card:not(:last-child), 
.team-member:not(:last-child) {
  margin-bottom: 20px;
}

/* Visual focus states */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}

/* Hide decorative pseudo-elements on mobile for simplicity */
@media (max-width: 600px) {
  .section:after, .section:before, .hero:after, .hero:before, .about-hero:after, .services-hero:after,
  .contact-hero:after, .contact-teaser:after, .cta-banner:after {
    display: none;
  }
}

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