/* --- Variables & Reset --- */
:root {
  --color-bg: #fafaf8;
  --color-text: #1a1c20;
  --color-accent-blue: #3d5a80;
  --color-accent-terra: #ee6c4d;
  --color-gray-light: #e0e0e0;
  --color-white: #ffffff;

  --font-main: "Inter", sans-serif;
  --font-display: "Space Grotesk", sans-serif;

  --container-width: 1240px;
  --spacing-unit: 1rem;

  --trans-default: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--trans-default);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-gray-light);
  padding: 1.2rem 0;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  z-index: 1001; /* Above mobile menu */
}

.header__logo-img {
  height: 32px;
  width: auto;
}

/* Nav Desktop */
.header__nav {
  display: none; /* Mobile first hidden */
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Burger Button */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.header__burger-line {
  width: 28px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--trans-default);
}

.header__burger-line:nth-child(2) {
  width: 20px;
}

/* Mobile Menu State */
.header__nav.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  padding: 100px 20px 40px;
  z-index: 1000;
  animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.header.menu-open .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header.menu-open .header__burger-line:nth-child(2) {
  transform: rotate(-45deg) translate(1px, -1px);
  width: 28px;
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.header__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

/* CTA Button */
.header__cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-accent-blue);
  color: var(--color-white);
  font-weight: 500;
  border-radius: 0; /* Swiss style - sharp or slightly rounded, choosing sharp for asymmetry vibe */
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 0.9rem;
}

.header__cta:hover {
  background-color: var(--color-text);
  transform: translateY(-2px);
}

.header__cta--desktop {
  display: none;
}

.header__cta--mobile {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Desktop Styles */
@media (min-width: 992px) {
  .header__burger {
    display: none;
  }

  .header__nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    animation: none;
  }

  .header__list {
    flex-direction: row;
    gap: 2.5rem;
  }

  .header__link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
  }

  .header__link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-terra);
    transition: width 0.3s ease;
  }

  .header__link:hover {
    color: var(--color-accent-terra);
  }

  .header__link:hover::after {
    width: 100%;
  }

  .header__cta--mobile {
    display: none;
  }

  .header__cta--desktop {
    display: inline-block;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem; /* Temporary visual separation */
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer__col--brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent-terra);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__link:hover {
  color: var(--color-white);
  padding-left: 5px; /* Micro-interaction */
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-terra);
  flex-shrink: 0;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 3rem auto 0;
  padding: 2rem 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__col--brand {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Asymmetric grid */
    gap: 2rem;
  }
}

/* --- UI Components (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background-color: var(--color-accent-blue);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(61, 90, 128, 0.2);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--secondary:hover {
  background-color: var(--color-text);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn--primary:hover .btn__icon {
  transform: translateX(5px);
}

/* --- HERO SECTION STYLES --- */
.hero {
  position: relative;
  padding-top: 140px; /* Space for fixed header */
  padding-bottom: 80px;
  overflow: hidden;
  min-height: 90vh; /* Takes most of the screen */
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  position: relative;
}

/* Typography & Content */
.hero__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__label {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(238, 108, 77, 0.1);
  color: var(--color-accent-terra);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Giant Text */
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__title--accent {
  color: var(--color-accent-terra);
  position: relative;
  display: inline-block;
}

/* Underline effect for accent */
.hero__title--accent::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 0.15em;
  background-color: rgba(238, 108, 77, 0.2);
  z-index: -1;
}

.hero__text {
  font-size: 1.1rem;
  color: #555;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #888;
}

.hero__note-dot {
  width: 8px;
  height: 8px;
  background-color: #2ecc71; /* Green for "active" */
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

/* Visual Asymmetry */
.hero__visual {
  position: relative;
  padding-top: 2rem;
  padding-left: 2rem; /* Creates offset for decor box */
}

.hero__image-box {
  position: relative;
  z-index: 2;
  border-radius: 0; /* Sharp corners per Swiss style */
  overflow: hidden;
  aspect-ratio: 4/5;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.hero:hover .hero__img {
  transform: scale(1.05);
}

.hero__decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
  background-color: var(--color-accent-blue);
  z-index: 1; /* Behind image */
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); /* Asymmetric shape */
}

.hero__stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  z-index: 3;
  max-width: 200px;
  border-left: 4px solid var(--color-accent-terra);
}

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero__stat-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Animation classes (hidden initially) */
.reveal-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop Adjustment */
@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr; /* Text takes more space */
    align-items: center;
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__decor {
    top: -20px;
    left: -40px;
    width: 80%;
  }
}

/* --- METHODOLOGY SECTION --- */
.methodology {
  padding: 100px 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-gray-light);
}

.methodology__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Left Side Sticky */
.methodology__header {
  position: relative;
}

