/* =========================================
   CleanBooks Consulting — Custom Styles
   ========================================= */

:root {
  --primary:    #1B5E8C;
  --primary-dark: #154a70;
  --accent:     #27AE60;
  --accent-dark: #1e9150;
  --text:       #2C3E50;
  --text-muted: #6c757d;
  --bg-light:   #F8F9FA;
  --bg-dark:    #1a2533;
  --white:      #FFFFFF;
  --border:     #e0e6ed;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand img {
  width: 220px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text) !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--accent);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:disabled {
  background: #b0c4d8;
  border-color: #b0c4d8;
  cursor: not-allowed;
  opacity: 1;
}

/* ---- Hero Section ---- */
.hero {
  background:
    linear-gradient(135deg, rgba(15, 40, 65, 0.82) 0%, rgba(10, 30, 50, 0.88) 100%),
    url('../images/image2.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 620px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero .badge-pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  background:
    linear-gradient(rgba(5, 15, 30, 0.75), rgba(5, 15, 30, 0.80)),
    url('../images/image2.jpg') center/cover no-repeat;
  border-bottom: none;
  padding: 55px 0 45px;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}

.page-header p {
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.page-header .section-label {
  color: #7eeead;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Section Common ---- */
.section {
  padding: 70px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-title {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(27, 94, 140, 0.12);
  transform: translateY(-4px);
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  background: rgba(27, 94, 140, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.service-card ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---- Advantages Section Background ---- */
.section-advantages {
  background:
    linear-gradient(rgba(248, 249, 250, 0.92), rgba(248, 249, 250, 0.92)),
    url('../images/image3.jpg') center/cover no-repeat;
}

/* ---- Advantage Cards ---- */
.advantage-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.advantage-card .adv-icon {
  width: 64px;
  height: 64px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
}

.advantage-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.advantage-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Objective Box ---- */
.objective-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
}

.objective-box h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.objective-box p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0;
}

/* ---- Collaboration / Callout ---- */
.callout-box {
  background: rgba(27, 94, 140, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
}

.callout-box h5 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.callout-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Experience / About ---- */
.experience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.experience-card h5 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #1e9150 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--accent-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: none;
}

.cta-banner .btn:hover {
  background: #f0f0f0;
  color: var(--accent-dark);
}

/* ---- Contact ---- */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s;
}

.contact-info-card:hover {
  box-shadow: 0 6px 24px rgba(27,94,140,0.1);
}

.contact-info-card .contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(27, 94, 140, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  font-size: 1.3rem;
}

.contact-info-card h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-info-card a,
.contact-info-card p {
  font-size: 0.97rem;
  color: var(--text);
  margin: 0;
}

.contact-info-card a:hover {
  color: var(--primary);
}

/* ---- Contact Form ---- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.form-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,140,0.1);
  outline: none;
}

/* ---- Footer ---- */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
}

footer .footer-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

footer .footer-brand span { color: var(--accent); }

footer p { font-size: 0.92rem; }

footer h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,0.65);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--white); }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

#back-to-top:hover { background: var(--primary-dark); }

/* ---- Utilities ---- */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .cta-banner h2 { font-size: 1.6rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .objective-box { padding: 1.75rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.6rem; }
  .navbar-brand { font-size: 1.2rem; }
  .navbar-brand img {
    width: auto;
    height: auto;
    max-height: 48px;
  }
}
