/* RESET & NORMALIZE (Modern) */
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: #F4F7FA; color: #222847; font-family: 'Open Sans', Arial, sans-serif; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus { outline: 2px solid #00C2D1; outline-offset: 2px; }

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;700&display=swap');
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; }
p, ul, ol, li, span, a, button, label { font-family: 'Open Sans', Arial, sans-serif; }

/* -------- VARIABLES & BRAND COLORS -------- */
:root {
  --primary: #222847;
  --secondary: #00C2D1;
  --accent: #F4F7FA;
  --shadow: 0 4px 16px 0 rgba(34,40,71,0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --danger: #FF6B6B;
  --info: #30C3FF;
  --success: #36b37e;
  --yellow: #FFD041;
  --orange: #FF9C3F;
}

/* -------------- SPACING & LAYOUTS -------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.18s;
  min-width: 270px;
  flex: 1 1 270px;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,40,71,0.14);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}
.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;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 340px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(0, 194, 209,.16);
  transform: scale(1.025) skew(-1deg, 0.8deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
}

.location-map {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 10px 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px 0;
  font-size: 16px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 50%;
  transition: background 0.1s, transform 0.2s;
  padding: 8px;
}
.footer-social a:hover {
  background: var(--secondary);
  transform: scale(1.14) rotate(-4deg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-bottom {
  font-size: 14px;
  margin: 26px 0 0 0;
  color: #8996b0;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ----- HEADER + NAVIGATION + MOBILE MENU ----- */
header {
  width: 100%; background: #fff;
  box-shadow: 0 4px 18px 0 rgba(0, 194, 209, 0.07);
  z-index: 10;
  position: sticky; top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 15px 20px;
}
header .container > * { margin-right: 16px; }
header .container > *:last-child { margin-right: 0; }
img[alt="FadedTream Cyber Trust"], .footer-brand img, img[alt="FadedTream"] {
  height: 48px; width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
}
.main-nav a {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: background 0.13s, color 0.13s, box-shadow 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 2px 8px -2px rgba(0,194,209,0.10);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--secondary), var(--yellow));
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 30px 12px 24px;
  box-shadow: 0 4px 12px 0 rgba(0,194,209,0.12);
  margin-left: 22px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.16s, box-shadow 0.22s;
  min-width: 147px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--yellow), var(--secondary));
  box-shadow: 0 8px 18px 0 rgba(255,160,29,0.19);
  transform: scale(1.04) rotate(-2deg);
}

button, .mobile-menu-toggle, .mobile-menu-close {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 2rem;
}
.mobile-menu-toggle {
  display: none;
  color: var(--secondary);
  background: transparent;
  padding: 8px;
  z-index: 21;
}
.mobile-menu {
  display: none;
  z-index: 30;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34, 40, 71, 0.97);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.40s cubic-bezier(.66,.1,.3,1.09);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  padding: 12px 18px 12px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: transparent;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.03em;
  padding: 12px 0;
  border-radius: var(--radius-md);
  transition: background 0.17s, color 0.18s, transform 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateX(8px) scale(1.03);
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(90deg, #f5fcfe 0%, #e1faff 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 28px 0 rgba(0,194,209,0.08);
  margin-bottom: 54px;
  padding-top: 36px;
  padding-bottom: 44px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 2px 6px 0 #fff9, 3px 5px 14px #00C2D12B;
  /* playful shadow */
}
@media (min-width: 600px) {
  .hero h1 { font-size: 3.6rem; }
}
.hero .subheadline {
  font-size: 1.32rem;
  color: #222847cc;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero .btn-primary {
  margin-left: 0;
  margin-top: 12px;
}

