/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --color-bg:        #f6f6ec;
  --color-accent:    #015b2c;
  --color-footer-bg: #f2f2f2;
  --color-text:      #1a1a1a;
  --font-heading:    "Libre Baskerville", Baskerville, Georgia, serif;
  --font-body:       "Roboto", sans-serif;
  --max-width:       1100px;
  --nav-height:      70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── UTILITY ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.85;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* transparent at top */
.site-header {
  background-color: transparent;
}

/* solid when scrolled */
.site-header.scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links--right {
  gap: 0.75rem;
}

.nav-links--right li:last-child {
  margin-left: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-links .btn--primary {
  color: #fff;
}

.nav-links .btn--primary:hover {
  color: #fff;
  opacity: 0.85;
}

.nav-links .nav-lang {
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-links .nav-lang--active {
  font-weight: 700;
  text-decoration: none;
}

.nav-lang-divider {
  color: var(--color-text);
  opacity: 0.4;
}

/* ─── NAV LOGO ───────────────────────────────────────── */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.nav-logo__mark {
  height: 32px;
  width: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

/* ─── NAV LOGO HIDDEN STATE ──────────────────────────── */
.nav-logo--hidden .nav-logo__mark {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* collapsed state — applied by JS on scroll */
.site-header.scrolled .nav-logo__mark {
  height: 32px;
}

.site-header.scrolled .nav-logo--hidden .nav-logo__mark {
  opacity: 1;
}

/* ─── HAMBURGER BUTTON ───────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* animated to X when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE MENU ────────────────────────────────────── */
.nav-mobile {
  display: none;
  background-color: var(--color-bg);
  border-top: 1px solid #e0e0d8;
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile__links a {
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}

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

.nav-mobile__bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0d8;
}

.nav-mobile__bottom .nav-lang {
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-mobile__bottom .nav-lang--active {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.nav-mobile__bottom .btn {
  font-size: 0.9rem;
}

/* ─── HERO LOGO ──────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.hero-logo__mark {
  height: 80px;
  width: auto;
}

.hero-logo__wordmark {
  height: 36px;
  width: auto;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 0;
  min-height: 100vh;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ─── HERO WAVES ─────────────────────────────────────── */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background-image: url('assets/images/waves.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* ─── CONTAINER ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── SHARED SECTION STYLES ──────────────────────────── */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 1rem;
}

/* ─── SERVICES ───────────────────────────────────────── */
.services {
  padding: 6rem 0;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-subtext {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.service-icon {
  height: 48px;
  width: auto;
}

.service-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ─── TEAM ───────────────────────────────────────────── */
.team {
  background-color: #ffffff;
  padding: 6rem 0;
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-subtext {
  font-size: 1rem;
  color: var(--color-text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1.25rem;
}

.team-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 260px;
}

.team-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.team-link-icon {
  height: 24px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.team-link-icon:hover {
  opacity: 1;
}

/* ─── HIRING ─────────────────────────────────────────── */
.hiring {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hiring-subtext {
  font-size: 1rem;
  color: var(--color-text);
}

/* ─── OUTLINE BUTTON ─────────────────────────────────── */
.btn--outline {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  background-color: transparent;
  transition: background-color 0.2s, color 0.2s;
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: #fff;
}

/* ─── CTA BANNER ─────────────────────────────────────── */
.cta-banner {
  background-color: var(--color-bg);
  padding: 6rem 0;
  text-align: center;
}

.cta-banner__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.cta-banner__subtext {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* ─── QUOTES ─────────────────────────────────────────── */
.quotes {
  background-color: #ffffff;
  padding: 6rem 0;
}

.quotes-carousel {
  position: relative;
  overflow: hidden;
}

.quotes-track {
  display: flex;
  transition: transform 0.5s ease;
}

.quote-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.quote-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
}

.quote-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-stars {
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: 2px;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quote-divider {
  width: 1px;
  height: 48px;
  background-color: #d0d0c8;
  flex-shrink: 0;
}

.quote-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.quote-role {
  font-size: 0.85rem;
  color: var(--color-text);
}

.quote-logo {
  height: 32px;
  width: auto;
}

/* controls */
.quotes-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
}

.quotes-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.quotes-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d0d0c8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.quotes-dot.is-active {
  background-color: var(--color-text);
}

.quotes-arrows {
  display: flex;
  gap: 0.5rem;
}

.quotes-arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid #d0d0c8;
  background-color: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.quotes-arrow:hover {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: #fff;
}

/* ─── WHY US ─────────────────────────────────────────── */
.why-us {
  background-color: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.why-us .section-heading {
  margin-bottom: 2.5rem;
}

.why-us__content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-us__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.why-us__content strong {
  font-family: var(--font-body);
  font-weight: 700;
}

/* ─── CONTACT ────────────────────────────────────────── */
.contact {
  background-color: var(--color-bg);
  padding: 6rem 0;
}

.contact-heading {
  text-align: left;
  margin-bottom: 2.5rem;
}

/* top two-column layout */
.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  height: 24px;
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-link {
  display: block;
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.75;
}

.contact-address {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-directions {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* map */
.contact-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* form */
.contact-form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.form-field label {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d0d0c8;
  border-radius: 4px;
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-submit {
  text-align: center;
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.6;
  text-align: right;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background-color: var(--color-footer-bg);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* left column */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo__mark {
  height: 40px;
  width: auto;
}

.footer-logo__wordmark {
  height: 32px;
  width: auto;
}

.footer-trademark {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 480px;
}

.footer-trademark a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.footer-registration {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* right column */
.footer-bank {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-bank__heading {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.footer-bank__entry {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-bank__entry p {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}

.footer-bank__name {
  font-weight: 700;
}

/* divider */
.footer-divider {
  border: none;
  border-top: 1px solid #d8d8d0;
  margin-bottom: 1.5rem;
}

/* bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text);
}

.footer-conditions {
  font-size: 0.8rem;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (min-width: 1920px) {
  .hero-waves {
    height: 65%;
  }
}

@media (max-width: 1024px) {
  .nav-logo__mark {
    height: 24px;
  }

  .nav-logo--hidden .nav-logo__mark {
    opacity: 0;
  }

  .site-header.scrolled .nav-logo--hidden .nav-logo__mark {
    opacity: 1;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links--right {
    gap: 0.4rem;
  }

  .nav-links--right li:last-child {
    margin-left: 0.5rem;
  }

  .nav-links a,
  .nav-lang,
  .nav-lang--active {
    font-size: 0.8rem;
  }

  .nav-links .nav-lang {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-waves {
    height: 45%;
  }
}

@media (max-width: 768px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .nav-links--left,
  .nav-links--right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-waves {
    height: 35%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .quote-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-heading {
    text-align: center;
  }

  .contact-details {
    align-items: center;
    text-align: center;
    }

  .contact-item {
    flex-direction: column;
    align-items: center;
    }

  .contact-map {
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bank {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-waves {
    height: 25%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}