/* ========================================
   EndvoTech — Endless Innovation Technologies
   Styles (updated to logo color palette)
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #2d2d2d;
  background: #f4f8fc;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn--primary {
  background: #0493f5;
  color: #ffffff;
  border-color: #0493f5;
}

.btn--primary:hover {
  background: #1aa3ff;
  border-color: #1aa3ff;
}

.btn--outline {
  background: transparent;
  color: #d4e4f0;
  border-color: #d4e4f0;
}

.btn--outline:hover {
  background: rgba(212, 228, 240, 0.1);
}

.btn--full {
  width: 100%;
}

/* --- Sections (shared) --- */
.section {
  padding: 5rem 0;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #022a64;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.3;
}

.section__title--left {
  text-align: left;
}

.section__title--light {
  color: #d4e4f0;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(2, 42, 100, 0.97);
  backdrop-filter: blur(8px);
  z-index: 100;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  color: #d4e4f0;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a:not(.btn) {
  color: #8ab0d0;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
  color: #d4e4f0;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #d4e4f0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #022a64;
  color: #d4e4f0;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(4, 147, 245, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(4, 147, 245, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__logo {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0493f5;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero__title-alt {
  display: block;
  color: #0493f5;
}

.hero__subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #8ab0d0;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

/* ========================================
   STORY
   ======================================== */
.story {
  background: #f4f8fc;
}

.story__block {
  max-width: 780px;
  margin: 0 auto;
}

.story__quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.7;
  color: #022a64;
  padding: 2rem 0 2rem 2rem;
  border-left: 4px solid #0493f5;
  margin-bottom: 2.5rem;
}

.story__quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: normal;
  color: #4a6a8a;
}

.story__body p {
  color: #3a4a5a;
  margin-bottom: 1.25rem;
}

.story__body p:last-child {
  font-weight: 500;
  color: #2d2d2d;
}

/* ========================================
   PROBLEM
   ======================================== */
.problem {
  background: #e8f0f8;
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.problem__stat {
  text-align: center;
  padding: 2.5rem;
  background: #022a64;
  border-radius: 16px;
  color: #d4e4f0;
}

.problem__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 600;
  color: #0493f5;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.problem__label {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.problem__source {
  font-size: 0.8rem;
  color: #6a8aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.problem__text p {
  color: #3a4a5a;
  margin-bottom: 1rem;
}

.problem__text .section__title {
  margin-bottom: 1.5rem;
}

/* ========================================
   TURNING POINT
   ======================================== */
.turning-point {
  background: #022a64;
  color: #d4e4f0;
}

.turning-point .section__title {
  color: #d4e4f0;
}

.turning-point__inner {
  max-width: 720px;
  margin: 0 auto;
}

.turning-point__intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.turning-point p {
  color: #8ab0d0;
  margin-bottom: 1.25rem;
}

.turning-point strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #0493f5;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  background: #f4f8fc;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid #d0dce8;
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #0493f5;
  box-shadow: 0 8px 30px rgba(2, 42, 100, 0.08);
  transform: translateY(-3px);
}

.service-card__icon {
  color: #0493f5;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #022a64;
  margin-bottom: 0.75rem;
  text-align: center;
}

.service-card__desc {
  font-size: 0.95rem;
  color: #4a5a6a;
  line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  background: #f4f8fc;
}

.how-it-works__intro {
  text-align: center;
  color: #4a5a6a;
  max-width: 560px;
  margin: -2rem auto 3rem;
  font-size: 1.1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.step {
  background: #ffffff;
  border: 1px solid #d0dce8;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: #0493f5;
  box-shadow: 0 8px 30px rgba(2, 42, 100, 0.08);
  transform: translateY(-3px);
}

.step__number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #0493f5;
  line-height: 1;
  margin-bottom: 1rem;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #022a64;
  margin-bottom: 0.75rem;
}

.step__desc {
  font-size: 0.95rem;
  color: #4a5a6a;
  line-height: 1.6;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: #e8f0f8;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #d0dce8;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: #0493f5;
  box-shadow: 0 8px 30px rgba(2, 42, 100, 0.08);
  transform: translateY(-3px);
}

.testimonial-card__stars {
  color: #f5b342;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3a4a5a;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #e0e8f0;
  padding-top: 1rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  color: #c0d0e0;
}