/* ---------- GENERAL TYPOGRAPHY ---------- */
h1 { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
h2 { font-size: 2rem; font-weight: 700; color: var(--primary); }
h3 { font-size: 1.28rem; font-weight: 700; color: var(--secondary); }
h4 { font-size: 1.1rem; font-weight: 800; color: var(--secondary); text-transform: uppercase; }
p, li, span { font-size: 1rem; color: var(--primary); line-height: 1.7; }
ul { margin-left: 1.1em; }
ul li { margin-bottom: 9px; }
ul li:last-child { margin-bottom: 0; }
strong { color: var(--primary); font-weight: 700; }

/* playful headline deco */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1:after, h2:after {
  content: '';
  display: block;
  position: absolute;
  left: -8px; top: 60%;
  width: 58px; height: 13px;
  background: var(--secondary);
  opacity: 0.14;
  border-radius: 7px;
  z-index: -1;
}
h2:after { width: 37px; height: 9px; top: 65%; opacity: 0.14; }


/* -------- FEATURE/CARD/INFO BLOCKS -------- */
.feature-grid > div {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(34,40,71,0.08), 0 1px 2px #e1faffb7;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.2s;
}
.feature-grid > div img {
  width: 42px; height: 42px;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 6px var(--secondary));
}
.feature-grid > div:hover {
  box-shadow: 0 4px 32px 0 rgba(0,193,209,0.19);
  transform: translateY(-7px) rotate(1.5deg) scale(1.03);
}


/* --- LISTS --- */
ul, ol {
  padding-left: 14px;
  margin-bottom: 15px;
}
ul li, ol li {
  margin-bottom: 10px;
}
li strong { font-weight: 800; color: var(--secondary); }

