/* ============================================================
   EPHRAITECH UNIFIED SOLUTIONS — Global Stylesheet
   Brand: Navy #032e88 | Gold #e49f25
   Fonts: Fraunces (display) | Instrument Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --navy:        #032e88;
  --navy-dark:   #021f5e;
  --navy-light:  #0a3fa0;
  --gold:        #e49f25;
  --gold-light:  #f5b83d;
  --gold-pale:   #fdf3dc;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --grey-100:    #f1f3f8;
  --grey-300:    #c8cfe0;
  --grey-500:    #7a86a0;
  --grey-700:    #3d4660;
  --text:        #111827;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow-sm:   0 2px 8px rgba(3,46,136,.08);
  --shadow-md:   0 6px 24px rgba(3,46,136,.13);
  --shadow-lg:   0 16px 48px rgba(3,46,136,.18);
  --transition:  .25s ease;
  --max-w:       1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { max-width: 68ch; }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* ── Layout ── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

section { padding: 80px 0; }
section:nth-child(even) { background: var(--off-white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 2px solid rgba(228,159,37,.2);
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-brand .logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
}
.nav-brand .logo-text span { color: var(--gold); }
.nav-brand .logo-sub {
  font-size: .65rem;
  color: var(--grey-300);
  letter-spacing: .06em;
  line-height: 1;
}
.nav-logo-wrap { display: flex; flex-direction: column; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--grey-300);
  font-size: .93rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: .5rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: var(--grey-300);
  padding: 60px 0 28px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: .9rem;
  margin-top: .8rem;
  line-height: 1.7;
  max-width: 28ch;
}
.footer-motto {
  display: inline-block;
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .5rem;
}
.footer-col h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
  font-size: .9rem;
  color: var(--grey-300);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  margin-bottom: .6rem;
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--grey-500);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: var(--gold); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(228,159,37,.3);
}

/* ── Utility ── */
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.2rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid rgba(228,159,37,.2);
    z-index: 99;
  }
  .nav-cta.open { display: block; }
}

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── WhatsApp Float Button ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.wa-bubble {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border-radius: 50px;
  padding: .5rem 1rem .5rem .6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  animation: waBubble .4s ease both;
  cursor: pointer;
  border: none;
  font-family: 'Instrument Sans', sans-serif;
}
.wa-bubble:hover { background: var(--gold-pale); }
.wa-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,.25);
  animation: waPulse 2s ease-in-out infinite;
}
.wa-tooltip {
  display: none;
}
@keyframes waPulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.3); opacity: 0; }
}
@keyframes waBubble {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .wa-float { bottom: 18px; right: 16px; }
  .wa-btn   { width: 52px; height: 52px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-up { animation: fadeUp .65s ease both; }
.anim-up-d1 { animation-delay: .1s; }
.anim-up-d2 { animation-delay: .2s; }
.anim-up-d3 { animation-delay: .3s; }
.anim-up-d4 { animation-delay: .4s; }