/* =========================================================
   Kibrom — Business Builder Portfolio
   Coffee Plantation Design System
   ========================================================= */

:root {
  /* Coffee plantation palette */
  --primary: #31572C;
  --deep-green: #1B4332;
  --secondary-green: #52734D;
  --olive: #6B7D4E;
  --coffee-brown: #6F4E37;
  --light-coffee: #A67B5B;
  --cream: #F7F3E8;
  --light-beige: #EDE6D6;
  --dark-text: #202820;
  --muted-text: #4A5248;
  --white: #FFFFFF;
  --border: rgba(49, 87, 44, 0.12);
  --shadow-sm: 0 4px 16px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 67, 50, 0.1);
  --shadow-lg: 0 24px 48px rgba(27, 67, 50, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-offset: 118px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark-text);
  background-color: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--coffee-brown);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-green);
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.section {
  padding: 90px 0;
}

.section-sm {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coffee-brown);
  margin-bottom: 0.85rem;
}

.bg-cream { background-color: var(--cream); }
.bg-beige { background-color: var(--light-beige); }
.bg-white { background-color: var(--white); }
.bg-deep { background-color: var(--deep-green); }
.bg-primary { background-color: var(--primary) !important; }

.text-muted-custom { color: var(--muted-text) !important; }
.text-coffee { color: var(--coffee-brown) !important; }
.text-cream { color: var(--cream) !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light-custom {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--deep-green);
}

.btn-light-custom:hover,
.btn-light-custom:focus {
  background: var(--white);
  border-color: var(--white);
  color: var(--deep-green);
  transform: translateY(-2px);
}

.btn-outline-light-custom {
  background: transparent;
  border-color: rgba(247, 243, 232, 0.55);
  color: var(--cream);
}

.btn-outline-light-custom:hover,
.btn-outline-light-custom:focus {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--deep-green);
}

.btn-coffee {
  background: var(--coffee-brown);
  border-color: var(--coffee-brown);
  color: var(--white);
}

.btn-coffee:hover {
  background: #5a3f2c;
  border-color: #5a3f2c;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm-custom {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.link-arrow i {
  transition: transform var(--transition);
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* ---------- Cards ---------- */
.card-premium {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(49, 87, 44, 0.22);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(49, 87, 44, 0.12), rgba(111, 78, 55, 0.1));
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.card-premium:hover .card-icon {
  background: var(--primary);
  color: var(--cream);
  transform: scale(1.05);
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin: 0.25rem;
  border-radius: 999px;
  background: var(--light-beige);
  color: var(--deep-green);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tech-badge:hover {
  background: var(--primary);
  color: var(--cream);
  border-color: var(--primary);
}

.category-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(111, 78, 55, 0.12);
  color: var(--coffee-brown);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--deep-green);
  color: var(--cream);
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

.top-bar a {
  color: rgba(247, 243, 232, 0.88);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 0.2rem;
  border-radius: 50%;
  transition: all var(--transition);
}

.top-bar .social-links a:hover {
  background: rgba(247, 243, 232, 0.12);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-navbar {
  background: rgba(247, 243, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  padding: 0.85rem 0;
}

.main-navbar.scrolled {
  background: rgba(247, 243, 232, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.55rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--deep-green) !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--deep-green));
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px rgba(166, 123, 91, 0.35);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-text) !important;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--coffee-brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231B4332' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Page Hero / Breadcrumb ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27, 67, 50, 0.92), rgba(49, 87, 44, 0.78), rgba(111, 78, 55, 0.55));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  color: rgba(247, 243, 232, 0.88);
  max-width: 620px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(247, 243, 232, 0.75);
  font-size: 0.9rem;
}

.breadcrumb-item.active {
  color: var(--cream);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(247, 243, 232, 0.55);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
}

.hero-slider .carousel-item {
  min-height: min(88vh, 760px);
  background-size: cover;
  background-position: center;
}

.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(27, 67, 50, 0.9) 0%, rgba(49, 87, 44, 0.72) 55%, rgba(111, 78, 55, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.hero-content .hero-subtitle {
  color: rgba(247, 243, 232, 0.92);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-content .hero-desc {
  color: rgba(247, 243, 232, 0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 54px;
  height: 54px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 1;
  background: rgba(247, 243, 232, 0.12);
  border: 1px solid rgba(247, 243, 232, 0.25);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.hero-slider .carousel-control-prev { left: 1.25rem; }
.hero-slider .carousel-control-next { right: 1.25rem; }

.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(247, 243, 232, 0.45);
  border: none;
  opacity: 1;
}

.hero-slider .carousel-indicators .active {
  background-color: var(--cream);
  transform: scale(1.2);
}

/* ---------- About / Portrait ---------- */
.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portrait-frame:hover img {
  transform: scale(1.04);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 243, 232, 0.45);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.portrait-accent {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--olive), var(--coffee-brown));
  opacity: 0.18;
  z-index: -1;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
}

.stat-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-block .number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-block .label {
  margin-top: 0.5rem;
  color: var(--muted-text);
  font-weight: 500;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--coffee-brown));
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
    padding-right: 0;
  }
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--coffee-brown);
  box-shadow: 0 0 0 4px rgba(111, 78, 55, 0.15);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -9px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
  }
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--coffee-brown);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Horizontal journey (home) */
.journey-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .journey-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.journey-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.journey-card .step {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--coffee-brown);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ---------- Project Cards ---------- */
.project-card .project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.project-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.85), transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card .card-body {
  padding: 1.5rem;
}

