/* --- Global Variables & Reset --- */
:root {
  /* Palette: Earthen / Eco-Modern */
  --color-bg: #faf9f6; /* Off-white / Eggshell */
  --color-text-main: #2c3531; /* Deep Forest Green-Black */
  --color-text-muted: #5d6d65; /* Muted Green-Grey */
  --color-primary: #556b2f; /* Olive Green */
  --color-primary-hover: #3e4f22;
  --color-accent: #d27d2d; /* Terracotta / Clay */
  --color-sand: #e8e4d5; /* Sand / Beige */
  --color-white: #ffffff;

  /* Fonts */
  --font-heading: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Sizes */
  --container-width: 1240px;
  --header-height: 80px;
  --border-radius-lg: 24px;
  --border-radius-pill: 100px;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-pill);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(44, 53, 49, 0.05);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__list {
  display: flex;
  gap: 24px;
}

.header__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}

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

.header__cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-text-main);
  color: var(--color-sand);
  padding: 80px 20px 20px;
  margin-top: auto; /* Push to bottom if content is short */
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  overflow: hidden;
}

/* Organic decorative blobs for footer bg */
.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  opacity: 0.1;
  filter: blur(60px);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 20px;
}

.footer__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #a0b0a8;
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--color-sand);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__socials a:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 24px;
  font-weight: 600;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.95rem;
  color: #a0b0a8;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Slight shift */
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #a0b0a8;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive & Burger Menu State --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
  }

  .header__link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
  }

  .header__burger {
    display: flex;
    z-index: 1001; /* Above nav */
  }

  .header__burger.is-active .header__burger-line:first-child {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .header__burger.is-active .header__burger-line:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header {
    top: 10px;
    padding: 0 10px;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh; /* Full screen */
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* Background Blobs */
.hero__bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 20s infinite alternate;
}

.hero__blob--1 {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background-color: var(--color-sand);
  animation-delay: 0s;
}

.hero__blob--2 {
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background-color: #d8e2dc; /* Light Olive tint */
  animation-delay: -5s;
}

.hero__blob--3 {
  top: 40%;
  left: 40%;
  width: 300px;
  height: 300px;
  background-color: var(--color-accent);
  opacity: 0.15;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Typography & Content */
.hero__badges {
  margin-bottom: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(44, 53, 49, 0.1);
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  backdrop-filter: blur(5px);
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4rem; /* Big Typography */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  opacity: 0; /* JS Fade In start state */
  transform: translateY(30px);
}

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

/* Underline decoration for title */
.hero__title-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-sand);
  z-index: -1;
  transform: skewX(-15deg);
  border-radius: 4px;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(30px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(210, 125, 45, 0.3);
}

.btn--primary:hover {
  background-color: #b5651d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(210, 125, 45, 0.4);
}

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

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
}

.hero__sub-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* Visual Side (Image & Blobs) */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-mask {
  width: 100%;
  height: 100%;
  /* Organic Fluid Shape using Border Radius */
  border-radius: 46% 54% 39% 61% / 55% 36% 64% 45%;
  overflow: hidden;
  position: relative;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
  animation: morphShape 10s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes morphShape {
  0% {
    border-radius: 46% 54% 39% 61% / 55% 36% 64% 45%;
  }
  100% {
    border-radius: 58% 42% 60% 40% / 40% 60% 40% 60%;
  }
}

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

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

/* Floating Cards */
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.1s linear; /* For JS parallax */
}

.hero__card i {
  color: var(--color-accent);
}

.hero__card--1 {
  top: 15%;
  left: -20px;
}

