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

:root {
  --bg: #0b1120;
  --fg: #e8edf5;
  --card: #111b2e;
  --primary: #d4952e;
  --primary-fg: #0b1120;
  --secondary: #172a4a;
  --muted: #7e8ca3;
  --border: #1e2d4a;
  --gold: #d4952e;
  --gold-light: #d4ad6a;
  --gold-dark: #b37209;
  --navy-dark: #0a1121;
  --navy: #0f1a33;
  --navy-light: #172640;
  --radius: 0.75rem;
  --whatsapp: #25D366;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: #0b1120;
  color: #e8edf5;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ===== Utilities ===== */
.text-gradient-gold {
  background: linear-gradient(135deg, #d4ad6a, #d4952e, #b37209);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-navy {
  background: linear-gradient(180deg, #0a1121, #0f1a33, #172640);
}

.glow-gold {
  box-shadow: 0 0 40px rgba(212, 149, 46, 0.15), 0 0 80px rgba(212, 149, 46, 0.05);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
  line-height: 1.4;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

@media (min-width: 768px) {
  .btn-lg {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
  }
}

.btn-primary {
  background: #d4952e !important;
  color: #0b1120 !important;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebe57; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 3.5rem;
  border-bottom: 1px solid rgba(30, 45, 74, 0.5);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .navbar { height: 4rem; }
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
}

.navbar-logo {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .logo { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .logo { font-size: 1.75rem; }
}

.logo-tm {
  font-size: 0.5em;
  font-style: normal;
  font-weight: 400;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.7;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #0a1121, #0f1a33, #172640);
  opacity: 0.85;
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 5rem 0;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .hero-text { gap: 2rem; padding: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(212, 149, 46, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #d4952e;
  width: -webkit-fit-content;
  width: fit-content;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-text h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 4.25rem; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.2rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; }
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions .btn { width: auto; }
}

/* Certificate image - ALWAYS visible */
.hero-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
}

.hero-image-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 1rem;
  background: #d4952e;
  filter: blur(48px);
  opacity: 0.2;
}

.hero-certificate {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid rgba(30, 45, 74, 0.3);
}

@media (min-width: 640px) {
  .hero-certificate { max-width: 400px; }
}

@media (min-width: 1024px) {
  .hero-certificate { max-width: 480px; }
}

/* ===== Sections Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 4rem; }
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
  .section-header h2 { font-size: 3rem; }
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-header p { font-size: 1.125rem; }
}

/* ===== Features ===== */
.features {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .features { padding: 6rem 0; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-card {
  background: linear-gradient(135deg, #162040, #0e1628);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(212, 149, 46, 0.2);
  box-shadow: 0 8px 32px rgba(8, 12, 24, 0.5), 0 2px 8px rgba(8, 12, 24, 0.3);
  transition: border-color 0.3s;
}

.feature-card:hover { border-color: rgba(212, 149, 46, 0.4); }

.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon img { filter: brightness(0) saturate(100%) invert(71%) sepia(50%) saturate(600%) hue-rotate(5deg) brightness(100%); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .how-it-works { padding: 6rem 0; }
}

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

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.step {
  text-align: center;
  position: relative;
}

.step-connector {
  display: none;
}

@media (min-width: 1024px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 2rem;
    left: 60%;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 149, 46, 0.3), transparent);
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(212, 149, 46, 0.2);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4952e;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.step:hover .step-number { border-color: #d4952e; }

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .cta { padding: 6rem 0; }
}

.cta-card {
  border-radius: 1rem;
  border: 1px solid rgba(212, 149, 46, 0.2);
  background: linear-gradient(135deg, #162040, #0e1628);
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4rem;
  }
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .cta-card h2 { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
  .cta-card h2 { font-size: 3rem; }
}

.cta-card p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .cta-card p { font-size: 1.125rem; }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .footer { padding: 3rem 0; }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-inner p {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: #d4952e; }

/* ===== Contact Grid ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.3s, transform 0.3s;
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-icon-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.contact-icon-instagram {
  background: rgba(228, 64, 95, 0.15);
  color: #E4405F;
}

.contact-icon-location {
  background: rgba(212, 149, 46, 0.15);
  color: var(--gold);
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out both; }
.animate-fade-in { animation: fadeIn 1s ease-out 0.3s both; }

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 1s ease-out 1s both;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
