/* ===== ANC Partners LLC - Global Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Honeypot field: must be invisible --- */
input[name="website"] {
  opacity: 0 !important;
  position: fixed !important;
  top: -100vh !important;
  left: -100vw !important;
  height: 0 !important;
  width: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Form error/success: hidden by default --- */
#formError,
#formSuccess {
  display: none !important;
}
#formError.show,
#formSuccess.show {
  display: block !important;
}

:root {
  --green-900: #0c2e1a;
  --green-800: #14472a;
  --green-700: #1a5c38;
  --green-600: #1f7045;
  --green-500: #258552;
  --green-400: #3ba06b;
  --green-300: #6bbf92;
  --green-200: #a3d9ba;
  --green-100: #d4eee0;
  --green-50:  #eef8f2;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--gray-900); }
h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--gray-600); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white) !important;
}
.btn-primary:hover {
  background: var(--green-600);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-700);
}
.btn-outline:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--green-700);
}
.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn svg { width: 18px; height: 18px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-800);
}

.nav-logo svg { height: 36px; width: auto; }
.nav-logo img { height: 36px; width: auto; max-height: 36px; }
.footer-brand .nav-logo img { height: 36px; width: auto; max-height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-600);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
}

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

.nav-cta .btn { padding: 10px 22px; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-600) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--green-900);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-700);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.925rem;
  line-height: 1.65;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-600);
}

.service-card .learn-more:hover { gap: 10px; }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--gray-100);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green-700);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col-text .section-label { text-align: left; }

.two-col-text h2 { margin-bottom: 20px; }

.two-col-text p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.two-col-text ul {
  margin: 20px 0 28px;
}

.two-col-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.two-col-text li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green-600);
  margin-top: 2px;
}

.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col-image-placeholder {
  padding: 48px;
  text-align: center;
}

.two-col-image-placeholder svg {
  width: 120px;
  height: 120px;
  color: var(--green-300);
  margin-bottom: 16px;
}

/* --- Values / Features Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-item {
  text-align: center;
  padding: 24px;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-300);
}

.value-icon svg { width: 24px; height: 24px; }
.value-item h4 { color: var(--white); margin-bottom: 8px; }
.value-item p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}

.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.testimonial-role { font-size: 0.8rem; color: var(--gray-400); }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; }
.cta-banner .cta-btns { display: flex; gap: 14px; justify-content: center; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; font-size: 1rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail h4 { margin-bottom: 4px; }
.contact-detail p { font-size: 0.9rem; }

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(37,133,82,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- Service Detail Page --- */
.service-detail {
  padding: 40px 0 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
}

.service-detail-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-detail-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--green-600);
}

.service-detail-card p {
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-detail-card ul {
  margin-top: 12px;
}

.service-detail-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.service-detail-card li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--green-500);
  margin-top: 3px;
}

/* --- About Page --- */
.about-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  text-align: center;
}

.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--green-600);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.approach-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.approach-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.approach-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: 1.125rem;
}

.approach-item h4 { margin-bottom: 8px; }
.approach-item p { font-size: 0.875rem; }

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-400);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--green-400); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open .nav-cta { width: 100%; }
  .nav-links.open .nav-cta .btn { width: 100%; justify-content: center; }

  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-image { order: -1; }

  .services-grid,
  .testimonials-grid,
  .values-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: 1fr; margin-top: -30px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 24px 20px; }
  .stat-item:last-child { border-bottom: none; }

  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner .cta-btns { flex-direction: column; align-items: center; }
}