.hero__card--2 {
  bottom: 15%;
  right: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__badges,
  .hero__actions {
    justify-content: center;
  }

  .hero__desc {
    margin: 0 auto 32px;
  }

  .hero__visual {
    height: 400px;
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__visual {
    width: 100%;
    height: 350px;
  }

  .hero__card {
    display: none; /* Hide floating cards on mobile for cleaner look */
  }
}

/* --- CAPABILITIES SECTION --- */
.caps {
  padding: 120px 0;
  position: relative;
  background-color: var(--color-white); /* Clean background for contrast */
}

/* Header Styles */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
  font-style: italic; /* Slight style shift */
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.highlight-text {
  background: linear-gradient(
    120deg,
    rgba(85, 107, 47, 0.2) 0%,
    rgba(85, 107, 47, 0) 100%
  );
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--color-primary);
}

/* Flow Grid Layout */
.caps__flow {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.caps__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Reverse modifier for zigzag effect */
.caps__item--reverse .caps__visual {
  order: 2;
}
.caps__item--reverse .caps__content {
  order: 1;
  text-align: right;
  /* For reverse items, we align text right for symmetry, 
       but keep tags/icons logical */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Content Styling */
.caps__content {
  opacity: 1; /* Animated later */
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.caps__content.visible {
  opacity: 1;
  transform: translateY(0);
}

.caps__icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--color-sand);
  border-radius: 50%; /* Circle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.caps__item:hover .caps__icon-box {
  transform: rotate(15deg) scale(1.1);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.caps__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.caps__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 450px;
}

.caps__tags {
  display: flex;
  gap: 12px;
}

.caps__tags li {
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid rgba(93, 109, 101, 0.3);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Organic Visuals (Blobs) */
.caps__visual {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.caps__visual.visible {
  opacity: 1;
  transform: scale(1);
}

.caps__blob {
  width: 400px;
  height: 400px;
  overflow: hidden;
  position: relative;
  box-shadow: 20px 20px 0px var(--color-sand); /* Offset shadow block */
  transition: border-radius 0.5s ease-in-out, box-shadow 0.3s ease;
}

.caps__blob:hover {
  box-shadow: 10px 10px 0px var(--color-accent);
}

/* Distinct shapes for each blob */
.caps__blob--1 {
  border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
}
.caps__blob--1:hover {
  border-radius: 36% 64% 73% 27% / 58% 55% 45% 42%;
}

.caps__blob--2 {
  border-radius: 34% 66% 59% 41% / 43% 36% 64% 57%;
}
.caps__blob--2:hover {
  border-radius: 66% 34% 41% 59% / 36% 43% 57% 64%;
}

.caps__blob--3 {
  border-radius: 46% 54% 39% 61% / 55% 36% 64% 45%;
}
.caps__blob--3:hover {
  border-radius: 54% 46% 61% 39% / 36% 55% 45% 64%;
}

.caps__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Slight zoom to avoid gap on border-radius change */
}

/* Responsive */
@media (max-width: 992px) {
  .caps__item,
  .caps__item--reverse {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 30px;
  }

  .caps__item--reverse .caps__visual {
    order: 0; /* Visual first on mobile always */
  }

  .caps__item--reverse .caps__content {
    order: 1;
    align-items: flex-start;
    text-align: left;
  }

  .caps__blob {
    width: 100%;
    max-width: 400px;
    height: 350px;
    box-shadow: 10px 10px 0px var(--color-sand);
  }
}

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

.guides__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Gallery Container */
.guides__gallery {
  display: flex;
  width: 100%;
  height: 500px; /* Fixed height for the gallery flow */
  gap: 20px;
}

/* Individual Expandable Card */
.guide-card {
  position: relative;
  height: 100%;
  flex: 0.5; /* Collapsed state width */
  border-radius: 40px; /* Large rounded corners */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  /* Optional: Organic border shape modification */
  clip-path: inset(0 round 40px);
}

/* Expanded State */
.guide-card.active {
  flex: 5; /* Expanded state width */
  cursor: default;
}

/* Dark Overlay */
.guide-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(44, 53, 49, 0.3) 0%,
    rgba(44, 53, 49, 0.9) 100%
  );
  transition: opacity 0.3s ease;
}

