/* ==========================================================================
   UNIFY GROUP — Corporate Website
   Design tokens: dark navy + charcoal + soft grey + muted antique gold
   Display type: Fraunces (serif) / Body: Inter (sans)
   ========================================================================== */

:root {
  /* Color */
  --navy-deep:   #0B1524;
  --navy:        #102338;
  --navy-mid:    #1B3A57;
  --charcoal:    #2B2E33;
  --charcoal-70: rgba(43,46,51,.7);
  --grey-bg:     #F5F5F2;
  --grey-line:   #E1E0DA;
  --grey-mid:    #8B8D91;
  --white:       #FFFFFF;
  --gold:        #A9803D;
  --gold-soft:   #C9AD7A;
  --gold-line:   rgba(169,128,61,.35);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale (fluid) */
  --step-5: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
  --step-4: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --step-2: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --step-1: 1.125rem;
  --step-0: 1rem;
  --step--1: .9rem;

  --container: 1180px;
  --radius: 3px;
  --border: 1px solid var(--grey-line);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-deep);
  letter-spacing: -.01em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: var(--step-1); color: var(--charcoal-70); max-width: 58ch; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding: 96px 0; }
@media (max-width: 780px) { section { padding: 64px 0; } }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--gold);
  margin-bottom: .6em;
}

.bg-grey { background: var(--grey-bg); }
.bg-navy { background: var(--navy-deep); color: rgba(255,255,255,.88); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .lede { color: rgba(255,255,255,.72); }
.bg-navy p { color: rgba(255,255,255,.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--navy-deep); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.bg-navy .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.bg-navy .btn-outline:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border: 1.5px solid var(--navy-deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--navy-deep);
  font-size: 1rem;
}
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-deep); letter-spacing: .02em; }
.brand-word em { color: var(--gold); font-style: normal; }

/* Real uploaded logo (admin/site_settings.php → Identity → Logo). Height-capped so a
   wide or tall source image still sits in the header/footer at the same scale the "U"
   badge used, regardless of the file's own aspect ratio. */
.brand-logo-img { height: 38px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; color: var(--charcoal); font-size: .95rem; font-weight: 500;
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy-deep); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-deep); transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 940px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--white); flex-direction: column;
    justify-content: flex-start; padding: 32px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--grey-line); }
  .main-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Home banner strip (1920x350 image slot) ---------- */
.home-banner { width: 100%; overflow: hidden; line-height: 0; background: var(--navy-deep); padding: 0; margin: 0; }
.home-banner img { width: 100%; height: auto; aspect-ratio: 1633 / 500; object-fit: cover; display: block; }
@media (max-width: 700px) { .home-banner img { aspect-ratio: 4 / 3; object-position: center; } }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 96px; background: var(--white); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .trust-line { margin-top: 28px; font-size: .9rem; color: var(--gold); font-family: var(--font-display); font-style: italic; }
.hero-art { border-radius: var(--radius); overflow: hidden; }
.page-hero { background: var(--navy-deep); color: var(--white); padding: 72px 0; }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,.75); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------- Two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-art { order: 2; }
@media (max-width: 860px) { .split, .split.reverse .split-art { grid-template-columns: 1fr; order: 0; } }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; height: 100%;
}
.card .card-icon { width: 46px; height: 46px; margin-bottom: 20px; color: var(--gold); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card .card-subtitle { font-size: .85rem; text-transform: none; color: var(--gold); font-weight: 600; margin-bottom: .7em; }
.card p { font-size: .95rem; color: var(--charcoal-70); flex-grow: 1; }
.card .btn { margin-top: 18px; align-self: flex-start; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--grey-bg); color: var(--gold); border: 1px solid var(--gold-line);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; width: fit-content;
}

.status-row { display:flex; align-items:center; gap:10px; font-size:.85rem; color: var(--charcoal-70); margin-bottom: 8px; }
.status-dot { width:8px; height:8px; border-radius:50%; background: var(--gold); flex-shrink:0; }

