/* =============================================
   MANDONDO CONSULTING — Main Stylesheet
   ============================================= */

/* ---- ROOT VARIABLES ---- */
:root {
  --maroon:    #7B1C2A;
  --maroon-dk: #4E1018;
  --maroon-lt: #9E2B3A;
  --cream:     #FAF7F2;
  --warm-white:#FFFFFF;
  --gold:      #C8A96A;
  --text-dark: #1A0A0D;
  --text-mid:  #5A3A3F;
  --text-light:#9E8080;
  --border:    rgba(123,28,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 60px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}
.nav-logo span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700;
  color: var(--maroon); letter-spacing: 0.04em;
}
.nav-logo span:last-child {
  font-size: 10px; font-weight: 300; letter-spacing: 0.22em;
  color: var(--text-light); text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  text-decoration: none; color: var(--text-mid);
  text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover { color: var(--maroon); }
.nav-cta {
  background: var(--maroon); color: #fff;
  padding: 10px 22px; border-radius: 2px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--maroon-dk); }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5vw 80px 8vw;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700; line-height: 1.08;
  color: var(--maroon-dk); margin-bottom: 28px;
}
.hero-h1 em { font-style: italic; color: var(--maroon); }
.hero-sub {
  font-size: 16px; font-weight: 300;
  color: var(--text-mid); max-width: 420px;
  line-height: 1.75; margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--maroon); color: #fff;
  padding: 15px 32px; border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--maroon-dk); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--maroon); color: var(--maroon);
  padding: 15px 32px; border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s, color .2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--maroon); color: #fff; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--maroon);
  line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); margin-top: 4px;
}
.hero-right {
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 40px,
    rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px
  );
}
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 48px 44px;
  width: 380px; max-width: 90%;
  position: relative; z-index: 1;
}
.hero-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600;
  color: #fff; margin-bottom: 8px;
}
.hero-card-sub {
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.hero-card-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hero-card-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.hero-card-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.hero-card-divider {
  height: 1px; background: rgba(255,255,255,0.12);
  margin: 32px 0;
}
.hero-card-contact {
  font-size: 13px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.hero-card-contact strong {
  color: var(--gold); display: block; font-weight: 400;
}

/* ---- SECTION COMMON ---- */
section { padding: 100px 8vw; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; color: var(--maroon-dk);
  line-height: 1.1; margin-bottom: 20px;
}
.section-sub {
  font-size: 16px; color: var(--text-mid);
  max-width: 580px; font-weight: 300; line-height: 1.8;
}

/* ---- SERVICES ---- */
#services { background: var(--warm-white); }
.services-header { margin-bottom: 60px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}
.service-card {
  background: var(--warm-white);
  padding: 36px 32px;
  transition: background .2s;
  cursor: default;
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 32px;
  width: 0; height: 2px;
  background: var(--maroon);
  transition: width .3s ease;
}
.service-card:hover { background: #FBF5F6; }
.service-card:hover::after { width: calc(100% - 64px); }
.service-icon {
  width: 44px; height: 44px;
  background: rgba(123,28,42,0.07);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--maroon); }
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--maroon-dk); margin-bottom: 10px;
}
.service-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

