@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --background: #f7f8fa;
  --foreground: #131923;
  --card: #ffffff;
  --muted: #e9ecef;
  --muted-foreground: #667080;
  --secondary: #f8f5ef;
  --secondary-foreground: #25221d;
  --gold: #c39122;
  --gold-dark: #8a5f0f;
  --gold-light: #d9bd78;
  --border: #dce0e5;
  --danger: #dc2626;
  --shadow: 0 20px 50px rgba(18, 25, 35, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { scroll-margin-top: 90px; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.bg-page { background: var(--background); }
.bg-secondary { background: var(--secondary); }
.section { padding: 96px 0; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
p { line-height: 1.72; }

.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.desktop-nav { display: block; background: rgba(248, 245, 239, 0.96); border-bottom: 1px solid rgba(195, 145, 34, 0.25); backdrop-filter: blur(10px); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { width: 64px; height: 64px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a, .mobile-menu a { color: rgba(37, 34, 29, 0.78); font-size: 13px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; transition: color .2s ease; }
.nav-links a:hover, .mobile-menu a:hover { color: var(--gold); }
.mobile-nav { display: none; }

.hero-section { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.hero-slides, .hero-slide, .hero-overlay, .hero-fade { position: absolute; inset: 0; }
.hero-slide { width: 100%; height: 100%; object-fit: cover; transform: translateX(100%); transition: transform 1.5s ease-in-out; }
.hero-slide.is-active { transform: translateX(0); z-index: 2; }
.hero-slide.is-exit { transform: translateX(-100%); z-index: 1; }
.hero-overlay { z-index: 4; background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.50), rgba(0,0,0,.72)); }
.hero-fade { top: auto; height: 96px; z-index: 5; background: linear-gradient(to top, var(--background), transparent); }
.hero-content { position: relative; z-index: 6; text-align: center; padding: 120px 16px 40px; max-width: 880px; }
.hero-eyebrow { display: inline-block; margin-bottom: 26px; border: 1px solid #fff; color: #fff; padding: 8px 18px; font-weight: 800; letter-spacing: .16em; font-size: 13px; }
.hero-content h1 { color: white; font-size: clamp(46px, 8vw, 96px); line-height: 1; margin-bottom: 24px; }
.hero-content h1 span { color: var(--gold); font-style: italic; }
.hero-content p { color: rgba(255,255,255,.82); font-size: clamp(17px, 2vw, 21px); max-width: 690px; margin: 0 auto 38px; font-weight: 300; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; padding: 14px 30px; border-radius: 7px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: 13px; transition: all .2s ease; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { border: 2px solid rgba(195,145,34,.7); color: var(--gold-light); }
.btn-outline:hover { background: rgba(195,145,34,.12); }

.section-heading { text-align: center; max-width: 850px; margin: 0 auto 64px; }
.section-heading > span, .admin-label { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section-heading h2 { font-size: clamp(34px, 5vw, 58px); margin: 12px 0 20px; color: var(--foreground); }
.section-heading p { color: var(--muted-foreground); font-size: 18px; margin: 16px auto 0; }
.heading-line, .bio-line { width: 80px; height: 2px; background: var(--gold); margin: 0 auto; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card, .service-card, .admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card { padding: 34px 28px; text-align: center; transition: border-color .2s ease, transform .2s ease; }
.card:hover, .service-card:hover { border-color: rgba(195,145,34,.45); transform: translateY(-3px); }
.icon-circle, .icon-square { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); background: rgba(195,145,34,.10); }
.icon-circle { width: 58px; height: 58px; border-radius: 999px; font-size: 27px; margin-bottom: 20px; }
.icon-circle.small { width: 48px; height: 48px; font-size: 21px; flex: 0 0 48px; margin: 0; }
.icon-square { width: 50px; height: 50px; border-radius: 11px; font-size: 24px; margin-bottom: 18px; }
.card h3, .timeline-item h3, .service-card h4 { font-size: 22px; margin-bottom: 12px; }
.card p, .timeline-item p, .service-card p { color: var(--muted-foreground); margin: 0; }

.methodology-section { position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
.methodology-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.86); backdrop-filter: blur(2px); }
.methodology-inner { position: relative; z-index: 1; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 23px; top: 34px; bottom: 34px; width: 2px; background: rgba(195,145,34,.24); }
.timeline-item { position: relative; display: flex; gap: 26px; margin-bottom: 34px; }
.timeline-icon { position: relative; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 999px; border: 1px solid rgba(195,145,34,.36); background: #fbf8f0; display: grid; place-items: center; color: var(--gold); z-index: 2; }
.timeline-icon b { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: white; font: 700 12px/1 Arial, sans-serif; }

.service-block { margin-bottom: 80px; }
.service-block-last { margin-bottom: 0; }
.service-title { text-align: center; color: var(--gold); font-size: 30px; margin-bottom: 36px; }
.service-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: stretch; }
.service-grid-candidates { grid-template-columns: 2fr 1fr; }
.image-card { min-height: 330px; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(195,145,34,.16); }
.image-card img, .contact-image img { width: 100%; height: 100%; object-fit: cover; }
.service-cards, .candidate-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { padding: 26px; transition: all .2s ease; background: rgba(255,255,255,.52); border-color: rgba(195,145,34,.14); }
.candidate-copy { display: flex; flex-direction: column; gap: 24px; }
.candidate-copy > p { color: rgba(37,34,29,.72); font-size: 18px; margin: 0; }

.clients-section { background: white; overflow: hidden; }
.logo-marquee { position: relative; width: 100%; overflow: hidden; }
.edge { position: absolute; top: 0; bottom: 0; width: 96px; z-index: 2; pointer-events: none; }
.edge-left { left: 0; background: linear-gradient(to right, #fff, transparent); }
.edge-right { right: 0; background: linear-gradient(to left, #fff, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { height: 112px; width: 160px; margin: 0 24px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo-item a { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.logo-item a:hover { transform: scale(1.06); }
.logo-item img { max-height: 100%; max-width: 100%; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.team-list { display: grid; gap: 70px; }
.team-member { display: grid; grid-template-columns: 2fr 3fr; gap: 52px; align-items: center; }
.team-member.reverse .team-photo-wrap { order: 2; }
.team-photo-wrap { position: relative; max-width: 390px; margin: 0 auto; text-align: center; }
.team-photo-wrap h3 { font-size: 34px; margin-bottom: 4px; }
.team-photo-wrap > p { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 13px; margin: 0 0 20px; }
.team-glow { position: absolute; inset: 78px -10px -10px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(195,145,34,.34), transparent); filter: blur(18px); }
.team-photo { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(195,145,34,.34); box-shadow: var(--shadow); }
.team-photo img { width: 100%; height: auto; }
.team-bio .bio-line { margin: 0 0 22px; width: 52px; background: rgba(195,145,34,.55); }
.team-bio p { color: rgba(19,25,35,.74); margin: 0 0 17px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; margin: 0 auto; gap: 54px; }
.contact-info { display: grid; gap: 30px; align-content: center; }
.contact-row { display: flex; align-items: flex-start; gap: 18px; }
.contact-row h4 { font-size: 22px; margin-bottom: 6px; }
.contact-row a, .contact-row p { display: block; color: rgba(37,34,29,.62); margin: 0 0 4px; transition: color .2s ease; }
.contact-row a:hover { color: var(--gold); }
.contact-image { min-height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(195,145,34,.24); box-shadow: var(--shadow); }

.site-footer { background: var(--muted); border-top: 1px solid rgba(195,145,34,.24); padding: 46px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner img { height: 150px; width: auto; }
.footer-links { display: flex; gap: 28px; }
.footer-links a, .footer-inner p { color: rgba(19,25,35,.62); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.floating-buttons { position: fixed; left: 18px; bottom: 24px; z-index: 60; display: grid; gap: 12px; }
.floating-buttons a { width: 50px; height: 50px; border-radius: 999px; color: white; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0,0,0,.22); transition: transform .2s ease; }
.floating-buttons a:hover { transform: scale(1.1); }
.floating-call { background: var(--gold); font-size: 24px; }
.floating-whatsapp { background: #25d366; }

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }

.admin-body { background: #f4f5f7; }
.admin-page { padding: 40px 0 70px; }
.admin-hero { display: flex; justify-content: space-between; gap: 30px; align-items: center; background: var(--secondary-foreground); color: white; padding: 32px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-back { display: inline-block; color: rgba(255,255,255,.70); margin-bottom: 18px; font-size: 14px; }
.admin-back:hover { color: var(--gold-light); }
.admin-hero h1 { font-size: clamp(34px, 5vw, 48px); margin: 10px 0; }
.admin-hero p { color: rgba(255,255,255,.68); max-width: 760px; margin: 0 0 8px; }
.admin-path code, .admin-card code { background: rgba(195,145,34,.14); color: inherit; padding: 2px 6px; border-radius: 5px; }
.admin-count { flex: 0 0 170px; border: 1px solid rgba(195,145,34,.35); border-radius: 16px; padding: 20px; text-align: center; background: rgba(255,255,255,.05); }
.admin-count strong { display: block; color: var(--gold-light); font-size: 44px; }
.admin-count span { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.62); }
.notice { background: white; border: 1px solid rgba(195,145,34,.25); color: var(--muted-foreground); border-radius: 14px; padding: 14px 16px; margin-bottom: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.notice-error { border-color: rgba(220,38,38,.35); color: var(--danger); background: #fff7f7; }
.admin-card { padding: 28px; margin-bottom: 28px; box-shadow: 0 10px 28px rgba(20,25,35,.05); }
.admin-card-heading, .admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-card-heading { justify-content: flex-start; }
.admin-card-icon { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: rgba(195,145,34,.12); color: var(--gold); font-size: 26px; font-weight: 700; flex: 0 0 46px; }
.admin-card h2 { font-size: 30px; }
.admin-card p { color: var(--muted-foreground); margin: 6px 0 0; }
.admin-add-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.admin-add-form label, .partner-edit-form label { display: grid; gap: 7px; }
.admin-add-form span, .partner-edit-form span { font-weight: 700; font-size: 13px; color: var(--foreground); }
input[type="text"], input[type="file"] { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--foreground); padding: 11px 12px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input[type="file"] { border-style: dashed; background: rgba(195,145,34,.05); }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195,145,34,.15); }
.admin-button { border: 0; border-radius: 10px; padding: 11px 17px; font-weight: 800; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.admin-button.primary { background: var(--gold); color: white; }
.admin-button.primary:hover { background: var(--gold-dark); }
.admin-button.secondary { background: white; color: var(--foreground); border: 1px solid var(--border); }
.admin-button.secondary:hover { border-color: var(--gold); color: var(--gold); }
.admin-button.danger { background: white; border: 1px solid rgba(220,38,38,.35); color: var(--danger); }
.admin-button.danger:hover { background: var(--danger); color: white; }
.partner-admin-list { display: grid; gap: 18px; }
.partner-admin-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.partner-preview { height: 116px; border-radius: 12px; background: #f1f3f5; display: grid; place-items: center; padding: 12px; }
.partner-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wide-field { grid-column: 1 / -1; }
.partner-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.test-link { color: var(--gold); font-weight: 800; font-size: 14px; }
.test-link:hover { text-decoration: underline; }
.remove-form { align-self: stretch; display: flex; align-items: center; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav-top { position: relative; height: 82px; }
  .mobile-logo { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 78px; height: 78px; border-radius: 999px; background: rgba(248,245,239,.96); border: 1px solid rgba(195,145,34,.42); box-shadow: 0 10px 28px rgba(0,0,0,.16); display: grid; place-items: center; }
  .mobile-logo img { width: 62px; height: 62px; object-fit: contain; }
  .menu-toggle { position: absolute; top: 15px; right: 18px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(195,145,34,.34); background: rgba(248,245,239,.96); color: var(--secondary-foreground); font-size: 24px; line-height: 1; }
  .mobile-menu { background: var(--secondary); border-top: 1px solid rgba(195,145,34,.24); padding: 0 18px 12px; box-shadow: 0 12px 28px rgba(0,0,0,.08); }
  .mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(220,224,229,.75); }
  .mobile-menu a:last-child { border-bottom: 0; }
  .cards-3, .service-grid, .service-grid-candidates, .team-member, .contact-grid { grid-template-columns: 1fr; }
  .team-member.reverse .team-photo-wrap { order: 0; }
  .admin-add-form { grid-template-columns: 1fr 1fr; }
  .partner-admin-item { grid-template-columns: 140px 1fr; }
  .remove-form { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .section { padding: 74px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-heading { margin-bottom: 44px; }
  .service-cards, .candidate-cards, .admin-add-form, .partner-edit-form { grid-template-columns: 1fr; }
  .partner-admin-item { grid-template-columns: 1fr; }
  .admin-hero { flex-direction: column; align-items: stretch; padding: 24px; }
  .admin-count { flex: 0 0 auto; }
  .admin-card-heading, .admin-list-heading { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .edge { width: 44px; }
  .logo-item { width: 138px; margin: 0 16px; }
}