.methodology__title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent-blue);
  display: block;
}

.methodology__desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 400px;
  margin-bottom: 2rem;
}

.methodology__decor-line {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent-terra);
}

/* Right Side List */
.methodology__list {
  display: flex;
  flex-direction: column;
}

.method-card {
  border-top: 1px solid var(--color-gray-light);
  padding: 2.5rem 0;
  cursor: default;
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.method-card:last-child {
  border-bottom: 1px solid var(--color-gray-light);
}

.method-card:hover {
  background-color: #fff; /* Light highlight on hover */
}

.method-card__head {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.method-card__num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent-terra);
  font-weight: 700;
}

.method-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
}

.method-card__body {
  padding-left: 3.5rem; /* Align with title start (approx) */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.method-card p {
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.5;
}

.method-card__icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border: 1px solid var(--color-gray-light);
  color: var(--color-accent-blue);
  border-radius: 50%; /* Contrast with square geometry */
  transition: all 0.4s ease;
  opacity: 0; /* Hidden by default for cleaner look */
  transform: translateX(20px);
}

/* Hover Interactions */
.method-card:hover .method-card__head {
  transform: translateX(10px);
}

.method-card:hover .method-card__body {
  opacity: 1;
}

.method-card:hover .method-card__icon-box {
  opacity: 1;
  transform: translateX(0);
  background-color: var(--color-accent-blue);
  color: var(--color-white);
  border-color: var(--color-accent-blue);
}

