/* ================================================
   Bettercuts Landscaping — Custom Styles
   Supplements Tailwind CSS v3 CDN utilities
   ================================================ */

/* ---------- Google Fonts (Moved to HTML head) ---------- */
/* ---------- CSS Custom Properties ---------- */
:root {
  --slate-dark: #1F2937;
  --primary-blue: #1D4A38;
  --secondary-blue: #8DC63F;
  --light-gray: #F3F4F6;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Resets ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* ---------- Utility Bar ---------- */
.utility-bar {
  background: var(--slate-dark);
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.utility-bar a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

.utility-bar a:hover {
  color: #7DD3FC;
}

/* ---------- Navigation ---------- */
.nav-main {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition-base);
}

.nav-main.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  color: var(--slate-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Mobile Menu ---------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-menu .nav-link::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--slate-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, #111827 60%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
}

.btn-primary:hover {
  background: #0284C7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary-blue);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
}

.btn-outline-green:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.3);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 105, 161, 0.15);
}

/* ---------- Trust Badge ---------- */
.trust-badge {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-badge .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  background: linear-gradient(145deg, #E5E7EB 0%, #D1D5DB 50%, #E5E7EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.3) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.img-placeholder.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.img-placeholder.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.img-placeholder.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Outfit', serif;
  font-size: 4rem;
  color: var(--secondary-blue);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.star-rating {
  color: #FBBF24;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

/* ---------- Portfolio Filter ---------- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid #E5E7EB;
  background: transparent;
  color: #6B7280;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

/* ---------- Before/After Badge ---------- */
.ba-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  z-index: 2;
}

/* ---------- Service Cards ---------- */
.service-section {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.service-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* ---------- Service Area Card ---------- */
.area-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.area-card:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--slate-dark);
  background: var(--white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-dark);
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  background: linear-gradient(145deg, #E5E7EB, #D1D5DB);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  min-height: 350px;
  border: 2px dashed #D1D5DB;
}

/* ---------- Section Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Hero Banners ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.06) 100%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-dark);
  color: #D1D5DB;
}

.footer a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--secondary-blue);
}

.footer-heading {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 30;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #0284C7;
  transform: translateY(-3px);
}

/* ---------- Green Divider ---------- */
.divider-green {
  width: 60px;
  height: 4px;
  background: var(--secondary-blue);
  border-radius: 2px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .hero::before,
  .hero::after {
    display: none;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .nav-main,
  .utility-bar,
  .mobile-menu,
  .mobile-overlay,
  .scroll-top {
    display: none !important;
  }
}

/* ---------- Floating Call Button ---------- */
.floating-call-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.4);
  z-index: 40;
  transition: all var(--transition-base);
  text-decoration: none;
}
.floating-call-btn:hover {
  background: #0284C7;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.5);
  color: var(--white);
}
.floating-call-btn svg {
  width: 24px;
  height: 24px;
}

/* ---------- Tailwind Utility Overrides ---------- */
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.text-primary-blue { color: var(--primary-blue) !important; }
.bg-secondary-blue { background-color: var(--secondary-blue) !important; }
.text-secondary-blue { color: var(--secondary-blue) !important; }
.border-primary-blue { border-color: var(--primary-blue) !important; }
.border-secondary-blue { border-color: var(--secondary-blue) !important; }
.hover\:text-primary-blue:hover { color: var(--primary-blue) !important; }
.hover\:bg-primary-blue:hover { background-color: var(--primary-blue) !important; }

/* ---------- White Button Utility ---------- */
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white) !important;
  color: var(--primary-blue) !important;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background: var(--light-gray) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-white:active {
  transform: translateY(0);
}

/* ---------- Navigation Logo Hang ---------- */
.nav-logo-link {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 50;
}

.nav-logo-img {
  height: 85px; /* smaller on mobile */
  width: auto;
  max-width: none;
  background: var(--white);
  padding: 6px 6px 8px 6px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: none;
  transition: all var(--transition-base);
}

@media (min-width: 1024px) {
  .nav-logo-img {
    height: 110px; /* larger on desktop */
    padding: 8px 8px 12px 8px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}

.nav-main.scrolled .nav-logo-img {
  height: 75px;
  padding: 4px 4px 6px 4px;
}

@media (min-width: 1024px) {
  .nav-main.scrolled .nav-logo-img {
    height: 90px;
    padding: 6px 6px 10px 6px;
  }
}
