/* ===== base ===== */
html { scroll-behavior: smooth; }

/* ===== nav ===== */
#nav { background: transparent; }
#nav.scrolled {
  background: rgba(15, 32, 39, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-text { color: #F6F5F1; }
.nav-link { position: relative; opacity: 0.8; transition: opacity .2s; }
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: #C08A3E; transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

/* ===== eyebrow label ===== */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #12262C; opacity: 0.55; font-weight: 600;
}

/* ===== blueprint grid backdrop ===== */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(246,245,241,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,245,241,.6) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== hero viewfinder ===== */
.viewfinder { box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.corner {
  position: absolute; width: 26px; height: 26px;
  border-color: #DDAE5F; opacity: 0.9;
}
.corner-tl { top: 16px; left: 16px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: 16px; right: 16px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: 16px; left: 16px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: 16px; right: 16px; border-bottom: 2px solid; border-right: 2px solid; }

.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #DDAE5F, transparent);
  animation: scan 3.5s ease-in-out infinite;
  box-shadow: 0 0 12px 1px rgba(221,174,95,0.6);
}
@keyframes scan {
  0%   { top: 8%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

/* ===== hero entrance animation (pure CSS, no JS required) ===== */
/* IMPORTANT: default state (before this file loads, or if it fails) is
   full opacity — content is only ever animated IN, never hidden by default. */
.reveal-up {
  animation: revealUp .8s cubic-bezier(.16,.8,.3,1) both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up { animation: none; }
}

/* ===== service cards ===== */
.service-card {
  background: #fff;
  border: 1px solid #D8D4C8;
  border-radius: 18px;
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,32,39,0.15); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(27,75,90,0.08); color: #1B4B5A;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-item { position: relative; padding-left: 20px; }
.feature-item::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: #C08A3E;
}
.learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13.5px; font-weight: 500;
  color: #1B4B5A; border-top: 1px solid #D8D4C8; padding-top: 16px; width: 100%;
}
.service-card:hover .learn-more { color: #C08A3E; }

/* ===== case cards ===== */
.case-card {
  background: #fff; border: 1px solid #D8D4C8; border-radius: 20px; padding: 28px;
}
.tag {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  background: #12262C; color: #F6F5F1; padding: 5px 12px; border-radius: 999px;
}
.tech-tag {
  font-size: 12px; color: rgba(15,38,44,0.55); background: #F6F5F1;
  border: 1px solid #D8D4C8; padding: 4px 12px; border-radius: 999px;
}

/* ===== process timeline ===== */
.timeline-item {
  display: flex; gap: 28px;
  padding-bottom: 48px; margin-left: 10px; padding-left: 34px;
  border-left: 2px solid #D8D4C8; position: relative;
}
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: #C08A3E;
  border: 3px solid #F6F5F1;
}
.timeline-last { border-left: 2px solid transparent; padding-bottom: 0; }
.timeline-num {
  font-family: 'Fraunces', serif; font-size: 15px; color: rgba(15,38,44,0.3);
  flex-shrink: 0; display: none;
}
@media (min-width: 768px) {
  .timeline-num { display: block; width: 40px; }
}

/* ===== testimonials ===== */
.testimonial-card {
  background: #fff; border: 1px solid #D8D4C8; border-radius: 18px; padding: 30px;
}

/* ===== process ===== */
.process-step { padding: 28px 24px; border-left: 2px solid #D8D4C8; }
.process-num { font-family: 'Fraunces', serif; font-size: 28px; color: #C08A3E; margin-bottom: 14px; }

/* ===== range input ===== */
.range-input {
  -webkit-appearance: none; width: 100%; height: 4px; border-radius: 999px;
  background: rgba(246,245,241,0.2); outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #DDAE5F; cursor: pointer; border: 3px solid #0F2027;
}
.range-input::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #DDAE5F; cursor: pointer; border: 3px solid #0F2027;
}

/* ===== services page ===== */
.pill {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(246,245,241,0.2); color: #F6F5F1; opacity: 0.85;
  transition: opacity .2s, border-color .2s;
}
.pill:hover { opacity: 1; border-color: #DDAE5F; }

.service-section { padding: 88px 0; }
.service-num {
  font-family: 'Fraunces', serif; font-size: 15px; color: #C08A3E;
  letter-spacing: .08em; margin-bottom: 18px;
}
.service-section .feature-item { color: rgba(15,38,44,0.75); font-size: 14px; }

.stat-panel {
  background: #fff; border: 1px solid #D8D4C8; border-radius: 20px; padding: 8px 28px;
}
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid #D8D4C8; font-size: 14px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: rgba(15,38,44,0.55); }
.stat-row strong { font-family: 'Fraunces', serif; font-weight: 500; color: #12262C; }

.cta-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  color: #1B4B5A; border-bottom: 1px solid #1B4B5A; padding-bottom: 3px;
}
.cta-link span { transition: transform .2s; }
.cta-link:hover span { transform: translateX(4px); }

/* ===== contact page ===== */
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(221,174,95,0.12); color: #DDAE5F;
  display: flex; align-items: center; justify-content: center;
}
.form-label { display: block; font-size: 13px; font-weight: 500; color: rgba(15,38,44,0.6); margin-bottom: 7px; }
.form-input {
  width: 100%; border: 1px solid #D8D4C8; border-radius: 10px;
  padding: 12px 14px; font-size: 14.5px; background: #fff; color: #0F2027;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: #1B4B5A; }
textarea.form-input { resize: vertical; }

/* ===== faq ===== */
.faq-item { background: #fff; border: 1px solid #D8D4C8; border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; text-align: left; font-weight: 500; font-size: 15px;
}
.faq-icon { transition: transform .25s ease; color: #C08A3E; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px; font-size: 14px; color: rgba(15,38,44,0.65); line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 22px; }

/* ===== WhatsApp floating button ===== */
#whatsappFloat {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 65;
  transition: transform .2s ease;
}
#whatsappFloat:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  #whatsappFloat { width: 50px; height: 50px; bottom: 16px; left: 16px; }
}

/* ===== blog ===== */
.blog-card {
  display: block; background: #fff; border: 1px solid #D8D4C8; border-radius: 18px;
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,32,39,0.15); }
.article-content h2 { font-family: 'Fraunces', serif; font-size: 24px; margin: 36px 0 14px; font-weight: 500; color: #0F2027; }
.article-content p { margin-bottom: 16px; line-height: 1.75; color: rgba(15,38,44,0.75); }
.article-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; color: rgba(15,38,44,0.75); }
.article-content strong { color: #0F2027; }
