/* ==========================================
GOOGLE FONTS
========================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");

/* ==========================================
   CSS RESET
========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: var(--text);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 100px 0;
}

/* ===========================
01. Variables
=========================== */

:root {
  --primary: #0f766e;

  --primary-dark: #00201f;

  --text: #1a1a1a;

  --paragraph: #5b5d62;

  --light: #ebf0f5;

  --white: #ffffff;

  --border: #0f766e;
}

/* ===========================
03. Utility Classes
=========================== */

.btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn::after,
.cta-button::after {
  content: "";
  width: 0;
  height: 10px;
  margin-left: 0;
  opacity: 0;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../images/icons/arrow-right.svg") center / contain
    no-repeat;
  mask: url("../images/icons/arrow-right.svg") center / contain no-repeat;
  transform: translateX(-6px);
  transition:
    width 0.3s ease,
    margin-left 0.3s ease,
    opacity 0.2s ease,
    transform 0.3s ease;
}

.btn:hover::after,
.cta-button:hover::after {
  width: 12px;
  margin-left: 10px;
  opacity: 1;
  transform: translateX(0);
}

.btn-primary {
  padding: 22px 32px;
  border-radius: 32px;
  background-color: var(--primary);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.btn-secondary {
  padding: 22px 32px;
  border-radius: 32px;
  background-color: var(--light);
  color: var(--primary-dark);
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

/* ===========================
04. Header
=========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  background: var(--white);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(6, 47, 45, 0.08);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.logo {
  justify-self: start;
}

.logo img {
  width: 160px;
  height: auto;
}

.navbar {
  justify-self: center;
}

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

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #5b5d62;
  transition: 0.3s;
}

.header .btn {
  justify-self: end;
}

.header .btn-primary {
  padding: 12px 20px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* ===========================
05. Hero
=========================== */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
}

.hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 56px;
  line-height: 72px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}

.hero p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--paragraph);
  max-width: 700px;
}

.hero span {
  color: var(--primary);
  font-style: italic;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-image {
  margin-top: 100px;
}

/* ==========================================
06. TRUSTED PARTNERS
========================================== */

.partners {
  padding: 0px 0 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #5b5d62;
  margin-bottom: 55px;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 28px;

  width: max-content;

  animation: scrollPartners 28s linear infinite;
}

.partner-card {
  width: 260px;
  height: 120px;

  background: #f7f9fc;

  border-radius: 18px;

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  transition: 0.35s ease;
}

.partner-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.partner-card img {
  width: 65%;

  object-fit: contain;

  opacity: 0.75;

  filter: grayscale(100%);

  transition: 0.35s;
}

.partner-card:hover img {
  opacity: 1;

  filter: grayscale(0);
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

/* Infinite Scroll */

@keyframes scrollPartners {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 14px));
  }
}

/* ===========================
06. About
=========================== */

/* ==========================================
12. CTA
========================================== */

.cta {
  position: relative;

  overflow: hidden;

  background: #062f2d;

  padding: 120px 0;
}

.cta-pattern {
  position: absolute;

  top: 0;

  left: 0;

  width: 65%;

  height: 100%;

  background: url("../images/backgrounds/cta-pattern.svg") no-repeat left center;

  background-size: contain;

  /* opacity: 0.18; */

  pointer-events: none;
}

.cta-container {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 100px;
}

.cta-left {
  flex: 1;
}

.cta-right {
  flex: 1;
}

.cta h2 {
  font-family: "Libre Baskerville", serif;

  font-size: 40px;

  line-height: 60px;
  letter-spacing: -1px;

  font-weight: 600px;

  color: #ffffff;
}

.cta h2 span {
  color: #c9f5c7;

  font-style: italic;
}

.cta p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.9);

  margin-bottom: 42px;
}

.cta-button {
  display: inline-flex;

  align-items: center;

  gap: 0;

  padding: 18px 34px;

  border: 1.5px solid rgba(28, 139, 130, 0.7);

  border-radius: 999px;

  color: #d6f7d3;

  font-weight: 600;

  transition: 0.35s ease;
}

.cta-button:hover {
  background: var(--primary);

  border-color: var(--primary);

  color: #ffffff;
}

/* ==========================================
13. FOOTER
========================================== */

.footer {
  background: #031816;

  padding: 90px 0 40px;
}

/* =========================
Footer Top
========================= */

.footer-top {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 100px;
}

/* =========================
Brand
========================= */

.footer-brand {
  width: 40%;
}

.footer-logo img {
  width: 190px;

  display: block;

  margin-bottom: 28px;
}

.footer-description {
  color: #97a5a4;

  font-size: 16px;

  line-height: 1.8;

  max-width: 420px;

  margin-bottom: 35px;
}

/* =========================
Newsletter
========================= */

.newsletter {
  display: flex;

  align-items: center;

  gap: 14px;
}

.newsletter input {
  flex: 1;

  height: 56px;

  padding: 0 22px;

  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  background: transparent;

  color: white;

  font-size: 15px;

  outline: none;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter button {
  height: 56px;

  padding: 0 28px;

  border: none;

  border-radius: 999px;

  background: #c9f5c7;

  color: #031816;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.35s ease;
}

.newsletter button:hover {
  background: #ffffff;
}

/* =========================
Links
========================= */

.footer-links {
  display: flex;

  gap: 80px;
}

.footer-column {
  display: flex;

  flex-direction: column;
}

.footer-column h4 {
  color: white;

  font-size: 18px;

  font-weight: 600;

  margin-bottom: 25px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.65);

  text-decoration: none;

  margin-bottom: 18px;

  font-size: 15px;

  transition: 0.3s;
}

.footer-column a:hover {
  color: #c9f5c7;

  transform: translateX(4px);
}

/* =========================
Divider
========================= */

.footer-divider {
  width: 100%;

  height: 1px;

  background: rgba(255, 255, 255, 0.08);

  margin: 70px 0 35px;
}

/* =========================
Bottom
========================= */

.footer-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.footer-bottom p {
  color: #97a5a4;

  font-size: 14px;
}

.footer-bottom p a {
  color: var(--white);
}

/* =========================
Social Icons
========================= */

.footer-social {
  display: flex;

  gap: 18px;
}

.footer-social a {
  width: 42px;

  height: 42px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(255, 255, 255, 0.05);

  color: white;

  font-size: 16px;

  text-decoration: none;

  transition: 0.35s ease;
}

.footer-social a:hover {
  background: #1c8b82;

  transform: translateY(-4px);
}