/* ---------- Value list ---------- */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .mark { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.4rem; line-height: 1; flex-shrink: 0; padding-top: 3px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.value-item p { font-size: .93rem; color: var(--charcoal-70); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-deep); color: var(--white); padding: 88px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { margin-inline: auto; color: rgba(255,255,255,.72); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Divider quote / message ---------- */
.message-block { text-align: center; max-width: 780px; margin-inline: auto; }
.message-block h2 { font-size: var(--step-3); }

/* ---------- Timeline (heritage) ---------- */
.timeline { border-left: 2px solid var(--gold-line); padding-left: 32px; display: flex; flex-direction: column; gap: 44px; }
.timeline-item .eyebrow { font-size: .82rem; color: var(--gold); font-weight: 700; letter-spacing: .03em; margin-bottom: .3em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-deep); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  border: 1px solid var(--grey-line); border-radius: var(--radius); background: var(--white); color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 130px; }
.contact-note { background: var(--grey-bg); border-left: 3px solid var(--gold); padding: 18px 22px; font-size: .9rem; margin-bottom: 32px; }
.placeholder-note { font-size: .82rem; color: var(--grey-mid); font-style: italic; }

.contact-info-list { display:flex; flex-direction:column; gap:22px; }
.contact-info-item h3 { font-size:.95rem; margin-bottom:.3em; }
.contact-info-item p { font-size:.9rem; color: var(--charcoal-70); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 76px 0 28px; position: relative; }
.site-footer::before {
  /* a thin gold hairline across the very top of the footer — a small, deliberate seam
     between the page content and the dark footer band instead of a hard color cut */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 48px; margin-bottom: 52px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-grid > div { position: relative; }
.footer-grid h4 {
  color: var(--white); font-family: var(--font-body); font-weight: 600;
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  margin: 0 0 20px; padding-bottom: 12px; position: relative;
}
.footer-grid h4::after {
  /* short gold underline under each column heading, instead of plain bold text —
     ties every column heading back to the same accent color used site-wide */
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,.62); font-size: .92rem; transition: color .15s ease, padding-left .15s ease; }
.footer-grid ul a { display: inline-block; }
.footer-grid ul a:hover { color: var(--gold-soft); padding-left: 3px; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.55); max-width: 34ch; line-height: 1.7; margin: 0; }

/* Social icons — solid, filled circular buttons (brand color always on, white glyph),
   the way these icons normally appear in app UIs — not thin outline strokes on a dark
   circle. Each network keeps its own recognizable brand color so they read as
   "Facebook", "WhatsApp" etc. at a glance, even before hovering. */
.social-icons { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.social-icon:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); }

.social-icon.social-facebook  { background: #1877F2; }
.social-icon.social-linkedin  { background: #0A66C2; }
.social-icon.social-whatsapp  { background: #25D366; }
.social-icon.social-instagram { background: linear-gradient(135deg, #FFC107, #E1306C, #5851DB); }

.social-icon.social-facebook:hover  { box-shadow: 0 6px 16px rgba(24,119,242,.45); }
.social-icon.social-linkedin:hover  { box-shadow: 0 6px 16px rgba(10,102,194,.45); }
.social-icon.social-whatsapp:hover  { box-shadow: 0 6px 16px rgba(37,211,102,.45); }
.social-icon.social-instagram:hover { box-shadow: 0 6px 16px rgba(225,48,108,.45); }

.contact-info-list a.btn.btn-outline {
  border-color: rgba(255,255,255,.3); color: var(--white);
}
.contact-info-list a.btn.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--charcoal-70); max-width: 72ch; }
.legal-content ul { padding-left: 1.2em; }

/* ---------- Reveal-on-load (hero only, single orchestrated moment) ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .7s ease forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .28s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }


/* Floating WhatsApp button (bottom-right, all pages) */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(37,211,102,.5); }
@media (max-width: 620px) { .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; } }
