/* ============================================================
   Limestone — Construction & Building Agency
   Plain CSS layered on top of Tailwind (CDN). No @apply here
   because the CDN build does not process @apply in external files.
   ============================================================ */

:root {
  --brand: #F5821F;
  --brand-dark: #E06B0A;
  --ink: #2B2E3A;
  --ink-900: #1E2027;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }

/* ---------- Buttons ---------- */
.btn-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 2px;
  transition: all .3s ease; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-brand:hover {
  filter: brightness(.92);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(245, 130, 31, .55);
}
.btn-white {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--ink);
  font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: 1rem 1.75rem; border-radius: 2px;
  transition: all .3s ease; text-decoration: none;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.25); }

/* ---------- Nav ---------- */
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  color: var(--ink); cursor: pointer;
  transition: color .2s ease; text-decoration: none;
}
.nav-link:hover { color: var(--brand); }
.nav-item { position: relative; }

.grid-dot { width: 6px; height: 6px; background: var(--ink); border-radius: 1px; }

/* ---------- Section helpers ---------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand); font-family: 'Poppins', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: .875rem;
  margin-bottom: .75rem;
}
.section-title {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 1.875rem; line-height: 1.12; color: var(--ink);
}
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

/* ---------- Form ---------- */
.form-input {
  width: 100%; background: #f9fafb; border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem; border-radius: 2px; color: var(--ink);
  transition: all .25s ease; font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: #9ca3af; }
.form-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245,130,31,.18);
}

/* ---------- Footer ---------- */
.footer-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 1.125rem; margin-bottom: 1.25rem; }
.footer-link { transition: color .2s ease; text-decoration: none; }
.footer-link:hover { color: var(--brand); }
.social-btn {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; border-radius: 2px;
  transition: background .2s ease; text-decoration: none;
}
.social-btn:hover { background: var(--brand); }

/* ---------- Hero slider ---------- */
.hero-slide { transition: opacity 1s ease-in-out; }
.hero-content > * { opacity: 0; transform: translateY(30px); }
.hero-slide.is-active .hero-content > * { animation: heroIn .8s forwards; }
.hero-slide.is-active .hero-content > *:nth-child(1) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .35s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .5s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .65s; }
.hero-slide.is-active .hero-content > *:nth-child(5) { animation-delay: .8s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-dot {
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6); background: transparent;
  transition: all .3s ease; cursor: pointer; padding: 0;
}
.hero-dot.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px rgba(245,130,31,.35);
  transform: scale(1.3);
}

/* ---------- Progress ring (about) ---------- */
.progress-ring {
  width: 96px; height: 96px; border-radius: 999px;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79% 100%),
    conic-gradient(var(--brand) calc(var(--val) * 1%), #f0f0f0 0);
}

/* ---------- Skill rings ---------- */
.skill-ring {
  width: 64px; height: 64px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ink);
  background:
    radial-gradient(closest-side, #fff 76%, transparent 77% 100%),
    conic-gradient(var(--brand) calc(var(--val, 0) * 1%), #eee 0);
  transition: background .8s ease;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Service card ---------- */
.service-card {
  background: #f6f6f6; padding: 2rem; border-radius: 2px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s ease; z-index: 0;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-more { color: #fff !important; }

/* ---------- Team card ---------- */
.team-card { position: relative; overflow: hidden; border-radius: 2px; background: #fff; }
.team-card img { transition: transform .5s ease; width: 100%; }
.team-card:hover img { transform: scale(1.08); }
.team-social {
  position: absolute; left: 0; right: 0; bottom: 0;
  transform: translateY(100%); opacity: 0;
  display: flex; justify-content: center; gap: .5rem; padding-bottom: 1rem;
  transition: all .3s ease;
}
.team-card:hover .team-social { transform: translateY(0); opacity: 1; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid #e5e7eb; border-radius: 2px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: 1rem 1.25rem; transition: all .3s ease; background: #f9fafb; cursor: pointer; border: none;
}
.faq-item.open .faq-q { background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; color: #6b7280; padding: 0 1.25rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.25rem 1.25rem; }

/* ---------- Blog card ---------- */
.blog-card { background: #fff; border-radius: 2px; overflow: hidden; box-shadow: 0 4px 20px -10px rgba(0,0,0,.12); transition: all .3s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.22); }
.blog-card .blog-img { overflow: hidden; }
.blog-card img { transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.06); }

/* ---------- Header ---------- */
#header.scrolled { box-shadow: 0 4px 20px -8px rgba(0,0,0,.15); }

/* ---------- WhatsApp pulse ---------- */
.animate-pulse-slow { animation: waPulse 2s infinite; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Portfolio filter ---------- */
.filter-btn { background: transparent; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; }
.filter-btn:not(.bg-brand):hover { color: var(--brand); }

.portfolio-item.pf-in { animation: pfIn .5s ease forwards; }
@keyframes pfIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
