/* ============================================
   Kryndel Inc — Corporate Website Styles
   Theme inspired by Staybari template palette
   ============================================ */

:root {
  --primary-color: #252525;
  --secondary-color: #52614e;
  --brand-color: #52614e;
  --btn-color: #6e7c6b;
  --dark: #161616;
  --light: #ffffff;
  --sub-title: #d5e5d1;
  --light-color: #f3f8f1;
  --body-text: #a8a8a8;
  --heading-font: "Playfair Display", serif;
  --body-font: "Open Sans", sans-serif;
  --transition: 0.4s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  background: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--light);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 100px 0;
}

.section-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sub-title);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--body-text);
  margin-bottom: 16px;
}

.text-accent {
  color: var(--sub-title);
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--sub-title);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header .navbar {
  padding: 18px 0;
  background: var(--secondary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .navbar {
  background: var(--primary-color);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--sub-title);
}

.brand-text {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
}

.brand-text em {
  font-style: italic;
  color: var(--sub-title);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.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, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  font-family: var(--heading-font);
  font-size: 15px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 8px 16px !important;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--sub-title) !important;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--sub-title);
}

.header-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.header-phone i {
  color: var(--sub-title);
  margin-right: 6px;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: var(--light);
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--btn-color);
  border-color: var(--btn-color);
  color: var(--light);
}

.btn-outline-light {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--light);
  color: var(--primary-color);
  border-color: var(--light);
}

.btn-outline-primary {
  color: var(--sub-title);
  border-color: var(--brand-color);
  border-radius: 0;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 20px;
}

.btn-outline-primary:hover {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: var(--light);
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.92) 0%, rgba(82, 97, 78, 0.75) 100%);
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--light);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions .btn {
  margin-bottom: 12px;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(213, 229, 209, 0.2);
  padding: 36px;
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light);
}

.stat-suffix {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--sub-title);
}

.stat-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: var(--sub-title);
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Fade-up animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ---- About ---- */
.about-section {
  background: var(--primary-color);
}

.about-images {
  position: relative;
  padding-right: 40px;
  padding-bottom: 40px;
}

.about-img-main {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border: 4px solid var(--primary-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-img-secondary img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 30px;
  right: -10px;
  background: var(--brand-color);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.badge-number {
  display: block;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  color: var(--sub-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.about-features li i {
  color: var(--sub-title);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Services ---- */
.services-section {
  background: var(--dark);
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(213, 229, 209, 0.12);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: rgba(82, 97, 78, 0.15);
  border-color: rgba(213, 229, 209, 0.25);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(82, 97, 78, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--sub-title);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--brand-color);
  color: var(--light);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 15px;
  margin-bottom: 20px;
}

.service-link {
  color: var(--sub-title);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-link i {
  transition: transform 0.3s;
}

.service-link:hover {
  color: var(--light);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* ---- Products ---- */
.products-section {
  background: var(--primary-color);
}

.product-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(213, 229, 209, 0.2);
}

.product-img {
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--brand-color);
  color: var(--light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  font-weight: 600;
}

.product-body {
  padding: 24px;
}

.product-body h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.product-body > p {
  font-size: 14px;
  margin-bottom: 16px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.product-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0 4px 18px;
  position: relative;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sub-title);
  font-size: 12px;
}

/* ---- Why Us ---- */
.why-section {
  background: var(--dark);
}

.why-features {
  margin-top: 32px;
}

.why-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.why-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(82, 97, 78, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--sub-title);
}

.why-item h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 14px;
  margin: 0;
}

.why-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.why-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.why-counter-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--brand-color);
  padding: 24px 32px;
  text-align: center;
}

.why-counter-card .counter-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  color: var(--light);
}

.why-counter-card span:not(.counter-number) {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--sub-title);
}

.why-counter-card p {
  font-size: 13px;
  color: var(--sub-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 0;
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: var(--primary-color);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(213, 229, 209, 0.1);
  padding: 32px;
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(213, 229, 209, 0.25);
  background: rgba(82, 97, 78, 0.1);
}

.stars {
  color: #c9a84c;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.testimonial-card > p {
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--light);
  font-size: 14px;
}

.testimonial-author h6 {
  font-size: 15px;
  margin: 0;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--body-text);
}

/* ---- Tech Banner ---- */
.tech-banner {
  background: var(--brand-color);
  padding: 20px 0;
  overflow: hidden;
}

.tech-scroll {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scrollTech 30s linear infinite;
}

.tech-scroll span {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-shrink: 0;
}

@keyframes scrollTech {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Contact ---- */
.contact-section {
  background: var(--dark);
}

.contact-info-list {
  margin-top: 36px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(82, 97, 78, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--sub-title);
}

.contact-info-item h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sub-title);
  margin-bottom: 4px;
}

.contact-info-item a {
  color: var(--light);
  font-size: 16px;
}

.contact-info-item a:hover {
  color: var(--sub-title);
}

.contact-info-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(213, 229, 209, 0.12);
  padding: 40px;
}

.contact-form .form-label {
  color: var(--sub-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(213, 229, 209, 0.2);
  color: var(--light);
  border-radius: 0;
  padding: 12px 16px;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-color);
  box-shadow: 0 0 0 0.2rem rgba(82, 97, 78, 0.25);
  color: var(--light);
}

.contact-form .form-select option {
  background: var(--primary-color);
  color: var(--light);
}

.contact-form .form-check-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-check-input {
  background-color: transparent;
  border-color: rgba(213, 229, 209, 0.4);
}

.contact-form .form-check-input:checked {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}

.form-success {
  margin-top: 20px;
  padding: 20px;
  background: rgba(82, 97, 78, 0.2);
  border: 1px solid var(--brand-color);
  text-align: center;
}

.form-success i {
  font-size: 32px;
  color: var(--sub-title);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--light);
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-color);
  padding: 70px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: var(--light);
}

.site-footer h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--sub-title);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--sub-title);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i {
  color: var(--sub-title);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 50px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--brand-color);
  border: none;
  color: var(--light);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--btn-color);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .navbar-collapse {
    background: var(--primary-color);
    padding: 20px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-images {
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .about-img-main img {
    height: 320px;
  }

  .why-image-wrap img {
    height: 360px;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .about-badge {
    right: 10px;
    padding: 14px 18px;
  }

  .badge-number {
    font-size: 1.5rem;
  }

  .why-counter-card {
    left: 16px;
    bottom: 16px;
    padding: 16px 24px;
  }

  .why-counter-card .counter-number {
    font-size: 2rem;
  }
}