/* ---------- Blog Cards ---------- */
.blog-card .blog-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.06);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
}

.featured-blog {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.featured-blog .featured-image {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark-text);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.25rem;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--cream);
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background: linear-gradient(125deg, var(--deep-green) 0%, var(--primary) 55%, #4a3a2a 100%);
  color: var(--cream);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(166, 123, 91, 0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(107, 125, 78, 0.2), transparent 35%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--cream);
}

.cta-section p {
  color: rgba(247, 243, 232, 0.88);
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
}

.process-step .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-green);
  color: rgba(247, 243, 232, 0.85);
  padding-top: 4.5rem;
}

.site-footer > .container > .row > .col-md-6.col-lg-3 > p,
.site-footer .footer-about-text {
  color: #ffffff;
}

.site-footer h5,
.site-footer h6 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(247, 243, 232, 0.78);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--cream) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 232, 0.2);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--coffee-brown);
  border-color: var(--coffee-brown);
  color: var(--white);
}

.footer-newsletter .form-control {
  background: rgba(247, 243, 232, 0.08);
  border: 1px solid rgba(247, 243, 232, 0.2);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(247, 243, 232, 0.55);
}

.footer-newsletter .form-control:focus {
  background: rgba(247, 243, 232, 0.12);
  border-color: var(--light-coffee);
  box-shadow: none;
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 232, 0.12);
  margin-top: 3rem;
  padding: 1.35rem 0;
  font-size: 0.9rem;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  background: var(--white);
  color: var(--dark-text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 0.2rem rgba(49, 87, 44, 0.15);
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-green);
}

.form-premium {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ---------- Contact Info Cards ---------- */
.contact-info-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.contact-info-card .icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(49, 87, 44, 0.12), rgba(111, 78, 55, 0.12));
  color: var(--primary);
  font-size: 1.6rem;
}

/* ---------- Blog Article ---------- */
.article-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
  }
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
}

.article-content blockquote {
  border-left: 4px solid var(--coffee-brown);
  background: var(--light-beige);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--deep-green);
}

.article-content pre,
.article-content .code-block {
  background: var(--deep-green);
  color: var(--cream);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-content .info-box {
  background: rgba(49, 87, 44, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.article-sidebar .sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.article-sidebar h5 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.55rem;
}

.toc-list a {
  color: var(--muted-text);
  font-size: 0.92rem;
}

.toc-list a:hover {
  color: var(--primary);
}

.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.author-box img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.share-buttons a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-beige);
  color: var(--deep-green);
  margin-right: 0.4rem;
  transition: all var(--transition);
}

.share-buttons a:hover {
  background: var(--primary);
  color: var(--cream);
}

.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--muted-text);
}

.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--primary);
}

/* ---------- Accordion ---------- */
.accordion-premium .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.accordion-premium .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-green);
  background: var(--white);
  box-shadow: none;
}

.accordion-premium .accordion-button:not(.collapsed) {
  background: var(--light-beige);
  color: var(--primary);
}

.accordion-premium .accordion-button:focus {
  box-shadow: none;
  border-color: var(--border);
}

.accordion-premium .accordion-button::after {
  filter: none;
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  background:
    linear-gradient(135deg, rgba(49, 87, 44, 0.75), rgba(111, 78, 55, 0.55)),
    url("https://images.unsplash.com/photo-1447933601403-0c839bd26d0f?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  border-radius: 999px !important;
  margin: 0 0.2rem;
  border: 1px solid var(--border);
  color: var(--deep-green);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

.pagination .page-link:hover {
  background: var(--light-beige);
  color: var(--primary);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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; }

/* ---------- Utility ---------- */
.divider-coffee {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--coffee-brown));
  border-radius: 999px;
  margin: 1rem 0 1.5rem;
}

.divider-coffee.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.list-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list-features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.list-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coffee-brown);
}

.service-card-lg .card-icon {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
}

.vision-panel {
  background:
    linear-gradient(120deg, rgba(27, 67, 50, 0.9), rgba(111, 78, 55, 0.7)),
    url("https://images.unsplash.com/photo-1447933601403-0c839bd26d0f?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  color: var(--cream);
}

.vision-panel h2,
.vision-panel p {
  color: var(--cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.85rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link {
    padding: 0.85rem 0.5rem !important;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }

  .top-bar {
    text-align: center;
  }

  .top-bar .social-links {
    margin-top: 0.35rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-content .d-flex.gap-3 {
    flex-direction: column;
  }

  .form-premium {
    padding: 1.35rem;
  }

  .cta-section .d-flex.gap-3 {
    flex-direction: column;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Contact form loader + result popup ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 67, 50, 0.55);
  backdrop-filter: blur(4px);
}

.page-loader.d-none {
  display: none !important;
}

.page-loader-inner {
  text-align: center;
  padding: 1.5rem 2rem;
}

.page-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.28em;
  color: var(--cream) !important;
}

body.contact-loading {
  overflow: hidden;
}

#contactSubmitBtn .btn-loader {
  display: inline-flex;
  align-items: center;
}

.contact-result-modal {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.contact-result-icon.success {
  background: rgba(49, 87, 44, 0.12);
  color: var(--primary);
}

.contact-result-icon.error {
  background: rgba(111, 78, 55, 0.14);
  color: var(--coffee-brown);
}

