/* ===================================
   J&J Digital — Services & Pricing
   Uses same CSS variables as styles.css
   =================================== */

:root {
  --green-dark: #2C5F2D;
  --green-mid:   #4A7C4E;
  --green-light: #7BA87B;
  --earth-dark:  #3D2B1F;
  --earth-mid:   #6B4F3A;
  --cream:       #F5F0E8;
  --white:       #FFFFFF;
  --stone:       #D4C4A8;
  --stone-light: #EDE8DE;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  background: var(--cream);
  line-height: 1.6;
}

/* ===== NAVBAR (shared styles on layout-level via CSS cascade) ===== */
.navbar {
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--earth-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--green-mid); }
.navbar-links a.active { color: var(--green-dark); font-weight: 700; }

.navbar-phone {
  background: var(--green-dark);
  color: white;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.navbar-phone:hover { background: var(--green-mid); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar { padding: 1rem 1.25rem; }
}

/* ===== HERO ===== */
.services-hero {
  background: var(--green-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.services-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.services-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== SECTION SETUP ===== */
.section { padding: 5rem 2rem; }

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ===== RECURRING TIERS ===== */
.tiers-section { background: var(--white); }

.tiers-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.tiers-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--earth-dark);
  margin-bottom: 0.75rem;
}

.tiers-header p { color: #777; font-size: 1.05rem; line-height: 1.7; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tier-card {
  background: var(--cream);
  border: 2px solid var(--stone-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,95,45,0.15);
}

.tier-card.featured {
  border-color: var(--green-dark);
  background: var(--white);
}

.tier-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.tier-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--earth-dark);
  margin-bottom: 0.35rem;
}

.tier-tagline {
  color: var(--green-mid);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.price-period {
  color: #888;
  font-size: 1rem;
  font-weight: 400;
}

.tier-note {
  color: #888;
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.tier-divider {
  border: none;
  border-top: 1px solid var(--stone-light);
  margin-bottom: 1.5rem;
}

.tier-features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #555;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  line-height: 1.45;
}

.tier-features li .check {
  color: var(--green-mid);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tier-cta {
  display: block;
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-top: auto;
}

.tier-cta-primary {
  background: var(--green-dark);
  color: white;
}

.tier-cta-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.tier-cta-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.tier-cta-outline:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .tiers-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ===== ONE-TIME BUILD PACKAGES ===== */
.build-section { background: var(--stone-light); }

.build-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.build-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--earth-dark);
  margin-bottom: 0.75rem;
}

.build-header p { color: #777; font-size: 1.05rem; line-height: 1.7; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.build-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--stone-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.build-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,95,45,0.12);
}

.build-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.build-card h3 {
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.build-card .build-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.build-price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.build-price-tag .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.build-price-tag .one-time {
  color: #888;
  font-size: 0.9rem;
}

.build-includes {
  list-style: none;
  margin-bottom: 2rem;
}

.build-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #555;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}

.build-includes li .check {
  color: var(--green-mid);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.build-cta {
  display: block;
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--green-dark);
  color: white;
  transition: background 0.2s, transform 0.15s;
}

.build-cta:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .build-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ===== PRICING TABLE ===== */
.pricing-table-section { background: var(--white); }

.pricing-table-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.pricing-table-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--earth-dark);
  margin-bottom: 0.75rem;
}

.pricing-table-header p { color: #777; font-size: 1.05rem; line-height: 1.7; }

.pricing-table-wrap {
  overflow-x: auto;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table th {
  background: var(--green-dark);
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-table th:not(:first-child) {
  text-align: center;
}

.pricing-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--stone-light);
  font-size: 0.9rem;
  color: #555;
  vertical-align: middle;
}

.pricing-table td:not(:first-child) {
  text-align: center;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table tr:nth-child(even) td { background: var(--white); }

.pricing-table .feature-name {
  color: var(--earth-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-table .check-cell { color: var(--green-mid); font-size: 1.1rem; }
.pricing-table .dash-cell { color: #bbb; }

.pricing-table .table-tier-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ===== FAQ ===== */
.faq-section { background: var(--cream); }

.faq-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.faq-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--earth-dark);
  margin-bottom: 0.75rem;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--green-mid);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--earth-dark);
  font-size: 0.97rem;
  gap: 1rem;
  user-select: none;
}

.faq-question:hover { color: var(--green-dark); }

.faq-toggle {
  font-size: 1.25rem;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: #666;
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== BOTTOM CTA ===== */
.services-cta {
  background: var(--green-dark);
  padding: 5rem 2rem;
  text-align: center;
}

.services-cta h2 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.services-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-cta-primary {
  background: white;
  color: var(--green-dark);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta-primary:hover {
  background: var(--stone-light);
  transform: translateY(-1px);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

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

.cta-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--earth-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

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

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .section { padding: 3.5rem 1.25rem; }
  .services-hero { padding: 3.5rem 1.25rem 3rem; }
  .services-cta { padding: 3.5rem 1.25rem; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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