/* ==========================================================================
   KendroTec - Landing Page (Dark Mode)
   Design system: 60-30-10 (deep grays / light grays / orange accent)
   ========================================================================== */

:root {
  --bg-main: #121214;
  --bg-surface: #1e1e22;
  --text-primary: #f5f5f7;
  --text-secondary: #9e9ea7;
  --border-subtle: #2d2d34;
  --orange-primary: #ff6b35;
  --orange-hover: #e85d22;
  --orange-muted: rgba(255, 107, 53, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--orange-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-secondary);
}

::selection {
  background: var(--orange-primary);
  color: var(--bg-main);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--orange-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  transform: translateY(-2px);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(18, 18, 20, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.brand img {
  height: 36px;
  width: auto;
}

.brand:hover {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-menu a:hover {
  color: var(--orange-primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: var(--transition-smooth);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 107, 53, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(255, 107, 53, 0.10) 0%, transparent 50%);
  z-index: -1;
}

.hero-inner {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary);
  background: var(--orange-muted);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 999px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--orange-primary);
}

.hero p.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--orange-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Services / Packages ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--orange-primary);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--orange-muted);
  color: var(--orange-primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-icon {
  background: var(--orange-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange-primary);
}

.service-card .card-link svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-smooth);
}

.service-card:hover .card-link svg {
  transform: translateX(4px);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 107, 53, 0.4);
}

.faq-item.is-open {
  border-color: var(--orange-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--orange-primary);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  color: var(--orange-primary);
  transition: var(--transition-smooth);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px var(--orange-muted);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%239e9ea7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 8px;
  width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px;
  background: var(--bg-main);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--orange-primary);
}

.footer-divider {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .section {
    padding: 80px 0;
  }

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

  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80%, 320px);
    background: rgba(18, 18, 20, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-menu a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 70px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-wrapper {
    padding: 28px 22px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-nav {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .service-card {
    padding: 28px 24px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.98rem;
  }

  .faq-answer-inner {
    padding: 0 20px 18px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
