/* ============================================================
   KLO Bookkeeping — Professional Bookkeeping & Accounting
   Blue / Green Professional Theme
   ============================================================ */

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

:root {
  --navy: #0a1628;
  --navy-light: #13203b;
  --blue: #1e3a5f;
  --blue-mid: #2d5a8a;
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-pale: #d1fae5;
  --gold: #d4a853;
  --gold-light: #f0e6d0;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow: 0 4px 16px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-light); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  text-decoration: none; line-height: 1.3;
}
.btn-primary {
  background: var(--emerald); color: var(--white); border-color: var(--emerald);
}
.btn-primary:hover { background: var(--emerald-light); border-color: var(--emerald-light); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-lg { padding: 0.95rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- Site Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 0;
  transition: background var(--transition), padding var(--transition);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.site-header.scrolled { background: rgba(10, 22, 40, 0.98); padding: 0.6rem 0; }

/* Logo */
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; color: var(--white); text-decoration: none;
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--emerald); color: var(--white);
  font-size: 0.8rem; font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.logo-text {
  font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em;
}

/* Nav */
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
  padding: 0.3rem 0; transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--emerald); transition: width var(--transition);
}
.main-nav a:hover, .main-nav a:focus { color: var(--white); }
.main-nav a:hover::after { width: 100%; }
.nav-cta { display: inline-flex !important; }

/* Mobile Toggle */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001;
}
.mobile-toggle span {
  display: block; width: 26px; height: 2.5px; background: var(--white);
  border-radius: 2px; transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { color: var(--white); }
.hero-tag {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--emerald-light); background: rgba(16, 185, 129, 0.12);
  padding: 0.45rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--white); margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.15rem; color: rgba(255,255,255,0.75);
  max-width: 540px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 1.8rem; font-weight: 800; color: var(--emerald-light); line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative; height: 360px;
}
.hero-card {
  position: absolute; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.4s ease;
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card.card-1 { top: 0; right: 10%; width: 200px; height: 180px; }
.hero-card.card-2 { top: 100px; right: 42%; width: 170px; height: 150px; }
.hero-card.card-3 { top: 160px; right: 0; width: 210px; height: 170px; }

.card-icon {
  width: 44px; height: 44px; background: var(--emerald); color: var(--white);
  font-size: 1.2rem; font-weight: 800; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.card-bar {
  height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px;
  margin-bottom: 8px;
}
.card-bar.short { width: 60%; }
.card-dot {
  width: 12px; height: 12px; background: var(--gold); border-radius: 50%;
  margin-bottom: 1rem;
}
.card-line {
  height: 10px; background: rgba(255,255,255,0.15); border-radius: 5px;
  margin-bottom: 10px;
}
.card-line.short { width: 55%; }
.card-pie {
  width: 70px; height: 70px; border-radius: 50%;
  background: conic-gradient(var(--emerald) 0deg 120deg, var(--gold) 120deg 240deg, rgba(255,255,255,0.2) 240deg 360deg);
  margin-bottom: 1rem;
}
.card-legend { display: flex; gap: 0.8rem; }
.card-legend span { width: 14px; height: 14px; border-radius: 3px; }
.card-legend span:nth-child(1) { background: var(--emerald); }
.card-legend span:nth-child(2) { background: var(--gold); }
.card-legend span:nth-child(3) { background: rgba(255,255,255,0.3); }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  color: var(--emerald); background: var(--emerald-pale);
  padding: 0.4rem 1rem; border-radius: 50px;
  margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-400); font-size: 1.05rem; }

/* --- Services Section --- */
.services { background: var(--off-white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--blue-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; background: var(--emerald-pale);
  color: var(--emerald); border-radius: var(--radius);
  margin-bottom: 1.25rem; transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--emerald); color: var(--white); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--gray-400); font-size: 0.92rem; line-height: 1.65; }

