/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
[type="submit"] {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

table {
  border-collapse: collapse;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --color-primary: rgb(41, 86, 71);
  --color-primary-dark: rgb(30, 64, 52);
  --color-primary-soft: rgba(41, 86, 71, 0.08);
  --color-primary-mid: rgba(41, 86, 71, 0.55);
  --color-bg: #f3f5f4;
  --color-bg-alt: #e8eeeb;
  --color-white: #ffffff;
  --color-black: #111111;
  --color-text: #24322c;
  --color-muted: #5f6f67;
  --color-border: #d8e0db;
  --color-danger: #c62828;
  --header-height: 88px;
  --container: 1140px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(20, 40, 32, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --section-space: 72px;
  --transition: 0.25s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(41, 86, 71, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(41, 86, 71, 0.05), transparent 50%),
    var(--color-bg);
  padding-top: var(--header-height);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section + .section {
  padding-top: calc(var(--section-space) * 0.35);
}

/* ==========================================================================
   Utilities / existing classes
   ========================================================================== */

.bg-white {
  background-color: var(--color-white);
}

.border-radius-20 {
  border-radius: var(--radius-lg);
}

.text-white {
  color: var(--color-white);
}

.text p {
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.7;
}

.text p + p {
  margin-top: 1rem;
}

.text {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.text img {
  margin-bottom: 1rem; 
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow);
}

/* Image left + text right (no float) */
.text-media {
  display: grid;
  grid-template-columns: minmax(180px, 360px) 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.text-media + .text-media {
  margin-top: 1.75rem;
}

.text-media > img {
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  margin-bottom: 0;
  border-radius: var(--radius);
}

.text-media__body {
  min-width: 0;
}

.text-media__body p + p {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .text-media {
    grid-template-columns: 1fr;
  }

  .text-media > img {
    max-width: 280px;
    max-height: 320px;
  }
}

.flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.75rem;
}

.img-centered {
  margin-inline: auto;
}

.w-100 {
  width: 100%;
}

.img-contain {
  object-fit: contain;
}

/* ==========================================================================
   Header (fixed, white, logo only)
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(41, 86, 71, 0.04);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.header a {
  display: inline-flex;
  align-items: center;
  height: calc(100% - 20px); 
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header a:hover {
  border-color: var(--color-primary-mid);
  box-shadow: 0 4px 14px rgba(41, 86, 71, 0.1);
}

.header img {
  width: 185px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.flex .btn:last-child,
.btn.btn--outline {
  background: transparent;
  color: var(--color-primary);
}

.flex .btn:last-child:hover,
.btn.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Hero / content layouts
   ========================================================================== */

.section:first-of-type h1 {
  color: var(--color-primary);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  max-width: 920px;
  margin-bottom: 1.75rem;
}

.content-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.content-2 > .text {
  padding: 1.75rem;
  min-height: 100%;
}

.content-2 > .text.bg-white {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.content-2 > .text:not(.bg-white) {
  padding: 0;
  overflow: hidden;
  background: var(--color-primary);
}

.content-2 > .text:not(.bg-white) img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.content-2 .flex {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Badges + reviews row
   ========================================================================== */

.section:nth-of-type(2) .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
}

.section:nth-of-type(2) .text.bg-white {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  align-items: center;
}

.section:nth-of-type(2) .text.bg-white .flex {
  width: 100%;
  justify-content: space-around;
  gap: 1.5rem;
}

.section:nth-of-type(2) .text.bg-white img {
  height: 160px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.section:nth-of-type(2) > .container > .text:not(.bg-white) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-primary);
  border: 1px solid var(--color-primary-dark);
  box-shadow: var(--shadow);
  height: 100%;
}

.reviews-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reviews-item > img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.stars {
  width: 110px;
  height: 20px;
  background-image:
    url("../images/star.svg"),
    url("../images/star.svg"),
    url("../images/star.svg"),
    url("../images/star.svg"),
    url("../images/star.svg");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position:
    0 center,
    22px center,
    44px center,
    66px center,
    88px center;
}

.reviews-item .text p {
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.4;
}

/* ==========================================================================
   Partner logo section
   ========================================================================== */

.section:nth-of-type(3) .container {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}

.section:nth-of-type(3) img {
  max-width: 420px;
  max-height: 120px;
}

/* ==========================================================================
   Why / copy section
   ========================================================================== */

.section:nth-of-type(4) .text {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.section:nth-of-type(4) h2 {
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 1.5rem;
}

.section:nth-of-type(4) p {
  color: var(--color-muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background:
    linear-gradient(180deg, transparent 0%, rgba(41, 86, 71, 0.04) 100%),
    var(--color-bg);
}

.contact__eyebrow {
  display: block;
  text-align: center;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.contact__title {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.contact__subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: var(--color-primary-mid);
  transform: translateY(-2px);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__label {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.3;
}

.contact-card__meta {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-field--full {
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field label .req {
  color: var(--color-danger);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa8a0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(41, 86, 71, 0.12);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.form-check input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-check a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form .btn {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

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

.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 3.5rem;
}

.footer a:hover {
  opacity: 0.85;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.7fr 1.15fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer__brand img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 260px;
}

.footer__col h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer__services {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 0.55rem 1.25rem;
}

.footer__services a,
.footer__col > a {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.footer__col h4 + h4,
.footer__col a + h4 {
  margin-top: 1.75rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.footer__contact-item small {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.1rem;
}

.footer__subscribe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer__subscribe-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.footer__subscribe-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
}

.footer__subscribe-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.footer__subscribe-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.footer__subscribe-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.9rem;
}

.footer__subscribe-note span {
  color: #ff6b6b;
}

.footer__subscribe-box .form-field {
  margin-bottom: 0.75rem;
}

.footer__subscribe-box label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.footer__subscribe-box input {
  background: rgba(20, 40, 32, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.footer__subscribe-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer__subscribe-box input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.footer__subscribe-box .btn {
  width: 100%;
  background: var(--color-black);
  border-color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.footer__subscribe-box .btn:hover {
  background: #000;
  border-color: #000;
}

.footer__bottom {
  text-align: center;
  padding: 1.5rem 0 1.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer__bottom p + p {
  margin-top: 0.35rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section:first-of-type h1,
.content-2 > .text,
.section:nth-of-type(2) .container > *,
.contact__title,
.contact-form {
  animation: fade-up 0.7s ease both;
}

.content-2 > .text:nth-child(2) {
  animation-delay: 0.12s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  :root {
    --section-space: 56px;
    --header-height: 80px;
  }

  .content-2,
  .section:nth-of-type(2) .container,
  .contact__grid,
  .footer__top,
  .footer__subscribe {
    grid-template-columns: 1fr;
  }

  .footer__top {
    gap: 2rem;
  }

  .content-2 > .text:not(.bg-white) img {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-space: 44px;
    --header-height: 76px;
  }

  .header img {
    width: 150px;
    max-height: 54px;
  }

  .form-row,
  .section:nth-of-type(2) > .container > .text:not(.bg-white),
  .footer__services {
    grid-template-columns: 1fr;
  }

  .section:nth-of-type(2) .text.bg-white .flex {
    justify-content: center;
  }

  .section:nth-of-type(3) .container {
    padding: 1.25rem;
  }

  .btn {
    width: 100%;
  }

  .content-2 .flex {
    flex-direction: column;
    align-items: stretch;
  }
}
