/* ============================================================
   Digital Lemons – Static Site Stylesheet
   Brand colors: #fed833 (yellow), #8fb258 (green), #384047 (text)
   Fonts: Oswald (headings) + Montserrat (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --yellow: #fed833;
  --yellow-dark: #e6c020;
  --green: #8fb258;
  --body-text: #384047;
  --dark: #222222;
  --grey-bg: #f5f5f5;
  --white: #ffffff;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--body-text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

a {
  color: var(--body-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--yellow-dark); }

img { max-width: 100%; height: auto; }

/* ---------- Utilities ---------- */
.section-pad { padding: 90px 0; }

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

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.title-line {
  width: 50px;
  height: 3px;
  background: var(--yellow);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-subtitle {
  color: #888;
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 1050;
}

#navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

#navbar .navbar-brand img {
  height: 44px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: filter var(--transition);
}

#navbar .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  position: relative;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-social a:hover { color: var(--yellow); }

/* Hamburger icon color */
.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.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='rgba%28255%2c255%2c255%2c0.8%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(100, 130, 60) 0%, rgb(143, 178, 88) 50%, rgb(120, 155, 70) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 36px;
  font-style: italic;
}

.btn-hero {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--dark);
  border: 2px solid var(--yellow);
  padding: 14px 38px;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-hero:hover {
  background: transparent;
  color: var(--yellow);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-hint a {
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  transition: color var(--transition);
}

.hero-scroll-hint a:hover { color: var(--yellow); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- About ---------- */
.about-img {
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-heading {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-text {
  color: #555;
  margin-bottom: 14px;
}

.feature-box {
  padding: 24px 16px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.feature-box:hover {
  border-color: var(--yellow);
  box-shadow: 0 6px 24px rgba(254,216,51,0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--dark);
}

.feature-box h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 32px 28px;
  height: 100%;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.1);
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--dark);
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--dark);
  color: var(--yellow);
}

.service-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.7;
}

/* ---------- Stats ---------- */
.stats-section {
  background: var(--dark);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(254,216,51,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stat-item {
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Satisfaction bar */
.satisfaction-bar-wrap {
  max-width: 600px;
  margin: 20px auto 0;
  text-align: left;
}

.satisfaction-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.satisfaction-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.satisfaction-fill {
  height: 100%;
  width: 0;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 1.4s ease;
}

.satisfaction-pct {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--yellow);
  font-weight: 600;
  display: block;
  margin-top: 6px;
}

/* ---------- Workflow ---------- */
.workflow-step {
  text-align: center;
  padding: 40px 24px;
  border: 2px solid #eee;
  border-radius: 4px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.workflow-step.active,
.workflow-step:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 28px rgba(254,216,51,0.18);
}

.workflow-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}

.workflow-step:hover .workflow-num { opacity: 1; }

.workflow-step h4 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.workflow-step p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
}

/* Connector lines between steps */
.workflow-row {
  position: relative;
}

@media (min-width: 768px) {
  .workflow-row .col-md-4:not(:last-child) .workflow-step::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--yellow);
    z-index: 1;
  }
}

/* ---------- Clients ---------- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.client-logo {
  flex: 0 0 200px;
  text-align: center;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.client-logo img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- Contact ---------- */
.contact-info { padding-top: 8px; }

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.contact-info-item a:hover { color: var(--yellow-dark); }

.contact-socials { display: flex; gap: 12px; }

.contact-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.contact-socials a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* Contact form */
.contact-form .form-control {
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--body-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(254,216,51,0.18);
  outline: none;
}

.btn-send {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--dark);
  border: 2px solid var(--yellow);
  padding: 13px 36px;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
  width: 100%;
}

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

/* ---------- Footer ---------- */
#footer {
  background: var(--dark);
  padding: 30px 0;
  border-top: 3px solid var(--yellow);
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ---------- Back to Top ---------- */
#back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

#back-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-top:hover {
  transform: translateY(-3px);
  color: var(--dark);
  background: var(--yellow-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  #navbar.scrolled .navbar-collapse,
  #navbar .navbar-collapse.show {
    background: var(--dark);
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  #navbar .nav-link::after { display: none; }

  .nav-social {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-heading { letter-spacing: 1px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .clients-grid { gap: 20px; }
  .client-logo { flex: 0 0 120px; }
}

@media (max-width: 480px) {
  .hero-label { letter-spacing: 3px; }
  .section-title h2 { font-size: 1.7rem; }
}
