/* ============================================
   AVI FINANCE — Global Stylesheet
   Palette:
     Navy:      #0B1F3A  (primary dark)
     Blue:      #1A4A8A  (brand blue)
     Accent:    #2E7DD1  (bright blue accent)
     Light:     #F0F5FB  (section backgrounds)
     White:     #FFFFFF
     Text:      #1C2B3A
     Muted:     #5A7090
   Typefaces:
     Display:   'Playfair Display' (headings)
     Body:      'Inter' (body, nav, UI)
============================================ */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1C2B3A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: #0B1F3A;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: #1C2B3A; }

/* ---- Layout ---- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section { padding: 80px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #2E7DD1;
  color: #fff;
  border-color: #2E7DD1;
}
.btn-primary:hover {
  background: #1A4A8A;
  border-color: #1A4A8A;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links .nav-cta {
  background: #2E7DD1;
  color: #fff;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.nav-links .nav-cta:hover { background: #1A4A8A; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.lang-switch a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.lang-switch a:hover, .lang-switch a.active { color: #fff; }
.lang-switch span { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0B1F3A 0%, #1A4A8A 60%, #2E7DD1 100%);
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7FBFFF;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(127,191,255,0.3);
  border-radius: 2px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: #7FBFFF;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating dots graphic (mirrors logo motif) */
.hero-dots {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  width: 380px;
  height: 380px;
}

/* ---- Section labels ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2E7DD1;
  margin-bottom: 14px;
  display: block;
}

/* ---- Offering cards (home preview + offering page) ---- */
.features {
  background: #F0F5FB;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.feature-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 28px;
  border: 1px solid rgba(46,125,209,0.1);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: 0 12px 36px rgba(11,31,58,0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #EBF3FC;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: #2E7DD1; fill: none; stroke-width: 1.8; }

.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { color: #5A7090; font-size: 0.95rem; line-height: 1.7; }

/* ---- Testimonial ---- */
.testimonial-section { background: #0B1F3A; }

.testimonial-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 0.6;
  color: #2E7DD1;
  opacity: 0.4;
  display: block;
  margin-bottom: 8px;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #fff;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7FBFFF;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, #1A4A8A, #2E7DD1);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.05rem; }

/* ---- About page ---- */
.about-hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #1A4A8A 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.about-hero h1 { color: #fff; }
.about-hero p { color: rgba(255,255,255,0.72); max-width: 620px; margin: 20px auto 0; font-size: 1.1rem; }

.about-body { background: #fff; }
.about-body .container { max-width: 780px; }
.about-body p { font-size: 1.05rem; color: #1C2B3A; margin-bottom: 22px; line-height: 1.9; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.value-card {
  padding: 32px 28px;
  border-left: 3px solid #2E7DD1;
  background: #F0F5FB;
  border-radius: 0 6px 6px 0;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: #5A7090; font-size: 0.95rem; margin: 0; }

/* ---- Offering page ---- */
.offering-hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #1A4A8A 100%);
  padding: 140px 0 80px;
}
.offering-hero h1 { color: #fff; margin-bottom: 16px; }
.offering-hero p { color: rgba(255,255,255,0.72); max-width: 600px; font-size: 1.05rem; line-height: 1.8; }

.services-list { background: #fff; }

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(11,31,58,0.08);
}
.service-item:last-child { border-bottom: none; }

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(46,125,209,0.2);
  line-height: 1;
  padding-top: 4px;
}

.service-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-content p { color: #5A7090; font-size: 0.97rem; line-height: 1.75; }

/* ---- Contact page ---- */
.contact-hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #1A4A8A 100%);
  padding: 140px 0 80px;
}
.contact-hero h1 { color: #fff; margin-bottom: 16px; }
.contact-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 520px; }

.contact-section { background: #F0F5FB; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 24px; font-size: 1.3rem; }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11,31,58,0.08);
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: #2E7DD1; fill: none; stroke-width: 1.8; }
.contact-detail-text { font-size: 0.95rem; color: #1C2B3A; line-height: 1.6; }
.contact-detail-text strong { display: block; font-weight: 600; color: #0B1F3A; margin-bottom: 2px; }

/* Contact Form */
.contact-form { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 4px 24px rgba(11,31,58,0.07); }
.contact-form h3 { margin-bottom: 28px; font-size: 1.3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(11,31,58,0.15);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1C2B3A;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #2E7DD1; }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: #EBF3FC;
  border: 1px solid #2E7DD1;
  border-radius: 4px;
  padding: 16px;
  color: #1A4A8A;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ---- Page hero (inner pages generic) ---- */
.page-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #0B1F3A 0%, #1A4A8A 100%);
}
.page-hero .section-label { color: #7FBFFF; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.72); margin-top: 16px; font-size: 1.05rem; max-width: 580px; line-height: 1.8; }

/* ---- Footer ---- */
.site-footer {
  background: #0B1F3A;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 280px; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact-item svg { width: 14px; height: 14px; stroke: #2E7DD1; fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.footer-lang { display: flex; gap: 16px; }
.footer-lang a { color: rgba(255,255,255,0.4); font-size: 0.82rem; transition: color 0.2s; }
.footer-lang a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-dots { display: none; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #0B1F3A; flex-direction: column; padding: 20px 24px 28px; gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .contact-form { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