/* ---- TESTIMONIALS ---- */
#testimonials {
  background: var(--cream);
  padding: 100px 8vw;
}
.testimonials-header { margin-bottom: 60px; }
.testimonials-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.testimonials-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 32px;
}
.testimonial-card {
  min-width: calc(50% - 16px); /* Show 2 cards, accounting for gap */
  max-width: calc(50% - 16px);
  background: var(--warm-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(123, 28, 42, 0.15);
  border-color: var(--maroon);
}
.testimonial-content {
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  font-weight: 400;
}
.testimonial-text::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -25px;
  left: -12px;
  line-height: 1;
  z-index: 0;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.author-name {
  font-weight: 700;
  color: var(--maroon);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.author-title {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}
.testimonial-rating {
  display: flex;
  gap: 4px;
}
.testimonial-rating svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* About Section */
  .about-visual {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
  }
  .about-badge {
    position: static !important;
    margin-top: 10px;
    align-self: flex-end;
    order: 3;
    transform: scale(0.8);
  }
  .about-quote {
    margin-bottom: 20px;
    order: 1;
  }
  .about-quote-attr {
    order: 2;
    margin-top: 10px;
  }
  
  /* Navigation */
  nav {
    padding: 0 20px;
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-logo {
    order: 1;
    flex: 0 0 auto;
  }
  .nav-cta {
    order: 2;
    padding: 8px 16px;
    font-size: 11px;
    flex: 0 0 auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 15px 0 10px 0;
    gap: 20px;
  }
  
  /* Testimonials */
  .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
  .testimonial-nav {
    width: 44px;
    height: 44px;
  }
  .testimonial-nav svg {
    width: 18px;
    height: 18px;
  }
  .testimonial-prev {
    left: 5px;
  }
  .testimonial-next {
    right: 5px;
  }
}
.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.testimonial-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.testimonial-indicator:hover {
  background: var(--text-light);
  transform: scale(1.2);
}
.testimonial-indicator.active {
  background: var(--maroon);
  border-color: var(--maroon);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(123, 28, 42, 0.3);
}

/* ---- ABOUT ---- */
#about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.about-visual { position: relative; height: 520px; }
.about-block-main {
  background: var(--maroon);
  position: absolute; inset: 0;
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 44px;
}
.about-block-main::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 50px,
    rgba(255,255,255,0.02) 50px, rgba(255,255,255,0.02) 51px
  );
}
.about-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px; font-weight: 700;
  color: rgba(255,255,255,0.08);
  position: absolute; top: -10px; right: 20px;
  line-height: 1; z-index: 0; user-select: none;
}
.about-quote {
  position: relative; z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-style: italic; font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.4; margin-bottom: 20px;
}
.about-quote-attr {
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--gold); text-transform: uppercase;
}
.about-badge {
  position: absolute; top: 32px; left: -20px;
  background: var(--gold);
  padding: 20px 24px; border-radius: 2px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 10;
}
.about-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--maroon-dk);
  line-height: 1; display: block;
}
.about-badge-label {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--maroon-dk);
  opacity: 0.75; margin-top: 4px; display: block;
}
.about-body {
  font-size: 16px; color: var(--text-mid);
  line-height: 1.85; font-weight: 300;
  margin-bottom: 20px;
}
.about-pillars {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 40px;
}
.pillar {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.pillar:hover { background: var(--warm-white); border-color: var(--maroon); }
.pillar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--maroon); flex-shrink: 0; margin-top: 7px;
}
.pillar-title { font-weight: 500; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.pillar-text { font-size: 13px; color: var(--text-light); }

/* ---- CONTACT ---- */
#contact {
  background: var(--maroon-dk);
  padding: 100px 8vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.contact-left .section-eyebrow::before { background: var(--gold); }
.contact-left .section-eyebrow { color: var(--gold); }
.contact-left .section-title { color: #fff; }
.contact-left .section-sub { color: rgba(255,255,255,0.6); max-width: 400px; }
.contact-info { margin-top: 44px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--gold); }
.contact-item-label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.contact-item-val { font-size: 15px; color: rgba(255,255,255,0.88); }
.contact-item-val a { color: var(--gold); text-decoration: none; }
.contact-item-val a:hover { text-decoration: underline; }
.contact-form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 44px;
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; color: #fff; font-weight: 600;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px; padding: 12px 16px;
  font-size: 14px; color: rgba(255,255,255,0.9);
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--maroon-dk); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-whatsapp {
  width: 100%; background: #25D366; color: #fff;
  border: none; padding: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  border-radius: 2px; cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3); font-size: 12px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1;
  height: 1px; background: rgba(255,255,255,0.1);
}
.btn-send {
  width: 100%; background: var(--gold); color: var(--maroon-dk);
  border: none; padding: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
  cursor: pointer; transition: background .2s, transform .15s;
}
.btn-send:hover { background: #d4b57a; transform: translateY(-1px); }
.btn-send:disabled { 
  background: #666; 
  cursor: not-allowed; 
  transform: none; 
}
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 13px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---- FOOTER ---- */
footer {
  background: #0E0508;
  padding: 48px 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: 0.04em; display: block;
}
.footer-logo span:last-child {
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.4);
  text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- SCROLL TO TOP BUTTON ---- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--maroon);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(123, 28, 42, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--maroon-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 28, 42, 0.4);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 400px; }
  #about { grid-template-columns: 1fr; }
  .about-visual { height: 360px; }
  #contact { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
}
