/* Tierney Dynamics — custom styles (Tailwind handles layout/utilities) */

:root {
  --brand-navy: #1a2a44;
  --brand-teal: #00c2cb;
  --brand-teal-dark: #00a8b0;
  --brand-slate: #4a5568;
  --surface-muted: #f4f7f8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Honeypot — hidden from users, visible to bots */
.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.nav-scrolled {
  box-shadow: 0 4px 24px rgba(26, 42, 68, 0.08);
}

/* Hero background pattern */
.hero-pattern {
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 194, 203, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 194, 203, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, #1a2a44 0%, #243a5e 50%, #1a2a44 100%);
}

/* Subtle grid overlay on hero */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Service card hover lift */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 42, 68, 0.12);
}

/* Icon badge in service cards */
.service-icon {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-teal));
}

/* Phone input with US prefix */
.phone-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-group:focus-within {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.2);
}

.phone-input-prefix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-flag {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-input-group .phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.phone-input-suffix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: #f9fafb;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.phone-ext-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}

.phone-input-group .phone-ext-input {
  width: 4.75rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.75rem 0.25rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Form focus ring aligned to brand */
.form-input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.2);
}

/* Primary CTA button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 194, 203, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-teal);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* Mobile menu slide */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open-menu {
  max-height: 320px;
  opacity: 1;
}

/* Form status messages */
.form-status {
  transition: opacity 0.3s ease;
}

.form-status.hidden {
  display: none;
}

/* About section accent bar */
.about-accent {
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-navy));
}

/* Footer link hover */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-teal);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .btn-primary,
  .nav-link::after {
    transition: none;
  }
}
