/* ──────────────────────────────────────────
   MAINSAIL GROUP — style.css
   ────────────────────────────────────────── */

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

:root {
  --navy:      #1a3560;
  --navy-dark: #122444;
  --teal:      #4a7fa5;
  --orange:    #f47920;
  --orange-h:  #e06610;
  --white:     #ffffff;
  --gray-bg:   #c8beb0;
  --text-dark: #1c2b3a;
  --text-mid:  #4a5568;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', sans-serif;
  --font-script:'Dancing Script', cursive;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn--orange:hover { background: var(--orange-h); border-color: var(--orange-h); }

.btn--outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo-svg {
  width: 80px;
  height: 96px;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.nav.scrolled .nav__link { color: var(--navy); }
.nav__link:hover { opacity: 0.75; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}
.nav.scrolled .nav__hamburger span { background: var(--navy); }

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(26,53,96,0.97);
  padding: 20px 40px;
}
.nav__mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav__mobile-menu.open { display: flex; }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.7) brightness(0.88);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,53,96,0.15) 0%, rgba(26,53,96,0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero__headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 36px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

/* ─────────────────────────────────────────────
   CLIENT LOGO CAROUSEL
───────────────────────────────────────────── */
.logos {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid #e8eef4;
}
.logos__track-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.logos__arrow {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aab8c4;
  cursor: pointer;
  padding: 8px 12px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.logos__arrow:hover { color: var(--navy); }
.logos__viewport {
  flex: 1;
  overflow: hidden;
}
.logos__track {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
}
.logos__item {
  flex: 0 0 calc(100% / 4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #b0bec5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   TAGLINE / INTRO
───────────────────────────────────────────── */
.tagline {
  background: var(--white);
  padding: 80px 24px 0;
  text-align: center;
  position: relative;
}
.tagline__inner {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.tagline__headline {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 24px;
}
.tagline__script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 28px;
}
.tagline__body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}
.tagline__body strong { color: var(--navy); }
.tagline__wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.tagline__wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ─────────────────────────────────────────────
   OUR SOLUTIONS
───────────────────────────────────────────── */
.solutions {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.solutions__bg {
  position: absolute;
  inset: 0;
}
.solutions__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.solutions__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 68, 0.72);
}
.solutions__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
}
.solutions__headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 40px;
  font-weight: 700;
}
.solutions__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.solutions__item {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2em;
}
.solutions__divider {
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
}

/* ─────────────────────────────────────────────
   TESTIMONIAL
───────────────────────────────────────────── */
.testimonial {
  background: var(--white);
  padding: 64px 0 0;
  text-align: center;
}
.testimonial__badge {
  display: inline-block;
  background: #d0dce8;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}
.testimonial__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.testimonial__text-col {
  background: var(--gray-bg);
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial__quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-dark);
  font-style: normal;
  margin-bottom: 24px;
}
.testimonial__quote em { font-style: italic; }
.testimonial__attribution {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.testimonial__img-col {
  overflow: hidden;
}
.testimonial__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─────────────────────────────────────────────
   ABOUT US
───────────────────────────────────────────── */
.about {
  background: var(--white);
  text-align: center;
  padding: 0 24px 80px;
}
.about__wave-top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}
.about__wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}
.about__inner {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 60px;
}
.about__headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 24px;
}
.about__body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
}
.about__body strong { color: var(--navy); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.footer__heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__subtext {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}
.footer__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.footer__input::placeholder { color: rgba(255,255,255,0.5); }
.footer__input:focus { border-color: var(--white); }
.footer__submit {
  padding: 12px 24px;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.footer__submit:hover { opacity: 0.88; }
.footer__col--right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.footer__address {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.footer__phone {
  color: var(--white);
  text-decoration: none;
}
.footer__phone:hover { text-decoration: underline; }
.footer__cta { align-self: flex-start; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 20px 40px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .testimonial__columns {
    grid-template-columns: 1fr;
  }
  .testimonial__text-col {
    padding: 40px 32px;
  }
  .testimonial__img-col {
    height: 320px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 16px 24px; }

  .hero__headline { font-size: 2.2rem; }
  .logos__item { flex: 0 0 calc(100% / 2); }
  .solutions__item { letter-spacing: 0.1em; }
  .footer__inner { padding: 0 24px 48px; }
}
