:root {
  --blue: #1a85ba;
  --cream: #f7f5f0;
  --mist: #eaeeed;
  --ink: #304254;
  --olive: #3d4218;
  --forest: #3b5345;
  --navy: #304254;
}

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

html {
  scroll-padding-top: 84px;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10;
  border-bottom: 1px solid rgba(48, 66, 84, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 1.5rem;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo-link {
  width: 58px;
  height: 52px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-logo-link img {
  width: 130px;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.branding-text h1 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.tagline {
  font-size: 0.8rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.95rem;
}

.nav-links a.active {
  font-weight: 600;
  color: var(--blue);
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
}

.nav-toggle .hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animations for Hamburger to X transition when active */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-container {
    padding: 0.8rem 0;
  }

  .branding-text h1 {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .tagline {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    border-bottom: 1px solid rgba(48, 66, 84, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.nav-active {
    max-height: 300px;
  }

  .nav-links a {
    padding: 1rem 5%;
    border-top: 1px solid rgba(48, 66, 84, 0.05);
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(48, 66, 84, 0.02);
  }
}

@media (max-width: 600px) {
  .branding-text h1 {
    font-size: 0.95rem;
  }
  .nav-logo-link {
    width: 48px;
    height: 42px;
  }
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 900px) {
  .main-layout {
    grid-template-columns: 3fr 1fr;
  }
}

.sidebar {
  background: var(--mist);
  padding: 1.5rem;
  border-radius: 8px;
}

.sidebar-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(48, 66, 84, 0.1);
}

.sidebar-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-item h3 {
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.sidebar-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-item .button {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.sidebar-item .button:hover {
  background: var(--forest);
}

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: var(--cream);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  color: var(--forest);
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(1.6rem, 4vw, 3.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
  color: var(--forest);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(148, 203, 223, 0.7) 0%,
    rgba(148, 203, 223, 0.45) 32%,
    rgba(148, 203, 223, 0.18) 58%,
    rgba(148, 203, 223, 0) 78%
  );
  pointer-events: none;
}

.hero-logo {
  width: clamp(150px, 18vw, 220px);
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 340px;
  position: relative;
  z-index: 1;
}

.hero-text p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  color: var(--forest);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  color: var(--forest);
}

.mission {
  background: var(--blue);
  color: var(--cream);
  padding: 4.8rem 0 5rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.mission-circle {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  background: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.mission-circle img {
  width: 75%;
  height: auto;
}

.mission-copy h2 {
  color: var(--cream);
  font-size: clamp(2.4rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

.mission-copy p {
  color: var(--cream);
  font-size: 1.02rem;
  max-width: 520px;
}

.services {
  background: var(--mist);
  padding: 4.5rem 0 4rem;
}

.services h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  margin-bottom: 3.2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.service {
  text-align: center;
  max-width: 320px;
}

.service-image {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(14, 19, 24, 0.18);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin-bottom: 0.8rem;
}

.service p {
  color: #4f5b52;
}

/* Featured Services Section */
.featured-services {
  background: var(--cream);
  color: var(--ink);
  padding: 5rem 0;
}

.featured-services h2 {
  color: var(--forest);
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  margin-bottom: 3rem;
  text-align: center;
}

.featured-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.featured-service-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.featured-service-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-service-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.featured-service-info p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.featured-service-info .button-cta {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.featured-service-info .button-cta:hover {
  background: var(--forest);
}

@media (max-width: 480px) {
  .featured-services-grid {
    grid-template-columns: 1fr;
  }
}

.trust {
  background: #ffffff;
  padding: 4.2rem 0 4.6rem;
}

.trust h2 {
  color: var(--blue);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  margin-bottom: 2.7rem;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.4rem;
  align-items: center;
  justify-items: center;
}

.trust-logos img {
  max-height: 84px;
  object-fit: contain;
}

.contact {
  background-color: var(--blue);
  background-image: url("assets/contact-bg.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  padding: 4.6rem 0;
}

.contact-grid {
  display: flex;
  justify-content: flex-start;
}

.contact-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 2.6rem;
  max-width: 420px;
  width: 100%;
  color: var(--forest);
}

.contact-card h2 {
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  margin-bottom: 2rem;
}

.contact-pill {
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-pill span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--forest);
}

.contact-pill strong {
  font-weight: 500;
  font-size: 1rem;
}

.contact-social {
  text-align: center;
  margin-top: 1.5rem;
}

.contact-social span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  text-align: left;
  color: #4f5b52;
}

.service li::before {
  content: "\2022"; /* Unicode character for a bullet */
  color: var(--blue); /* Color of the bullet */
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

@media (max-width: 800px) {
  .hero {
    min-height: 50vh;
  }

  .hero-overlay {
    position: relative;
    padding: 1.5rem;
  }

  .hero-photo {
    min-height: 50vh;
  }

  .contact-grid {
    justify-content: center;
  }
}

/* Top Utility Bar */
.top-bar {
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.top-info a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-info a:hover {
  color: var(--blue);
}

@media (max-width: 600px) {
  .top-bar-container {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.hero-btn.primary {
  background: var(--blue);
  color: white;
}

.hero-btn.primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.hero-btn.secondary:hover {
  background: white;
  transform: translateY(-2px);
}

/* Sidebar Contact Card */
.sidebar-contact-info {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.sidebar-contact-info a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-contact-info a:hover {
  text-decoration: underline;
}

/* Footer Contact Info */
.footer-contact {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.85;
  margin-top: 0.2rem;
}

.footer-contact a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.footer-contact a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Ebook Page Specific Styles */
.ebook-intro {
  margin-bottom: 3rem;
}

.ebook-title {
  font-size: clamp(2.4rem, 3.8vw, 3rem);
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.ebook-subtitle {
  font-size: 1.2rem;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 2rem;
}

.ebook-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .ebook-details-grid {
    grid-template-columns: 240px 1fr;
  }
}

/* 3D Book Cover Mockup */
.ebook-cover-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ebook-cover-3d {
  width: 200px;
  height: 290px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--blue) 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), 
              -1px 0px 3px rgba(255, 255, 255, 0.4) inset;
  position: relative;
  transform: rotateY(-15deg);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: var(--cream);
  overflow: hidden;
}

/* Spine effect */
.ebook-cover-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1) inset;
}

.ebook-cover-brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.9;
  text-transform: uppercase;
}

.ebook-cover-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: auto;
  color: var(--cream);
  font-weight: 600;
}

.ebook-cover-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.ebook-cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
}

.ebook-cover-logo {
  height: 24px;
  width: auto;
  opacity: 0.95;
}

/* Price Section & Features */
.ebook-content-info h3 {
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.ebook-features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.ebook-features-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  font-size: 1.05rem;
}

.ebook-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
}

.ebook-pricing-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--mist);
  border: 1px solid rgba(48, 66, 84, 0.1);
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.ebook-pricing-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.8;
}

.ebook-pricing-badge .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  font-family: "Source Sans 3", sans-serif;
  margin-top: 0.2rem;
}

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.book-card {
  background: #fff;
  border: 1px solid rgba(48,66,84,0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.book-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.book-card h4 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--blue);
}
.book-card p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
  margin: 0;
}

/* Purchase steps card */
.purchase-instructions {
  background: var(--cream);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(48, 66, 84, 0.05);
}

.purchase-instructions h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nequi-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
}

.purchase-instructions h3 {
  font-size: 1.8rem;
  color: var(--forest);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--mist);
  padding-bottom: 0.5rem;
}

.nequi-badge {
  background: #e90052; /* Nequi brand color */
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
}

.steps-list {
  display: grid;
  gap: 1.5rem;
}

.step-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-number {
  background: var(--blue);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 1rem;
}

.step-content p {
  font-size: 1.05rem;
  margin: 0;
}

.step-content strong {
  color: var(--forest);
}

.purchase-note {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(26, 133, 186, 0.08);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
