/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background: #fff6e8;
  color: #333;
}

/* PAGE WRAPPER (sticky footer) */
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #3b2a25;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.logo-text {
  line-height: 1;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav.pills {
  display: flex;
  gap: 12px;
  background: #fff2e8;
  padding: 6px;
  border-radius: 28px;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .03);
}

nav.pills a {
  text-decoration: none;
  color: #7a5948;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  transition: all .15s ease;
}

nav.pills a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

nav.pills a.active {
  background: #e4572e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(228, 87, 46, .18);
  border: 3px solid rgba(255, 255, 255, .85);
}

.cta-btn {
  background: #e4572e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  padding: 100px 40px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(228, 87, 46, .92), rgba(228, 87, 46, .65), rgba(0, 0, 0, .15)),
    url('../assets/img/hero.jpg') center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
}

.hero h1 span {
  color: #ffe066;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 22px;
  opacity: .95;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* =====================
   BUTTONS
===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #3b2a25;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.open span:first-child {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.primary-btn,
.secondary-btn,
.subscribe-btn,
.add-btn,
.cta-btn {
  min-height: 44px;
  touch-action: manipulation;
}

.primary-btn.green {
  background: #2f8f44;
  color: #fff;
  padding: 12px 22px;
  border-radius: 28px;
}

.secondary-btn.white {
  background: #fff;
  color: #333;
  padding: 10px 18px;
  border-radius: 24px;
}

/* =====================
   VALUES (FINAL VERSION)
===================== */
.values {
  padding: 100px 40px;
  text-align: center;
  background: #fff6e8;
  background-image: radial-gradient(#f3c98b 1px, transparent 1px);
  background-size: 20px 20px;
}

.section-label {
  color: #f97316;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.values h2 {
  font-size: 40px;
  font-weight: 900;
  color: #3b2a25;
}

.section-desc {
  max-width: 520px;
  margin: 0 auto 70px;
  font-size: 20px;
  color: #6b4f3f;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: #fff;
  border-radius: 24px;
  padding: 64px 28px 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
  position: relative;
  transition: transform .2s;
}

.value-card:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid #e4572e;
}

.icon-circle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.value-card:nth-child(2) .icon-circle {
  background: #f97316;
}

.value-card:nth-child(3) .icon-circle {
  background: #facc15;
  color: #3b2a25;
}

/* ================================
   VALUES — CARD ARRANGEMENT FIX
   ================================ */

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1200px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}


/* Ensure cards have equal height */
.value-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Mobile & tablet: stack cleanly */
@media (max-width: 1024px) {
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .value-cards {
    grid-template-columns: 1fr;
  }
}


/* =====================
   FOOTER
===================== */
footer {
  margin-top: auto;
  background: #2e1a16;
  padding: 60px 40px;
  text-align: center;
  font-size: 14px;
  color: #e6ccb2;
}

footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* =====================
   MOBILE (SINGLE SOURCE)
