/* Contrago Digital — hand-written stylesheet (no frameworks) */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rose: #ff3366;
  --blue: #16a2e0;
  --ink: #222;
  --text: #333;
  --grey: #666;
  --muted: #888;
  --light-bg: #f0f0f0;
  --line: #ebebeb;
  --dark: #252d35;
  --container: 1110px;
  --heading: "Montserrat", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font: 300 16px/1.5 var(--body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--heading); color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 30px);
  margin: 0 auto;
  padding: 0 15px;
}

.section-title { text-align: center; }
.section-title h2,
.section-title h3 { font-size: 42px; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 8px; }
.section-title p { font-size: 18px; line-height: 1; margin-top: 15px; }

.btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font: 700 13.2px/1 var(--heading);
  letter-spacing: 0.25px;
  text-transform: uppercase;
  padding: 16.8px 26.4px;
  border: 2px solid var(--rose);
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn:hover { background: #e62e5c; border-color: #e62e5c; }

.divider { max-width: var(--container); margin: 0 auto; border: 0; border-top: 1px solid var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 40px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { position: relative; display: block; height: 100px; }
.logo img { height: 100px; width: auto; }
.logo .logo-blue { position: absolute; inset: 0 auto auto 0; opacity: 0; }

.menu { display: flex; align-items: center; gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu a.nav-link {
  display: block;
  padding: 10.4px 0;
  font: 600 13.6px/1 var(--heading);
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s;
}
.menu a.nav-link:hover { color: var(--rose); }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  vertical-align: 2px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fbfbfb;
  border: 1px solid #ddd;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 20px; font: 500 16px/1.5 var(--body); color: #212529; }
.dropdown a:hover { color: var(--rose); }

.menu-toggle, .menu-toggle-input { display: none; }

/* Turn the transparent header white once the page scrolls (scroll-driven animation, no JS). */
@supports (animation-timeline: scroll()) {
  .home .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
  .home .site-header .logo-white { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
  .home .site-header .logo-blue { animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
  .home .site-header .nav-link { animation: link-dark linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
}
@supports not (animation-timeline: scroll()) {
  .home .site-header { position: absolute; }
}
@keyframes header-solid {
  0%, 99% { background: transparent; padding: 40px 0; box-shadow: none; }
  100% { background: #fff; padding: 16px 0; box-shadow: 0 0 2px rgba(50, 50, 50, 0.4); }
}
@keyframes fade-out { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fade-in { 0%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes link-dark { 0%, 99% { color: #fff; } 100% { color: var(--text); } }

/* Inner pages: always the solid white header */
.page .site-header { position: absolute; background: #fff; padding: 40px 0; }
.page .logo-white { opacity: 0; }
.page .logo-blue { opacity: 1; }
.page .nav-link { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  background: url("../images/hero-2.png") no-repeat 50% 100% / cover;
  padding: 140px 0 20px;
  min-height: 753px;
}
.hero .container { display: flex; align-items: center; }
.hero-text { flex: 0 0 445px; color: #fff; }
.hero-text h1 { color: #fff; font-size: 48px; line-height: 1.2; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 20px; }
.hero-text p { font-size: 18px; line-height: 1; margin-bottom: 16px; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; padding-right: 0; }
.hero-image img { width: 540px; margin-right: 0; }

/* ---------- Services ---------- */

.services { padding: 200px 0 132px; }
.services .section-title p { padding: 0 200px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  margin-top: 80px;
}
.service-col { display: flex; flex-direction: column; gap: 30px; }
.service-col:nth-child(2) { margin-top: -24px; }
.service-col:nth-child(3) { margin-top: 12px; }
.service { text-align: center; padding: 0 17px; }
.service img { width: 100px; margin: 0 auto; }
.service h4 { font-size: 19px; line-height: 1.2; margin: 20px 0 12px; }
.service p { color: var(--grey); }

/* ---------- Platforms (tabs: radio inputs, no JS) ---------- */

.platforms { background: var(--light-bg); padding: 100px 0 50px; }
.platforms .section-title h2 { font-size: 54px; margin: 32px 0 60px; }
.tabs { display: flex; align-items: center; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { flex: 0 0 50%; padding: 0 45px 0 30px; }
.tab-list label {
  display: block;
  padding: 25px 30px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.tab-list h4 { font-size: 19px; line-height: 1.2; margin-bottom: 8px; transition: color 0.3s; }
.tab-list p { color: var(--muted); line-height: 1; }
.tab-panes { flex: 0 0 50%; padding: 0 30px 0 45px; }
.tab-panes img { display: none; width: 510px; }

#tab-1:checked ~ .tab-list [for="tab-1"],
#tab-2:checked ~ .tab-list [for="tab-2"],
#tab-3:checked ~ .tab-list [for="tab-3"] { background: #fff; box-shadow: 0 0 3px rgba(10, 10, 10, 0.05); }
#tab-1:checked ~ .tab-list [for="tab-1"] h4,
#tab-2:checked ~ .tab-list [for="tab-2"] h4,
#tab-3:checked ~ .tab-list [for="tab-3"] h4 { color: var(--blue); }
#tab-1:checked ~ .tab-panes .pane-1,
#tab-2:checked ~ .tab-panes .pane-2,
#tab-3:checked ~ .tab-panes .pane-3 { display: block; animation: pane-in 0.4s; }
.tabs > input:focus-visible ~ .tab-list label { outline: 0; }
@keyframes pane-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Statistics ---------- */

.stats { padding: 68px 0 64px; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 30px; text-align: center; }
.stat strong { display: block; font: 700 44px/1 var(--heading); color: var(--ink); letter-spacing: 0.5px; margin-bottom: 12px; }
.stat span { font: 500 13.2px/16px var(--heading); text-transform: uppercase; }

/* ---------- Steps ---------- */

.steps {
  background: linear-gradient(120deg, #5f73f2 0%, #7650e0 55%, #8a46d8 100%);
  padding: 100px 0;
  color: #fff;
}
.steps .section-title h3 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; padding: 0 22px; }
.step { display: flex; align-items: flex-start; }
.step img { width: 70px; flex: none; }
.step div { padding-left: 22px; }
.step h4 { color: #fff; font-size: 19px; line-height: 1.2; margin-bottom: 8px; }

/* ---------- Reviews ---------- */

.reviews { background: #fff url("../images/dotted-map.png") no-repeat 50% 75% / 1110px auto; padding: 100px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: 405px 405px;
  justify-content: center;
  gap: 80px 70px;
  margin-top: 95px;
}
.review {
  position: relative;
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(20, 20, 20, 0.15);
}
.review:first-child { grid-column: 1 / -1; justify-self: center; width: 405px; }
.review:last-child { margin-top: 30px; }
.review img { position: absolute; top: -40px; left: -40px; width: 80px; height: 80px; border-radius: 50%; }
.review p { font: 400 17.6px/1.45 var(--body); color: #555; margin-bottom: 6px; }
.review .handle { color: #999; }
.stars { display: flex; gap: 1px; margin-top: 4px; }
.stars svg { width: 14px; height: 12px; fill: #ffc832; }

/* ---------- Brands (CSS marquee) ---------- */

.brands { padding: 80px 0 50px; text-align: center; }
.brands > .container > p { font: 400 20px/1 var(--body); color: #858585; margin-bottom: 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { width: 214px; height: 107px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- FAQ (details/summary, no JS) ---------- */

.faq { padding: 100px 0; }
.accordion { max-width: 880px; margin: 55px auto 0; }
.accordion details { border-bottom: 1px solid #ccc; }
.accordion summary {
  position: relative;
  padding: 25px 40px 25px 0;
  font: 600 20px/1 var(--heading);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 3px;
  margin-top: -1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0); }
.accordion details p { color: var(--grey); line-height: 1; padding-bottom: 16px; margin-bottom: 16px; }

/* ---------- Call to action ---------- */

.cta { background: var(--dark); padding: 60px 0; color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h4 { color: #fff; font-size: 32px; line-height: 1.2; letter-spacing: -0.75px; }
.cta .btn { font-size: 14.4px; padding: 17.6px 28px; margin-right: 10px; }

.spacer { height: 201px; }

/* ---------- Contact ---------- */

.contact { background: var(--light-bg) url("../images/dotted-map.png") no-repeat 50% 60% / 1110px auto; padding: 100px 0; }
.contact .section-title p { font-size: 16px; line-height: 1.5; margin-top: 10px; padding: 0 10px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  max-width: 730px;
  margin: 58px auto 0;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  height: 52px;
  margin-bottom: 25px;
  padding: 0 20px;
  font: 300 16px/1.5 var(--body);
  color: #444;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: 0;
  transition: border-color 0.3s;
}
.contact-form textarea { height: 220px; padding: 20px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); }
.contact-form ::placeholder { color: #666; }
.accept { display: block; margin: -4px 0 20px; }
.accept input { margin: 0 4px 0 0; vertical-align: -1px; }
.contact-form .submit { justify-self: end; grid-column: 2; }
.contact-form .btn { width: 200px; font-size: 15.44px; padding: 18.4px 32px; }
/* Like the original: Send stays disabled until the privacy box is ticked */
.contact-form:has(#accept:not(:checked)) .btn { opacity: 0.65; pointer-events: none; }

/* ---------- Footer ---------- */

.site-footer { background: linear-gradient(to right, #002777, #007cad); color: #000; padding-top: 100px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 50px; }
.footer-about { width: 350px; }
.footer-about img { width: 134px; margin-bottom: 40px; }
.footer-about p,
.footer-location p { color: #eae6e6; line-height: 1; margin-bottom: 16px; }
.footer-location { width: 255px; }
.footer-location h3 { color: #eae6e6; font-size: 28px; line-height: 1.2; margin-bottom: 40px; }
.footer-location a { line-height: 1; }
.footer-location a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #eee; padding: 50px 0; }
.footer-bottom p { line-height: 1; font-weight: 700; }

/* ---------- Cookie banner + settings ---------- */

.cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 25px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -1px 10px rgba(172, 171, 171, 0.3);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { max-width: 960px; }
.cookie-actions { display: flex; flex: none; gap: 5px; }
.cookie-btn {
  padding: 9px 12px;
  font: 400 13px/1 var(--body);
  color: #333;
  background: #dedfe0;
  border: 0;
  cursor: pointer;
}
.cookie-btn.accept-all { background: #61a229; color: #fff; margin-left: 5px; }

.cookie-modal {
  width: calc(100% - 30px);
  max-width: 645px;
  max-height: calc(100% - 60px);
  padding: 20px;
  border: 0;
  border-radius: 3.2px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.cookie-modal h4 { font: 600 16px/1.5 var(--body); color: #000; margin: 10px 0 6px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #000;
  cursor: pointer;
}
.overview { max-height: 63px; overflow: hidden; margin-bottom: 4px; }
.overview.expanded { max-height: none; }
.show-more { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: #333; cursor: pointer; margin-bottom: 14px; }
.cookie-cat { background: #f2f2f2; border-radius: 5px; margin-bottom: 10px; }
.cookie-cat summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}
.cookie-cat summary::-webkit-details-marker { display: none; }
.cookie-cat summary > span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border: solid #333;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  vertical-align: 1px;
  transition: transform 0.2s;
}
.cookie-cat[open] summary > span::before { transform: rotate(45deg); }
.cookie-cat .cat-body { padding: 0 15px 15px; font-size: 13px; }
.always { font-size: 12px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 38px; height: 20px; border-radius: 34px; background: #e3e1e8; transition: background-color 0.2s; }
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch input:checked + .track { background: #61a229; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .on, .switch input:checked ~ .off { display: none; }
.switch input:checked ~ .on { display: inline; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; background: #fff; }
.cookie-table th, .cookie-table td { padding: 6px 8px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.save-btn { padding: 10px 15px; font: 400 14px/1 var(--body); color: #fff; background: #61a229; border: 0; cursor: pointer; }

/* ---------- Inner (policy) pages ---------- */

.legal { padding: 174px 0 60px; }
.legal h2 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.legal h3, .legal h4 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
.legal p { line-height: 1; margin-bottom: 16px; }
.legal strong { font-weight: 400; }
.legal ul { padding-left: 40px; margin: 0 0 30px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: 14px; }
.legal th, .legal td { padding: 8px 10px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.legal th { background: #f5f5f5; font-weight: 500; }
.legal .manage-consent { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .services .section-title p { padding: 0 100px; }
  .hero-text { flex-basis: 420px; }
}

@media (max-width: 991px) {
  html { scroll-padding-top: 100px; }
  .site-header,
  .home .site-header,
  .page .site-header { position: fixed; background: #fff; padding: 17.5px 0; animation: none; box-shadow: 0 0 2px rgba(50, 50, 50, 0.4); }
  .home .site-header .logo-white,
  .home .site-header .logo-blue,
  .home .site-header .nav-link { animation: none; }
  .logo, .logo img { height: 100px; }
  .logo-white { opacity: 0; }
  .logo .logo-blue { opacity: 1; }
  .site-header .container { flex-wrap: wrap; }
  .menu-toggle { display: block; padding: 8px; cursor: pointer; }
  .menu-toggle span { display: block; width: 24px; height: 3px; margin: 5px 0; background: #333; border-radius: 2px; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 10px 0; }
  .menu-toggle-input:checked ~ .menu { display: flex; }
  .menu a.nav-link,
  .home .site-header .nav-link,
  .page .nav-link { color: var(--text); padding: 12px 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 15px; }
  .dropdown a { padding: 8px 0; }

  .hero { padding: 140px 0 20px; min-height: 0; text-align: center; }
  .hero .container { flex-direction: column; }
  .hero-text { flex: none; max-width: 620px; }
  .hero-text h1 { font-size: 27.3px; margin-bottom: 15px; }
  .hero-text p { font-size: 15.75px; padding: 0 10px; margin-bottom: 27px; }
  .hero-text .btn { font-size: 14px; padding: 11.55px 23.1px; margin-bottom: 31px; }
  .hero-image { justify-content: center; }
  .hero-image img { width: 285px; }

  .services { padding: 140px 0 60px; }
  .section-title h2, .section-title h3 { font-size: 24.5px; padding: 0 7px; }
  .section-title p { font-size: 15.75px; margin-top: 10px; }
  .services .section-title p { padding: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .service-col:nth-child(n) { margin-top: 0; }
  .service { padding: 0; }
  .service h4 { font-size: 17.5px; margin: 20px 0 10px; }
  .service p { font-size: 14px; line-height: 1.5; }
  .platforms { padding: 80px 0 30px; }
  .platforms .section-title h2 { font-size: 28px; margin: 30px 0 50px; }
  .tabs { flex-direction: column; }
  .tab-list, .tab-panes { flex: none; padding: 0 30px; width: 100%; }
  .tab-panes img { width: 100%; max-width: 510px; margin: 20px auto; }
  .stats .container { grid-template-columns: 1fr; gap: 50px; }
  .stats { padding: 60px 0; }
  .stat strong { font-size: 38.5px; }
  .faq, .contact, .reviews { padding: 80px 0; }
  .steps-grid { grid-template-columns: 1fr; padding: 0; }
  /* Mobile: swipeable one-card carousel (CSS scroll-snap) */
  .reviews-grid {
    display: flex;
    gap: 20px;
    margin: 50px -15px 0;
    padding: 50px 30px 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review,
  .review:first-child { flex: 0 0 100%; width: auto; scroll-snap-align: center; padding-top: 55px; }
  .review:last-child { margin-top: 0; }
  .review img { left: 50%; margin-left: -40px; }
  .cta .container { flex-direction: column; text-align: center; }
  .cta h4 { font-size: 24.5px; line-height: 1.4; padding: 0 17px; }
  .spacer { height: 80px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .submit { grid-column: 1; }
  .footer-top { flex-direction: column; }
  .footer-about, .footer-location { width: auto; }
  .cookie-bar { flex-direction: column; align-items: flex-start; padding: 25px; }
  .legal { padding: 170px 0 40px; }
  .legal .container { padding: 0 20px; }
  .legal h2 { font-size: 28px; }
  .legal p { font-size: 14px; margin-bottom: 14px; }
  .legal li { font-size: 14px; }
}

@media (max-width: 575px) {
  .accordion summary { font-size: 17.5px; line-height: 1.4; }
  .marquee-track img { width: 150px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
