/* ============================================================
   Profit Accounting — Corporate Stylesheet
   ============================================================ */

:root {
  --navy: #0d2a4a;
  --navy-dark: #081b30;
  --blue: #1d6fc7;
  --blue-light: #e8f1fb;
  --gold: #c9a227;
  --gold-light: #f6efd6;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 42, 74, 0.14);
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--muted); }

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

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c4d4e6; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: #b8930f; color: var(--navy); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand svg { width: 40px; height: 40px; }
.brand small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--gold); font-weight: 700; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; position: relative; }
.nav-links a.active, .nav-links a:hover { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--gold);
}
.nav-cta { margin-left: 8px; }

/* Language switcher */
.nav-lang { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-weight: 700; font-size: .8rem; line-height: 1; padding: 6px 9px; border-radius: 8px;
  transition: background .2s, color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--navy); border-color: var(--gold); }
.lang-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--navy); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, #15467a 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/pattern.svg");
  background-size: 520px; opacity: .12;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  padding: 90px 0 100px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { color: #cfdcec; font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: #fff; color: var(--navy); padding: 16px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-badge strong { font-size: 1.7rem; color: var(--gold); display: block; line-height: 1; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { font-size: 2.6rem; color: var(--gold); display: block; font-family: var(--serif); }
.stat span { color: #c4d4e6; font-size: .95rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 58px; height: 58px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--blue); }
.card h3 { margin-bottom: 10px; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding-left: 24px; position: relative; color: var(--muted); margin-bottom: 6px; font-size: .94rem; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 16px; box-shadow: var(--shadow); }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { display: flex; gap: 16px; margin-bottom: 22px; }
.feature-list .fi {
  flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold);
}
.feature-list h4 { color: var(--navy); margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: .95rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card img { border-radius: 14px; margin-bottom: 18px; aspect-ratio: 1/1; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-card p { font-size: .92rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border-radius: var(--radius); padding: 34px; border: 1px solid var(--line);
}
.quote .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 3px; }
.quote p { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.quote .who img { width: 50px; height: 50px; border-radius: 50%; }
.quote .who strong { display: block; color: var(--navy); }
.quote .who span { font-size: .85rem; color: var(--muted); }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 50px; opacity: .7; }
.logos span { font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: .03em; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(115deg, var(--navy) 0%, #15467a 100%);
  border-radius: 20px; padding: 60px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #cfdcec; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/pattern.svg"); background-size: 480px; opacity: .1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfdcec; max-width: 620px; margin: 10px auto 0; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: var(--gold); margin-bottom: 14px; }
.breadcrumb a { color: #cfdcec; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .fi { flex: 0 0 48px; height: 48px; border-radius: 10px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; }
.info-item .fi svg { width: 24px; height: 24px; stroke: var(--blue); }
.info-item h4 { margin-bottom: 2px; }
.info-item p { margin: 0; font-size: .95rem; }

form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .96rem; transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; background: var(--gold-light); border: 1px solid var(--gold);
  color: #7a5e00; padding: 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 600;
}

/* ---------- Pricing ---------- */
.price-card { text-align: center; position: relative; }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.price-card .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: .08em;
}
.price-card .amount { font-size: 2.8rem; color: var(--navy); font-weight: 800; font-family: var(--serif); }
.price-card .amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-card ul { text-align: left; }

/* ---------- FAQ / accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 0; font-size: 1.08rem; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .mark { color: var(--gold); font-size: 1.5rem; transition: transform .3s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 22px; margin: 0; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c8d9; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #b9c8d9; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; font-size: .94rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.footer-brand svg { width: 38px; height: 38px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { background: var(--gold); color: var(--navy); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 76px; right: 0; height: calc(100vh - 76px); width: 260px;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 30px;
    gap: 22px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
