*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.75rem; }
html, body { overflow-x: clip; }
::selection { background: #f59929; color: white; }

#topbar {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#navbar {
  top: 2.25rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#navbar.scrolled {
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo { transition: all 0.3s; }
#navbar.scrolled .nav-logo { height: 1.75rem; }

.menu-bar { background: #374151; }

.nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link:hover { color: #f59929; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0.875rem;
  right: 0.875rem;
  height: 1px;
  background: #f59929;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  margin-left: 0.5rem;
  background: #f59929;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s;
}
.nav-link-cta:hover {
  background: #b35c00;
  transform: translateY(-1px);
}

.mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.3s;
}
.mobile-link:hover { color: #f59929; }

.mobile-link-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #f59929;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.3s;
}
.mobile-link-cta:hover { background: #b35c00; }

#mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.menu-open .menu-bar:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-open .menu-bar:nth-child(2) { opacity: 0; }
.menu-open .menu-bar:nth-child(3) { transform: rotate(-45deg) translate(2px, -2px); width: 1.5rem; }

.section-tag {
  display: inline-block;
  color: #f59929;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: #f59929;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: #b35c00;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.05);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.8rem;
  background: #f59929;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: #b35c00;
  transform: translateY(-1px);
}

.svc-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.5s;
}
.svc-card:hover {
  border-color: #fde3b5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.svc-img {
  height: 240px;
  overflow: hidden;
}

.svc-body { padding: 1.5rem 1.75rem 1.75rem; }

.svc-link {
  display: inline-flex;
  align-items: center;
  color: #f59929;
  font-size: 0.8125rem;
  font-weight: 600;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(245, 153, 41, 0.08);
  color: #f59929;
  transition: all 0.3s;
}
.social-icon:hover {
  background: #f59929;
  color: white;
}

.contact-form {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
}

#contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  font-family: 'Figtree', sans-serif;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: #f59929;
  box-shadow: 0 0 0 3px rgba(245, 153, 41, 0.08);
  background: white;
}

#contact-form { max-width: 100%; overflow: hidden; }
#contact-form .g-recaptcha { transform-origin: left center; max-width: 100%; }

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  .nav-link, .nav-link-cta { display: none; }
}

@media (max-width: 640px) {
  .contact-form { padding: 1.5rem; }
  .svc-img { height: 200px; }
  .grid > div { min-width: 0; max-width: 100%; }
}

@media (max-width: 400px) {
  #contact-form .g-recaptcha { transform: scale(0.85); }
}

@media (max-width: 340px) {
  #contact-form .g-recaptcha { transform: scale(0.75); }
}