/* Scroll Animation Class */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop Layout */
@media (min-width: 992px) {
  .methodology__container {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .methodology__header {
    position: sticky;
    top: 120px; /* Below fixed header */
    height: fit-content;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.solutions__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.solutions__main-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.solutions__subtitle {
  color: #666;
  font-size: 1.1rem;
}

.solutions__grid {
  display: flex;
  flex-direction: column;
  gap: 6rem; /* Large gap between rows */
}

/* Solution Item */
.solution-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.solution-item__content {
  order: 2; /* Text below image on mobile */
}

.solution-item__visual {
  order: 1;
  position: relative;
  padding: 1rem; /* Space for decor */
}

/* Typography & Content */
.solution-item__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.solution-item__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.solution-item__desc {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.solution-item__features {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-item__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.solution-item__features li i {
  width: 18px;
  height: 18px;
  color: var(--color-accent-terra);
}

/* Visuals */
.solution-item__img-wrapper {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--color-gray-light);
}

.solution-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-item:hover .solution-item__img {
  transform: scale(1.03);
}

/* Big Number Decor - Asymmetry */
.solution-item__number {
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(61, 90, 128, 0.15); /* Outline effect */
  z-index: 1;
  pointer-events: none;
}

/* Desktop Zig-Zag Logic */
@media (min-width: 992px) {
  .solution-item {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .solution-item__content {
    order: unset; /* Reset order */
  }

  .solution-item__visual {
    order: unset;
  }

  .solution-item--reverse .solution-item__content {
    order: 2;
  }
  .solution-item--reverse .solution-item__visual {
    order: 1;
  }

  .solution-item--reverse .solution-item__number {
    right: auto;
    left: -30px;
    color: rgba(238, 108, 77, 0.1); /* Different color for even items */
    -webkit-text-stroke: 0;
  }
}

/* --- INSIGHTS / FAQ SECTION --- */
.insights {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.insights__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Left Info Block */
.insights__title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.insights__desc {
  color: #555;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  max-width: 400px;
}

.insights__cta-box {
  padding: 2rem;
  background-color: var(--color-white);
  border-left: 3px solid var(--color-accent-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.insights__cta-box p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-terra);
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

.btn-link i {
  width: 16px;
  height: 16px;
  color: var(--color-accent-terra);
}

/* Accordion Styling */
/* --- Accordion Styling (FIXED) --- */
/* --- INSIGHTS / FAQ SECTION (FIXED) --- */
.insights {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.insights__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Left Info */
.insights__title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.insights__desc {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 400px;
}

.insights__cta {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-gray-light);
}

.insights__cta p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/* FAQ Styles */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-gray-light);
}

.faq__item {
  border-bottom: 1px solid var(--color-gray-light);
}

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq__btn:hover .faq__question {
  color: var(--color-accent-blue);
}

.faq__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent-terra);
  margin-right: 1.5rem;
  font-size: 1.1rem;
}

.faq__question {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  flex-grow: 1;
  padding-right: 15px;
}

.faq__icon {
  width: 24px;
  height: 24px;
  color: #999;
  transition: transform 0.3s ease;
}

/* Accordion Animation Logic */
.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq__text {
  padding-bottom: 1.5rem;
  padding-left: 3rem; /* Align with text roughly */
  padding-right: 2rem;
  color: #555;
  line-height: 1.6;
}

/* Active State */
.faq__item.active .faq__icon {
  transform: rotate(180deg);
  color: var(--color-accent-terra);
}

.faq__item.active .faq__btn {
  padding-bottom: 1rem; /* Slight adjustment */
}

@media (min-width: 992px) {
  .insights__container {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .insights__info {
    position: sticky;
    top: 120px;
    height: fit-content;
  }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
  background-color: var(--color-bg);
  overflow: hidden;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

/* Visuals */
.about__visual {
  position: relative;
  padding: 2rem 0 2rem 2rem; /* Space for badge */
}

.about__img-box {
  position: relative;
  z-index: 1;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Stylish black & white look */
  transition: filter 0.5s ease, transform 0.5s ease;
}

.about__visual:hover .about__img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.about__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent-terra);
  color: var(--color-white);
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Content */
.about__title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.about__text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.about__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__stats {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-light);
}

.stat-item__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CTA PRE-FOOTER SECTION --- */
.cta-section {
  background-color: var(--color-accent-blue);
  color: var(--color-white);
  padding: 5rem 0;
}

.cta-section__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section__desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* White Button Variant */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-accent-blue);
}

.btn--white:hover {
  background-color: var(--color-accent-terra);
  color: var(--color-white);
  transform: translateY(-3px);
}

@media (min-width: 992px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
  }

  .about__visual {
    order: 2; /* Image on right for asymmetry vs previous sections */
  }

  .about__content {
    order: 1;
  }

  .cta-section__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Info Side */
.contact__title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.contact__desc {
  color: #555;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 400px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact__detail-item i {
  color: var(--color-accent-blue);
}

/* Form Styling */
.contact__form-wrapper {
  background-color: var(--color-white);
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-light);
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__input {
  width: 100%;
  padding: 1rem;
  background-color: #fafaf8;
  border: 1px solid #e0e0e0;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.1);
}

/* Validation Error Styles */
.form__error {
  color: #ff4d4d;
  font-size: 0.8rem;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.form__group.error .form__input {
  border-color: #ff4d4d;
}

.form__group.error .form__error {
  height: 1.2rem; /* Show error text */
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: 1px solid #ddd;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
  background-color: #e6e6e6;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text a {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.captcha-box {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 10px 12px;
  border-radius: 4px;
  width: fit-content;
  min-width: 200px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.captcha-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.captcha-visual {
  width: 24px;
  height: 24px;
  background-color: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.captcha-box:hover .captcha-visual {
  border-color: #b2b2b2;
}

.captcha-box-check {
  width: 14px;
  height: 14px;
  background-color: transparent;
  border-radius: 2px;
}

.captcha-input:checked ~ .captcha-visual {
  border-color: transparent;
}

.captcha-input:checked ~ .captcha-visual .captcha-box-check {
  width: 10px;
  height: 18px;
  border: solid #009f56;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-2px, -2px);
  background-color: transparent;
}

.captcha-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #000;
  flex-grow: 1;
}

.captcha-logo {
  height: 32px;
  opacity: 0.7;
  margin-left: 10px;
}

.form__submit {
  width: 100%;
  margin-top: 1rem;
  position: relative;
}

.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
  position: absolute;
  right: 20px;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form__submit.loading .btn-text {
  opacity: 0.7;
}

.form__submit.loading .loader {
  display: inline-block;
}

.form__success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 10;
}

.form__success.visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon i {
  width: 32px;
  height: 32px;
}

/* Responsive */
@media (min-width: 992px) {
  .contact__container {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Corner style like Swiss minimalist widgets */
  width: calc(100% - 40px);
  max-width: 400px;
  background-color: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border: 1px solid var(--color-gray-light);
  border-left: 4px solid var(--color-accent-terra);
  transform: translateY(150%); /* Hidden by default */
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-popup.visible {
  transform: translateY(0);
}

.cookie-popup__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-popup__text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.cookie-popup__text a {
  color: var(--color-accent-blue);
  text-decoration: underline;
}

.cookie-popup__btn {
  align-self: flex-end;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* --- POLICY PAGES STYLING (.pages) --- */
/* Ці стилі будуть працювати на privacy.html, terms.html і т.д. */
.pages {
  padding: 140px 0 80px; /* Top padding considering fixed header */
  background-color: var(--color-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Narrower width for reading comfort */
}

.pages h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.2;
  border-bottom: 2px solid var(--color-gray-light);
  padding-bottom: 1rem;
}

.pages h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.pages p {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.pages li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  color: #444;
  padding-left: 0.5rem;
}

.pages strong {
  color: var(--color-text);
  font-weight: 600;
}

.pages a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  transition: color 0.3s;
}

.pages a:hover {
  color: var(--color-accent-terra);
}