.testimonial-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #022a64;
}

.testimonial-card__title {
  display: block;
  font-size: 0.8rem;
  color: #6a8aaa;
  margin-top: 0.1rem;
}

.testimonials__footnote {
  text-align: center;
  margin-top: 2.5rem;
  color: #4a5a6a;
  font-size: 1rem;
}

.testimonials__footnote a {
  color: #0493f5;
  font-weight: 600;
}

.testimonials__footnote a:hover {
  text-decoration: underline;
}

/* ========================================
   MISSION
   ======================================== */
.mission {
  background: #e8f0f8;
}

.mission__inner {
  max-width: 780px;
  margin: 0 auto;
}

.mission__statement {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3a4a5a;
  margin-bottom: 3rem;
}

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

.mission__value-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #0493f5;
  margin-bottom: 0.5rem;
}

.mission__value h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #022a64;
  margin-bottom: 0.5rem;
}

.mission__value p {
  font-size: 0.9rem;
  color: #4a5a6a;
  line-height: 1.5;
}

.mission__close {
  border-top: 2px solid #c0d0e0;
  padding-top: 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a4a5a;
}

.mission__close-strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #022a64;
  margin-top: 0.5rem;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: #022a64;
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__intro {
  color: #8ab0d0;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact__input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d4e4f0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact__input::placeholder {
  color: #6a8aaa;
}

.contact__input:focus {
  outline: none;
  border-color: #0493f5;
}

.contact__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230493f5' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.contact__select option {
  background: #022a64;
  color: #d4e4f0;
}

.contact__textarea {
  resize: vertical;
  min-height: 110px;
}

.contact .btn--primary {
  margin-top: 0.5rem;
}

.contact__success {
  text-align: center;
  padding: 2rem 1rem;
}

.contact__success-icon {
  margin-bottom: 1rem;
  color: #0493f5;
}

.contact__success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #d4e4f0;
  margin-bottom: 0.75rem;
}

.contact__success-desc {
  color: #8ab0d0;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.contact__success-desc a {
  color: #0493f5;
  font-weight: 500;
}

.contact__success-desc a:hover {
  text-decoration: underline;
}

.contact__alt {
  text-align: center;
  margin-top: 2rem;
  color: #6a8aaa;
  font-size: 0.95rem;
}

.contact__alt a {
  color: #0493f5;
  font-weight: 500;
}

.contact__alt a:hover {
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #011e4a;
  color: #6a8aaa;
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.footer__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #d4e4f0;
}

.footer__tagline {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #8ab0d0;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #6a8aaa;
  transition: all 0.2s;
}

.footer__social a:hover {
  background: #0493f5;
  color: #ffffff;
}

.footer__bottom {
  text-align: center;
  font-size: 0.8rem;
}

/* ========================================
   ALICE OPPORTUNITY
   ======================================== */
.alice {
  background: #022a64;
  color: #d4e4f0;
}

.alice .section__title {
  color: #d4e4f0;
}

.alice__grid {
  max-width: 860px;
  margin: 0 auto;
}

.alice__stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.alice__stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.alice__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #0493f5;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.alice__stat-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8ab0d0;
}

.alice__body p {
  color: #8ab0d0;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.alice__body strong {
  color: #d4e4f0;
}

.alice__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #d4e4f0;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.alice__subtitle:first-of-type {
  margin-top: 0;
}

.alice__pullquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #0493f5;
  font-style: italic;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid #0493f5;
  margin: 2rem 0;
}

.alice__emphasis {
  font-size: 1.1rem;
  font-weight: 500;
  color: #d4e4f0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.alice__focus-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.alice__focus {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.alice__focus:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0493f5;
  transform: translateY(-3px);
}

.alice__focus-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.alice__focus h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4e4f0;
  margin-bottom: 0.5rem;
}

.alice__focus p {
  font-size: 0.9rem;
  color: #8ab0d0;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 900px) {
  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

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

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

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

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

  .mission__values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #022a64;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .story__quote {
    font-size: 1.15rem;
    padding-left: 1.25rem;
  }

  .problem__number {
    font-size: 3.5rem;
  }

  .alice__stat-block {
    grid-template-columns: 1fr;
  }

  .alice__focus-blocks {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