/* --- About Section --- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content > p { color: var(--gray-400); }
.about-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-check {
  display: flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; background: var(--emerald-pale);
  color: var(--emerald); font-size: 0.85rem; font-weight: 700;
  border-radius: 50%; margin-top: 2px;
}
.about-feature strong { display: block; color: var(--navy); margin-bottom: 0.2rem; }
.about-feature p { color: var(--gray-400); font-size: 0.92rem; }

.about-visual { display: flex; justify-content: center; }
.about-image-placeholder {
  width: 100%; max-width: 460px; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--off-white), var(--gray-50));
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  border: 1px solid var(--gray-100);
}
.about-graphic { width: 80%; }
.graphic-chart {
  display: flex; align-items: flex-end; gap: 10px; height: 140px;
  margin-bottom: 1.5rem;
}
.graphic-chart .bar {
  flex: 1; background: var(--gray-200); border-radius: 6px 6px 0 0;
  transition: background var(--transition);
}
.graphic-chart .bar.highlight { background: var(--emerald); }
.graphic-line svg { width: 100%; height: auto; }

/* --- Process Section --- */
.process { background: var(--navy); color: var(--white); }
.process .section-header h2, .process .section-header p { color: var(--white); }
.process .section-tag { background: rgba(16, 185, 129, 0.15); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.process-step {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; transition: all var(--transition);
  position: relative;
}
.process-step:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.step-number {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 1.25rem;
  background: rgba(16, 185, 129, 0.15); color: var(--emerald-light);
  font-size: 1.2rem; font-weight: 800; border-radius: 50%;
  font-family: 'Inter', sans-serif;
}
.process-step h3 { color: var(--white); margin-bottom: 0.6rem; }
.process-step p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.65; }

/* --- Testimonials --- */
.testimonials { background: var(--off-white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text {
  color: var(--gray-500); font-size: 0.93rem; line-height: 1.7;
  margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author strong { display: block; color: var(--navy); font-size: 0.92rem; }
.testimonial-author span { color: var(--gray-400); font-size: 0.82rem; }

/* --- Contact Section --- */
.contact { background: var(--white); }
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--gray-400); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--emerald-pale);
  color: var(--emerald); border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item a, .contact-item address { color: var(--gray-500); font-size: 0.92rem; font-style: normal; }
.contact-item a:hover { color: var(--emerald); }

/* Contact Form */
.contact-form-wrapper {
  background: var(--off-white); border-radius: var(--radius-xl);
  padding: 2.5rem; border: 1px solid var(--gray-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: var(--gray-700); background: var(--white);
  border: 1.5px solid var(--gray-100); border-radius: var(--radius);
  transition: all var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.6; margin-top: 1rem; }
.footer-links h4 { color: var(--white); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--emerald-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem;
}

/* ============================================================
   Legal Pages — Privacy Policy & Terms of Service
   ============================================================ */
.page-banner {
  padding: 9rem 0 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-banner p { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

.page-content { padding: 4rem 0 5rem; background: var(--white); }
.content-wrapper { max-width: 800px; }

.policy-summary {
  background: var(--off-white); border-left: 4px solid var(--emerald);
  padding: 1.5rem 2rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
}
.policy-summary h2 { margin-bottom: 0.75rem; font-size: 1.4rem; }
.policy-summary p { color: var(--gray-500); font-size: 0.95rem; }

.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 {
  font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--gray-100);
}
.policy-section h3 {
  font-size: 1.1rem; color: var(--blue); margin: 1.25rem 0 0.6rem;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.policy-section ul {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.policy-section ul li {
  list-style: disc; color: var(--gray-500); font-size: 0.95rem;
  margin-bottom: 0.5rem; line-height: 1.65;
}
.policy-section p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }

.contact-block {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 1.5rem 2rem; margin: 1rem 0;
}
.contact-block p { margin-bottom: 0.35rem; }

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 250px; }
  .hero-card.card-1 { right: 15%; top: 0; width: 170px; height: 150px; }
  .hero-card.card-2 { right: 44%; top: 80px; width: 140px; height: 130px; }
  .hero-card.card-3 { right: 5%; top: 130px; width: 180px; height: 140px; }
  .hero-stats { gap: 2rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card:last-child { grid-column: span 2; max-width: 400px; justify-self: center; }

  .about-grid { gap: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .main-nav, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav.mobile-open {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.98); flex-direction: column;
    align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
  }
  .main-nav.mobile-open ul {
    flex-direction: column; align-items: center; gap: 1.75rem;
  }
  .main-nav.mobile-open a { font-size: 1.3rem; }
  .nav-cta.mobile-open { display: flex !important; margin-top: 2rem; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 8rem 0 4rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .stat-number { font-size: 1.4rem; }

  .hero-visual { height: 200px; }
  .hero-card { display: none; }
  .hero-card.card-1 { display: block; right: 5%; top: 0; width: 150px; height: 130px; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: span 1; max-width: none; justify-self: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-placeholder { max-width: 100%; aspect-ratio: 1.2; }

  .process-steps { grid-template-columns: 1fr; }

  .contact-wrapper { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .content-wrapper { padding: 0; }
  .policy-summary { padding: 1.25rem 1.5rem; }
}