===================== */
@media (max-width: 480px) {

  html {
    font-size: 15px;
  }

  .navbar {
    padding: 8px 12px;
  }

  nav.pills {
    gap: 8px;
    padding: 4px;
  }

  nav.pills a,
  .cta-btn,
  .primary-btn,
  .secondary-btn,
  .subscribe-btn {
    font-size: 14px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .hero {
    padding: 28px 12px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .value-cards {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =========================
   NAVBAR — MOBILE (HAMBURGER)
   ========================= */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    align-items: center;
    /* Center items vertically */
  }

  .hamburger {
    display: flex;
  }

  /* Hide pills by default on mobile */
  nav.pills {
    position: absolute;
    top: 100%;
    /* Below header */
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  /* Show state */
  nav.pills.show {
    max-height: 400px;
    padding: 20px 0;
  }

  nav.pills a {
    width: 90%;
    text-align: center;
    margin: 5px 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
  }

  nav.pills a:hover {
    background: #fff6e8;
  }

  nav.pills a.active {
    background: #e4572e;
    color: #fff;
    box-shadow: 0 4px 10px rgba(228, 87, 46, 0.2);
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .banderitas {
    display: none;
  }
}

/* =========================
   HERO — MOBILE FIX
   ========================= */
@media (max-width: 480px) {

  .hero {
    padding: 32px 14px 24px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
  }

  .hero-text {
    text-align: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: keep-all;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }

  .hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .rect-frame {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .rect-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
  }

  /* Prevent horizontal scroll */
  body,
  .page-wrapper {
    overflow-x: hidden;
  }
}

/* =========================
   HERO — WEB (DEFAULT)
========================= */

.hero {
  padding: 100px 40px 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.rect-frame {
  width: 420px;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.rect-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================
   HERO — TABLET
========================= */

@media (max-width: 900px) {
  .hero-inner {
    gap: 40px;
  }

  .hero h1 {
    font-size: 44px;
  }
}

/* =========================
   HERO — MOBILE
========================= */

@media (max-width: 480px) {

  .hero {
    padding: 32px 14px 40px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }

  .hero-text {
    width: 100%;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 auto 18px;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 15px;
  }

  .hero-image {
    width: 100%;
  }

  .rect-frame {
    max-width: 320px;
  }

  /* Prevent horizontal scroll */
  body,
  .page-wrapper {
    overflow-x: hidden;
  }
}

/* ================================
   STORY HERO – IMAGE/TEXT LAYOUT
   ================================ */

.story-hero-variant .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* Text side */
.hero-text-left {
  text-align: left;
}

.pill-badge {
  display: inline-block;
  background: #ffe066;
  color: #3b2a25;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.accent-text {
  color: #e4572e;
  /* same accent you already use */
}

/* Body text width like reference */
.story-hero-variant .hero-lead {
  max-width: 520px;
  margin-bottom: 18px;
}

/* Text link CTA */
.text-link {
  font-weight: 600;
  color: #2f8f44;
  text-decoration: underline;
}

/* Image card */
.hero-image-card {
  display: flex;
  justify-content: center;
}

.image-card {
  position: relative;
  background: #fff3d6;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  max-width: 420px;
}

.image-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Caption inside image */
.image-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #3b2a25;
}

/* ================================
   MOBILE
   ================================ */
@media (max-width: 768px) {

  .story-hero-variant .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-text-left {
    text-align: center;
  }

  .story-hero-variant .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================
   BANDERITAS — THIN DIAGONAL STRIP
   ================================ */

.banderitas {
  width: 100%;
  height: 16px;
  /* ✅ thin like reference */
  background: repeating-linear-gradient(45deg,
      #f9d758 0 12px,
      #f26a3e 12px 24px,
      #6ec6b5 24px 36px,
      #f6b26b 36px 48px);
}

/* Mobile: even thinner */
@media (max-width: 480px) {
  .banderitas {
    height: 12px;
  }
}

/* ================================
   SCRIPTURE QUOTE STYLE
   ================================ */

.scripture {
  padding: 100px 20px;
  text-align: center;
  background: #ffffff;
  /* ✅ pure white */
}


.scripture-inner {
  max-width: 760px;
  margin: 0 auto;
}

.quote-mark {
  display: block;
  font-size: 42px;
  color: #f9d758;
  margin-bottom: 20px;
  font-weight: 700;
}

.scripture-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 28px;
  line-height: 1.5;
  color: #3b2a25;
  font-style: italic;
  margin-bottom: 26px;
}

.scripture-divider {
  display: block;
  width: 48px;
  height: 2px;
  background: #e4572e;
  margin: 0 auto 14px;
}

.scripture-ref {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #e4572e;
}

/* Mobile refinement */
@media (max-width: 600px) {
  .scripture-text {
    font-size: 20px;
  }
}

/* ================================
   STORY IMAGE BORDERS
   ================================ */

.rect-frame {
  border: 2px solid #e6ccb2;
  /* warm neutral border */
  padding: 6px;
  /* space between border & image */
  border-radius: 26px;
  /* slightly larger than image */
  background: #fff;
  /* clean contrast */
  transition: transform .2s ease, box-shadow .2s ease;
}

.rect-frame img {
  border-radius: 20px;
  /* keeps image rounded */
}

.rect-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* ================================
   STORY & PROMISE BACKGROUNDS
   ================================ */

/* OUR STORY */
.story-bg {
  background-color: #fff6e8;
  background-image: radial-gradient(rgba(228, 87, 46, 0.25) 1px,
      transparent 1px);
  background-size: 22px 22px;
}

/* OUR PROMISE */
.promise-bg {
  background-color: #ffffff;
  background-image: radial-gradient(rgba(47, 143, 68, 0.25) 1px,
      transparent 1px);
  background-size: 22px 22px;
}

/* Small icon styling */
.small-icon {
  font-size: 28px;
  margin: 12px auto 8px;
  width: fit-content;
}

/* Extra breathing room */
.story-bg,
.promise-bg {
  padding-top: 110px;
  padding-bottom: 110px;
}

/* ================================
   DEVELOPER GROUP PHOTO – FINAL FIX
   ================================ */

.dev-group {
  display: flex;
  justify-content: center;
  margin: 48px auto 72px;
  padding: 0 16px;
  /* prevents edge overflow on mobile */
}

.dev-group-frame {
  width: 100%;
  max-width: 760px;
  /* ✅ limits size on desktop */
  aspect-ratio: 16 / 9;
  /* ✅ keeps photo balanced */
  padding: 10px;
  background: #ffffff;
  border: 2px solid #e6ccb2;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Image containment */
.dev-group-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ✅ prevents stretching */
  border-radius: 20px;
  display: block;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .dev-group-frame {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    /* better for mobile screens */
  }
}

/* ================================
   DEVELOPER CARD – PROFILE STYLE
   ================================ */

.dev-card {
  text-align: center;
  padding-top: 56px;
  /* space for avatar emphasis */
}

/* Bigger, hero-like avatar */
.dev-avatar {
  width: 140px;
  height: 140px;
  margin: -90px auto 18px;
  /* pulls avatar upward */
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid #e6ccb2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Avatar image */
.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Name */
.dev-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #3b2a25;
}

/* Role */
.dev-card p strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #e4572e;
  margin-bottom: 6px;
}

/* Description */
.dev-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #6b4f3f;
  max-width: 260px;
  margin: 0 auto;
}

/* Mobile refinement */
@media (max-width: 480px) {
  .dev-avatar {
    width: 110px;
    height: 110px;
    margin-top: -70px;
  }

  .dev-card h4 {
    font-size: 16px;
  }

  .dev-card p {
    font-size: 13px;
  }
}

/* ================================
   HERO — CENTER CONTENT (TEAM PAGE)
   ================================ */

.hero {
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  min-height: 70vh;
  /* gives breathing room like screenshot */
}

.hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  text-align: center;
  margin: 0 auto;
}

/* Headline emphasis */
.hero h1 {
  margin-left: auto;
  margin-right: auto;
}

/* Paragraph width control */
.hero-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

/* ================================
   HERO — REDUCE VERTICAL SPACING
   ================================ */

.hero {
  min-height: 52vh;
  /* ⬅️ reduced from 70vh */
  padding-top: 80px;
  /* ⬅️ tighter top */
  padding-bottom: 80px;
  /* ⬅️ tighter bottom */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .hero {
    min-height: 44vh;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}