.guide-card.active .guide-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(44, 53, 49, 0.1) 0%,
    rgba(44, 53, 49, 0.85) 100%
  );
}

/* Content Container */
.guide-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

/* Icon Animation */
.guide-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.guide-card__icon i {
  color: var(--color-white);
  width: 28px;
  height: 28px;
}

/* Hide description when collapsed */
.guide-card__info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0s, transform 0.3s ease 0s; /* Instant hide */
  /* Only show title when collapsed (optional, but cleaner hidden) */
  display: none;
}

/* Show content when active */
.guide-card.active .guide-card__info {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; /* Delayed show */
}

/* Keep title visible but rotated for collapsed cards (Desktop only) */
@media (min-width: 992px) {
  .guide-card:not(.active) .guide-card__content {
    align-items: center;
    padding-bottom: 40px;
  }

  .guide-card:not(.active) .guide-card__title {
    display: block;
    position: absolute;
    bottom: 120px;
    white-space: nowrap;
    transform: rotate(-90deg);
    font-size: 1.5rem;
    opacity: 0.8;
  }

  .guide-card:not(.active) .guide-card__icon {
    margin-bottom: 0;
  }
}

.guide-card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.guide-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.guide-card__step {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Responsive Mobile */
@media (max-width: 992px) {
  .guides__gallery {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  .guide-card {
    height: 80px; /* Collapsed height */
    flex: none; /* Disable flex growth logic on mobile axis */
    width: 100%;
    transition: height 0.5s ease;
  }

  .guide-card.active {
    height: 400px; /* Expanded height */
    flex: none;
  }

  .guide-card:not(.active) .guide-card__title {
    display: none; /* Hide rotated titles on mobile */
  }

  .guide-card:not(.active) .guide-card__content {
    flex-direction: row;
    align-items: center;
    padding: 0 30px;
    height: 100%;
  }

  .guide-card:not(.active) .guide-card__icon {
    margin: 0;
    width: 40px;
    height: 40px;
  }
}

/* --- TOOLS SECTION --- */
.tools {
  padding: 120px 0;
  background-color: #f2f0e9; /* Slightly darker sand for contrast */
  position: relative;
  overflow: hidden;
}

/* Background Decoration */
.tools::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(242, 240, 233, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.tools__header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Card Styles */
.tool-card {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px; /* Super rounded */
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.tool-card:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(85, 107, 47, 0.1); /* Olive shadow hint */
}

/* Featured Card (Span 2 cols on desktop) */
.tool-card--featured {
  background-color: var(--color-primary);
  color: var(--color-white);
  grid-row: span 2; /* Taller */
  border: none;
}

.tool-card--featured:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 20px 40px rgba(85, 107, 47, 0.3);
}

/* Badge */
.tool-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tool-card__badge i {
  width: 14px;
  height: 14px;
}

/* Icons */
.tool-card__icon {
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card__icon i {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.tool-card__icon--accent {
  background-color: var(--color-sand);
}

.tool-card__icon--accent i {
  color: var(--color-primary);
}

/* Text Content */
.tool-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tool-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.tool-card--featured .tool-card__title {
  font-size: 2rem;
}

.tool-card__text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.9;
  flex-grow: 1;
}

/* Link / Button */
.tool-card__link {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.tool-card__link i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-card__link i {
  transform: translate(4px, -4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tool-card--featured {
    grid-row: auto; /* Reset span */
  }

  .tools__grid {
    grid-template-columns: 1fr;
  }
}

/* Add this to style.css for animation consistency */
/* Анімація появи для карток інструментів */
.tool-card {
  opacity: 1; /* Приховано за замовчуванням */
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* Стан, коли картку видно */
.tool-card.visible {
  opacity: 1; /* Показуємо */
  transform: translateY(0);
}

/* --- BLOG SECTION --- */
.blog {
  padding: 100px 0 140px; /* Extra bottom padding for scrollbar space */
  background-color: var(--color-bg);
}

.blog__header {
  text-align: center;
  margin-bottom: 50px;
}

/* Horizontal Scroll Container */
.blog__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Space for scrollbar */
  padding-left: 20px; /* Safe area */
  padding-right: 20px;
  scroll-snap-type: x mandatory; /* Snap effect */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--color-accent) var(--color-sand);
}

/* Custom Scrollbar for Chrome/Safari */
.blog__scroller::-webkit-scrollbar {
  height: 8px;
}
.blog__scroller::-webkit-scrollbar-track {
  background: var(--color-sand);
  border-radius: 4px;
}
.blog__scroller::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 4px;
}

/* Card Styles */
.blog-card {
  min-width: 350px; /* Fixed width for carousel feel */
  background-color: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: center; /* Center card on stop */
  border: 1px solid rgba(44, 53, 49, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.blog-card__image-wrap {
  height: 220px;
  position: relative;
  overflow: hidden;
}

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

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__date {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-white);
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--color-text-main);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1; /* Pushes link to bottom */
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.blog-card__link:hover {
  gap: 12px;
  color: var(--color-accent);
}

.blog-card__link i {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 576px) {
  .blog-card {
    min-width: 280px; /* Narrower on mobile */
  }
}

/* --- FAST FIX: Вмикаємо видимість елементів --- */
.caps__content,
.caps__visual,
.tool-card,
.blog-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background-color: #e8e4d5; /* Sand darker */
  position: relative;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* Left Info */
.contact__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 400px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact__link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
}

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

/* Right Form Wrapper */
.contact__form-wrapper {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(44, 53, 49, 0.08);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #a0b0a8;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

/* Error States */
.error-msg {
  display: none;
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 6px;
  margin-left: 10px;
}

.form-group.error .form-input {
  border-color: #d32f2f;
}

.form-group.error .error-msg {
  display: block;
}

/* Custom Checkbox (Regular) */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  user-select: none;
}

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

.checkmark-simple {
  height: 22px;
  width: 22px;
  background-color: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

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

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

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

.terms-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Fake Captcha Styling */
.captcha-box {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 15px 20px;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.captcha-box .checkmark {
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  margin-right: 12px;
  position: relative;
}

.captcha-box input:checked ~ .checkmark {
  border-color: #c1c1c1;
}

.captcha-box .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #009688; /* Green check */
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-box input:checked ~ .checkmark:after {
  display: block;
}

.captcha-text {
  flex-grow: 1;
  font-weight: 500;
  color: #000;
}

.captcha-logo {
  width: 32px;
  opacity: 0.7;
}

.btn--full {
  width: 100%;
  margin-top: 10px;
}

/* Success Message Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.form-success.active {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

/* Responsive */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact__title {
    font-size: 2.5rem;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden initially */
  width: 90%;
  max-width: 600px;
  background-color: var(--color-text-main); /* Dark background */
  color: var(--color-sand);
  padding: 16px 24px;
  border-radius: 50px; /* Pill shape */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-banner__icon {
  color: var(--color-accent);
  display: flex;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-banner__text a {
  color: var(--color-white);
  text-decoration: underline;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.85rem;
  border-radius: 20px;
  background-color: var(--color-sand);
  color: var(--color-text-main);
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn--sm:hover {
  background-color: var(--color-white);
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    border-radius: 24px;
    text-align: center;
    bottom: 20px;
  }
  .cookie-banner__content {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- POLICY PAGES STYLING (privacy.html, terms.html etc.) --- */
/* Ці стилі працюватимуть на окремих HTML сторінках */
.pages {
  padding: 140px 0 80px; /* Header offset */
  min-height: 80vh;
}

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

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-sand);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.pages p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.pages a {
  color: var(--color-primary);
  text-decoration: underline;
}

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