/* ==========================================================================
   JOE PINAS NIG LTD — Premium single-page website styles
   Palette: forest green #1E5C3A | cream #F2E8C6 | sage #4A8C64
   ========================================================================== */

:root {
  --navy: #1E5C3A;
  --navy-dark: #143D27;
  --gold: #F2E8C6;
  --gold-soft: rgba(242, 232, 198, 0.15);
  --white: #ffffff;
  --ink: #192e1f;
  --muted: #4e6b58;
  --soft: #f0f7f3;
  --radius: 10px;
  --shadow: 0 14px 40px rgba(20, 61, 39, 0.14);
  --transition: 0.3s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--navy); }
/* Gold = cream, so buttons/text using --gold need dark text for contrast */
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.1rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--navy); }
.section-dark h2 { color: var(--white); }
.section-soft { background: var(--soft); }
.gold { color: var(--gold); }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(242, 232, 198, 0.5); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn-block { width: 100%; border: none; cursor: pointer; }

/* ---------- Scroll-reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(30, 92, 58, 0.96);
  padding: 0.65rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-dark);
  font-weight: 800; border-radius: 8px; font-size: 1rem;
}
.brand-name { color: var(--white); font-weight: 800; letter-spacing: 0.05em; font-size: 0.95rem; }
.brand-name em { font-style: normal; color: var(--gold); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.9rem; transition: color var(--transition); }
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta { color: var(--navy-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: var(--transition); }


.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.brand-tagline {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20, 61, 39, 0.93) 0%, rgba(30, 92, 58, 0.75) 55%, rgba(30, 92, 58, 0.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 5rem; }
.hero-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.2rem; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(1rem, 2vw, 1.3rem); margin-bottom: 2.4rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-indicator { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px; position: relative; }
.wheel { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- About ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.2rem; right: -0.8rem;
  background: var(--navy); color: var(--white);
  padding: 1rem 1.5rem; border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.about-badge strong { color: var(--gold); font-size: 1.2rem; }
.about-badge span { font-size: 0.78rem; opacity: 0.85; }
.about-copy p { color: var(--muted); }
.stats { display: flex; gap: 2.5rem; margin-top: 2.4rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.35); /* gold glow */
  transform: translateY(-4px);
}
.service-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 1.1rem; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.service-card p { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.why-block {
  background: var(--white); border: 1px solid #e6eaf1; border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 6px 20px rgba(10, 31, 68, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num { font-size: 0.85rem; font-weight: 800; color: var(--gold); letter-spacing: 0.2em; }
.why-block h3 { margin: 0.5rem 0 0.5rem; }
.why-block p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Operations (parallax) ---------- */
.operations {
  position: relative; min-height: 60vh; display: flex; align-items: center;
  background: url('https://images.unsplash.com/photo-1605745341112-85968b19335b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed; /* parallax effect */
}
.operations-overlay { position: absolute; inset: 0; background: rgba(20, 61, 39, 0.72); }
.operations-content { position: relative; z-index: 2; text-align: center; }
.operations blockquote { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 800; color: var(--white); line-height: 1.2; }

/* ---------- Partners & Affiliates ---------- */
.partners-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
.partner-card {
  background: var(--white); border: 1px solid #e6eaf1;
  border-bottom: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.6rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.partner-card:not(:last-child) { box-shadow: 0 4px 14px rgba(10, 31, 68, 0.05); }
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-name { color: var(--navy); font-weight: 800; letter-spacing: 0.06em; font-size: 0.88rem; text-transform: uppercase; }
/* Distinguished institutional partner */
.partner-featured {
  padding: 2rem 1.2rem;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #f5f9f7 0%, var(--white) 100%);
  box-shadow: 0 10px 30px rgba(30, 92, 58, 0.15);
}
.partner-badge {
  background: var(--gold); color: var(--navy-dark);
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.partner-featured .partner-name { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.06); border-top: 3px solid var(--gold);
}
.testimonial-card blockquote { color: var(--ink); font-size: 0.95rem; margin-bottom: 1.4rem; }
.testimonial-card figcaption { display: flex; flex-direction: column; }
.testimonial-card figcaption strong { color: var(--navy); font-size: 0.9rem; }
.testimonial-card figcaption span { color: var(--muted); font-size: 0.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contact-list li { color: rgba(255, 255, 255, 0.85); }
.contact-list a { color: rgba(255, 255, 255, 0.85); }
.contact-list a:hover { color: var(--gold); }
.contact-label { display: block; color: var(--gold); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.2rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; color: var(--gold); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.contact-form input, .contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px; padding: 0.8rem 1rem;
  color: var(--white); font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-status { color: var(--gold); font-size: 0.9rem; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); padding-top: 3rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
  color: rgba(255, 255, 255, 0.8); transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0; color: rgba(255, 255, 255, 0.5); font-size: 0.82rem; text-align: center; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: repeat(3, 1fr); }
  .operations { background-attachment: scroll; } /* fixed bg is janky on tablets */
}

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

  /* Partners: 2 columns, featured (last) item centered full width */
  .partners-row { grid-template-columns: repeat(2, 1fr); }
  .partner-featured { grid-column: 1 / -1; max-width: 420px; margin-inline: auto; width: 100%; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--navy-dark);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; text-align: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about-badge { right: 0.5rem; }
  .stats { gap: 1.6rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .wheel { animation: none; }
}