:root {
  --primary: #32475e;
  --primary-lt: #e8eef3;
  --primary-md: #c4d2dc;
  --secondary: #85b7c4;
  --secondary-lt: #eaf3f6;
  --secondary-md: #c4dde4;
  --accent: #ef7a7a;
  --accent-lt: #fdeaea;
  --white: #ffffff;
  --offwhite: #f7f9fb;
  --text: #1e2c39;
  --muted: #6b7f8f;
  --border: #dce6ec;
  --radius: 14px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED ── */
section {
  padding: 96px 24px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  background: var(--secondary-lt);
  color: var(--secondary);
  border: 1px solid var(--secondary-md);
}
.pill--white {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(239, 122, 122, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239, 122, 122, 0.45);
}
.btn--service {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  padding: 13px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(239, 122, 122, 0.3);
}
.btn--service:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 122, 122, 0.42);
}

/* ══════════════════════════════
     S1 — WHY RETIRE IN PANAMA
  ══════════════════════════════ */
.s1 {
  background: var(--offwhite);
}
.s1 .section-header h2 {
  color: var(--primary);
}

.s1-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}

.s1-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(50, 71, 94, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.s1-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(50, 71, 94, 0.13);
}
.s1-card__head {
  background: var(--primary);
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
}
.s1-card__head::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.s1-card__tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 10px;
  position: relative;
}
.s1-card__head h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  position: relative;
}
.s1-card__body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.s1-card__intro {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.s1-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 10px;
}
.s1-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s1-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}
.s1-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}
.s1-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.s1-badge {
  background: var(--secondary-lt);
  border: 1px solid var(--secondary-md);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* CTA Banner */
.s1-cta {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.s1-cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(133, 183, 196, 0.1);
}
.s1-cta::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.s1-cta p {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--white);
  max-width: 520px;
  line-height: 1.4;
  position: relative;
}
.s1-cta .btn {
  position: relative;
  flex-shrink: 0;
}

/* ══════════════════════════════
     S2 — SERVICES
  ══════════════════════════════ */
.s2 {
  background: var(--white);
}
.s2 .section-header h2 {
  color: var(--primary);
}

.s2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.s2-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.s2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(50, 71, 94, 0.12);
}
.s2-card__head {
  background: var(--secondary);
  padding: 28px 28px 22px;
}
.s2-card__head h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.s2-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.s2-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s2-card__body {
  padding: 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.s2-card__intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.s2-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.s2-list li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.s2-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}
.s2-cta {
  margin-top: 8px;
}

/* ══════════════════════════════
     S3 — TEAM
  ══════════════════════════════ */
.s3 {
  background: var(--primary);
}
.s3 .section-header h2 {
  color: var(--white);
}
.s3 .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.s3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.s3-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 20px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition:
    background 0.25s,
    transform 0.25s;
}
.s3-card:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-5px);
}
.s3-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(133, 183, 196, 0.2);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.s3-avatar svg {
  width: 40px;
  height: 40px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s3-name {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.s3-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}
.s3-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-top: 4px;
}
.s3-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.s3-badge {
  background: rgba(133, 183, 196, 0.18);
  border: 1px solid rgba(133, 183, 196, 0.35);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
}

/* ══════════════════════════════
     S4 — GALLERY
  ══════════════════════════════ */
.s4 {
  background: var(--offwhite);
}
.s4 .section-header h2 {
  color: var(--primary);
}

.s4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.s4-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.s4-item.large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.s4-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.s4-item:hover img {
  transform: scale(1.04);
}
.s4-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--secondary-lt) 0%,
    var(--primary-lt) 100%
  );
}
.s4-ph-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(50, 71, 94, 0.1);
}
.s4-ph-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s4-ph span {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}
.s4-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30, 44, 57, 0.85));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 32px 16px 14px;
}

/* ══════════════════════════════
     S5 — TESTIMONIALS
  ══════════════════════════════ */
.s5 {
  background: var(--white);
}
.s5 .section-header h2 {
  color: var(--primary);
}

.s5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.s5-card {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.s5-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: "Playfair Display", serif;
  font-size: 64px;
  line-height: 1;
  color: var(--secondary-md);
  font-weight: 800;
}
.s5-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(50, 71, 94, 0.1);
}

.s5-stars {
  display: flex;
  gap: 3px;
}
.s5-star {
  width: 14px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.s5-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}
.s5-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.s5-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-lt);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s5-av svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s5-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.s5-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ══════════════════════════════
     S6 — FORM
  ══════════════════════════════ */
.s6 {
  background: var(--primary);
}
.s6 .section-header h2 {
  color: var(--white);
}
.s6 .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.s6-inner {
  max-width: 680px;
  margin: 0 auto;
}
.s6-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.s6-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.s6-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.s6-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.s6-field input,
.s6-field select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
}
.s6-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.s6-field select option {
  background: var(--primary);
  color: var(--white);
}
.s6-field input:focus,
.s6-field select:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}
.s6-submit {
  text-align: center;
  margin-top: 8px;
}
.s6-note {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 18px;
}
.s6-note strong {
  color: var(--secondary);
}

/* ══════════════════════════════
     S7 — FAQ
  ══════════════════════════════ */
.s7 {
  background: var(--offwhite);
}
.s7 .section-header h2 {
  color: var(--primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(50, 71, 94, 0.04);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 26px;
  text-align: left;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover {
  color: var(--secondary);
}
.faq-ch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary-lt);
  border: 1px solid var(--secondary-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.3s,
    background 0.2s;
}
.faq-ch svg {
  width: 12px;
  height: 12px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item.open .faq-ch {
  transform: rotate(180deg);
  background: var(--secondary);
}
.faq-item.open .faq-ch svg {
  stroke: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.3s ease;
  padding: 0 26px;
}
.faq-item.open .faq-a {
  max-height: 280px;
  padding: 0 26px 22px;
}
.faq-a p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ══════════════════════════════
     RESPONSIVE
  ══════════════════════════════ */
@media (max-width: 1024px) {
  .s1-grid {
    grid-template-columns: 1fr;
  }
  .s3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .s5-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .s2-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .s4-grid {
    grid-template-columns: 1fr 1fr;
  }
  .s4-item.large {
    grid-column: span 2;
  }
  .s6-row {
    grid-template-columns: 1fr;
  }
  .s1-cta {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  section {
    padding: 64px 16px;
  }
  .s3-grid {
    grid-template-columns: 1fr;
  }
  .s4-grid {
    grid-template-columns: 1fr;
  }
  .s4-item.large {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
  .s6-form {
    padding: 28px 20px;
  }
  .s1-card__body,
  .s1-card__head {
    padding-left: 22px;
    padding-right: 22px;
  }
}