/* --- Testimonial Card --- */
.testimonial-card {
  font-size: 1.07rem;
  font-weight: 600;
  border-left: 7px solid var(--secondary);
  filter: drop-shadow(0 4px 6px #00C2D118);
}
.testimonial-card p {
  color: #222847;
  margin-bottom: 5px;
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
}
.testimonial-card span {
  color: #8e9cc4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
}


/* ------------- FOOTER ------------- */
footer {
  width: 100%;
  background: #222847;
  color: #fff;
  margin-top: 80px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 44px 0 rgba(0,194,209,0.09);
  padding-top: 30px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
footer .footer-contact {
  font-size: 15px; color: #fff;
}
footer .footer-links {
  flex-direction: column;
  gap: 5px;
}
footer .footer-links a {
  color: #fff;
  font-size: 15px;
  border-radius: 7px;
  padding: 3px 9px;
  transition: background 0.13s, color 0.15s;
}
footer .footer-links a:hover,
footer .footer-links a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-brand p {
  color: #94e7ff;
  font-size: 15px;
}

/* --------------------- Cookie Banner & Cookie Modal ----------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 199;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -4px 36px 0 rgba(0,194,209,0.13);
  padding: 28px 18px 18px 18px;
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: cookie-slide-up 0.8s cubic-bezier(.63,.02,.22,.93);
}
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateY(98px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  flex: 2 1 0;
}
.cookie-banner__actions {
  display: flex; flex-direction: row; gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius-md);
  padding: 9px 21px;
  background: var(--secondary);
  color: #fff;
  border: none;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(0,194,209,0.11);
  transition: background 0.15s, transform 0.12s;
}
.cookie-btn:hover { background: #22e3fa; transform: scale(1.08) rotate(-2deg); }
.cookie-settings-btn { background: var(--yellow); color: var(--primary); }
.cookie-settings-btn:hover { background: #ffe578; }

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 201;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 40, 71, 0.77);
  display: flex; align-items: center; justify-content: center;
  animation: cookie-fade-in 0.33s;
}
@keyframes cookie-fade-in { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 44px 0 rgba(0,194,209,0.17);
  padding: 38px 30px 30px 30px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookie-bounce 0.66s cubic-bezier(.46,1.52,.6,1.13);
}
@keyframes cookie-bounce {
  0% {transform: scale(0.70) translateY(100px); opacity:0}
  60% {transform: scale(1.09) translateY(-16px); opacity:1}
  100%{transform: scale(1) translateY(0)}
}
.cookie-modal h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 600; color: var(--secondary); font-size: 1rem;
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  width: 36px; height: 20px;
  background: #eee;
  border-radius: 20px;
  transition: background 0.19s;
  position: relative;
  margin-right: 6px;
}
.toggle-slider:before {
  content:"";
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.19s, background 0.16s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background: var(--secondary);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
  left: 19px; background: var(--yellow);
}
.cookie-modal .cookie-close-btn {
  position: absolute; top: 22px; right: 19px;
  font-size: 1.9rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  z-index: 12;
  padding: 4px 8px;
}

/* ------------- FORM ELEMENTS ------------- */
input, select, textarea {
  border: 1px solid #eaeaea;
  border-radius: var(--radius-md);
  padding: 10px 13px;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #fff;
  color: var(--primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1.5px var(--secondary);
}
label { font-weight: 600; color: var(--primary); }

/* ---- PAGE SPECIFIC / UNIQUE ----- */
.location-map img {
  width: 64px; height: 64px; margin-right: 13px;
  border-radius: 14px;
  border: 3px solid var(--secondary);
}

/* --------- ANIMATED ELEMENTS / PLAYFUL DECOR ------- */
@keyframes float1 {
  0% { transform:translateY(0px) rotate(-3deg); }
  50%{ transform:translateY(-6px) rotate(2deg); }
  100%{ transform:translateY(0px) rotate(-3deg); }
}
.hero img,
.feature-grid > div img,
.footer-brand img,
.footer-social img {
  animation: float1 3.1s infinite cubic-bezier(.46,.1,.56,.88);
}
/* Give some cards more punch - alternate float and background */
.card:nth-child(even), .feature-grid > div:nth-child(even) { animation: float1 2.8s 0.6s infinite cubic-bezier(.48,.1,.66,.85); }
.feature-grid > div:nth-child(odd) { background: #f5fcfe; }

/*---- MEDIA QUERIES (Responsive) ----*/
@media (max-width: 1000px) {
  .content-wrapper,
  .footer .content-wrapper {
    flex-direction: column;
    gap: 32px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-social { margin-bottom: 12px; }
  .footer .content-wrapper { gap: 20px; }
}
@media (max-width: 768px) {
  header .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .btn-primary { margin-left: 0px; }
  .container { padding: 0 11px; }
  .content-wrapper,
  .card-container,
  .feature-grid,
  .section,
  .testimonial-card,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .section { padding: 28px 8px; }
  .hero { padding: 27px 11px 31px 11px; border-radius: 0 0 20px 20px; }
  .footer-bottom { margin-top: 15px; padding-bottom: 10px; }
  .location-map { gap: 11px; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px 12px 8px;
  }
  .mobile-menu { padding: 31px 11px 12px 11px; }
  .mobile-nav a { font-size: 22px; }
}
@media (max-width: 430px) {
  .hero h1, h1 { font-size: 1.3rem!important; }
  .btn-primary, .cookie-btn { font-size: 16px; padding: 12px 12px; }
  .cookie-modal { padding: 19px 4px; }
}

/* --- Accessibility contrast: testimonials --- */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #fff;
  color: #19203a;
}

/* ------- Playful Microinteractions & Focus ------ */
.btn-primary:active, .cookie-btn:active, .cookie-settings-btn:active, .main-nav a:active, .mobile-nav a:active {
  filter: brightness(1.17) saturate(2.1);
  box-shadow: 0 1px 3px 0 #00C2D19a;
}

/* ------------- Prevent overlap --------- */
.section, .card, .testimonial-card, .feature-grid > div, .location-map, .footer-contact, .footer-links, .footer-brand, .footer-social {
  margin-bottom: 20px;
}
.section:last-child,
.card:last-child,
.testimonial-card:last-child,
.location-map:last-child {
  margin-bottom: 0;
}

/* End of Style */