/* =========
   Core theme
   ========= */
:root {
  --afpc-orange: #f28c2f;
  --afpc-orange-soft: #ffb45b;
  --afpc-cream: #fff9f1;
  --afpc-cream-soft: #fff3e0;
  --afpc-text-dark: #212121;
  --afpc-text-soft: #555555;
  --afpc-border-soft: #e3ded7;
  --afpc-max-width: 1120px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(242, 140, 47, 0.15), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 165, 89, 0.2), transparent 60%),
    var(--afpc-cream);
  color: var(--afpc-text-dark);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.afpc-container {
  width: 100%;
  max-width: var(--afpc-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========
   Header + nav
   ========= */

.afpc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 140, 47, 0.25);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.afpc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.6rem 0;
}

.afpc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.afpc-logo-main {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--afpc-orange);
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.afpc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.afpc-brand-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--afpc-text-dark);
}

.afpc-brand-subtitle {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--afpc-text-soft);
}

/* nav toggle used by scripts.js */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--afpc-text-dark);
  border-radius: 999px;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* .site-nav is also used by scripts.js */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-bottom: 0.25rem;
  position: relative;
  color: var(--afpc-text-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--afpc-orange),
    var(--afpc-orange-soft)
  );
  transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--afpc-text-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* =========
   Buttons
   ========= */

.afpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.afpc-btn-primary {
  background: linear-gradient(
    135deg,
    var(--afpc-orange),
    var(--afpc-orange-soft)
  );
  color: #2b2114;
  box-shadow: 0 12px 24px rgba(242, 140, 47, 0.45);
  border-color: var(--afpc-orange);
}

.afpc-btn-primary:hover,
.afpc-btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(242, 140, 47, 0.65);
}

.afpc-btn-outline {
  background: #ffffff;
  border-color: var(--afpc-border-soft);
  color: var(--afpc-text-soft);
}

.afpc-btn-outline:hover,
.afpc-btn-outline:focus-visible {
  border-color: var(--afpc-orange);
  color: var(--afpc-text-dark);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* =========
   Hero
   ========= */

.afpc-hero {
  padding: 2.8rem 0 2.2rem;
}

.afpc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  align-items: center;
}

.afpc-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8c8272;
  margin-bottom: 0.5rem;
}

.afpc-hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #202020;
}

.afpc-hero-tagline {
  margin: 0 0 1.5rem;
  color: var(--afpc-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.afpc-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.afpc-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 140, 47, 0.35);
  background: rgba(255, 244, 228, 0.9);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c5a13;
}

.afpc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* =========
   Slider base (used by hero + reviews + scripts.js)
   ========= */

.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  position: relative;
}

.slide {
  display: none;
  position: relative;
}

.slide.is-active {
  display: block;
}

/* Hero slider shell */

.afpc-hero-slider-wrapper {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 0.9rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(242, 140, 47, 0.2);
}

.afpc-slider {
  border-radius: 1.2rem;
}

.afpc-hero-slide {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 1.2rem;
}

/* Slider arrows + dots */

.afpc-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(242, 140, 47, 0.75);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #9b5b0f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.afpc-slider-control[data-slider-prev] {
  left: 0.75rem;
}

.afpc-slider-control[data-slider-next] {
  right: 0.75rem;
}

.afpc-slider-control:hover,
.afpc-slider-control:focus-visible {
  background: var(--afpc-orange-soft);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.afpc-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}

.afpc-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(160, 120, 70, 0.6);
  background: rgba(255, 255, 255, 0.8);
  padding: 0;
  cursor: pointer;
}

.afpc-slider-dots button.is-active {
  background: var(--afpc-orange);
  border-color: var(--afpc-orange);
}

/* =========
   Generic sections + cards
   ========= */

.afpc-section {
  padding: 3rem 0;
}

.afpc-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
/* Big page titles (Services, About, Contact intro) */
.afpc-page-title {
  position: relative;
  display: inline-block;
  margin: 0 0 1.1rem;
  padding-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--afpc-text-dark);
}

.afpc-page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--afpc-orange),
    var(--afpc-orange-soft)
  );
}

/* Updated: more professional headings */
.afpc-section-header h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--afpc-text-dark);
}

.afpc-section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--afpc-orange),
    var(--afpc-orange-soft)
  );
}

.afpc-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--afpc-text-soft);
}

.afpc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.afpc-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.2rem 1rem;
  border: 1px solid var(--afpc-border-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.afpc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--afpc-orange-soft),
    var(--afpc-orange)
  );
}

.afpc-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #303030;
}

.afpc-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--afpc-text-soft);
}

/* =========
   Special sections
   ========= */

.afpc-section-why {
  background: #ffffff;
  border-top: 1px solid rgba(227, 222, 215, 0.9);
  border-bottom: 1px solid rgba(227, 222, 215, 0.9);
}

.afpc-section-reviews {
  background: var(--afpc-cream-soft);
}

/* =========
   Reviews slider (bottom section)
   ========= */

.afpc-reviews-layout {
  max-width: 760px;
  margin: 0 auto;
}

.afpc-reviews-slider {
  margin-top: 1.5rem;
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.5rem 1.4rem 1.7rem;
  border: 1px solid var(--afpc-border-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.afpc-review-slide .review-text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.6rem;
  color: var(--afpc-text-dark);
}

.afpc-review-slide .review-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #a16b1e;
  font-weight: 600;
}

.afpc-stars {
  color: #f2a13b;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* =========
   About page layout
   ========= */

.afpc-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.afpc-about-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--afpc-text-soft);
}

.afpc-about-list {
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--afpc-text-soft);
}

.afpc-about-list li {
  margin-bottom: 0.35rem;
}

.afpc-about-highlight {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--afpc-border-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.afpc-about-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.afpc-owner-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: center;
}

.afpc-owner-photo-wrap {
  flex: 0 0 auto;
  max-width: 260px;
  text-align: center;
}

.afpc-owner-photo {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 3px solid rgba(242, 140, 47, 0.9);
}

.afpc-owner-name {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afpc-owner-title {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--afpc-text-soft);
}

.afpc-owner-text {
  flex: 1 1 260px;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--afpc-text-soft);
}

/* =========
   Contact page layout
   ========= */

.afpc-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.afpc-contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.afpc-contact-details h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.afpc-contact-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--afpc-text-soft);
}

.afpc-contact-card {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--afpc-border-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
}

.afpc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.afpc-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.afpc-form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.afpc-form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--afpc-text-soft);
}

.afpc-form-label span {
  color: var(--afpc-orange);
  margin-left: 0.1rem;
}

.afpc-input,
.afpc-textarea,
.afpc-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--afpc-border-soft);
  font: inherit;
  color: var(--afpc-text-dark);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.afpc-textarea {
  min-height: 130px;
  resize: vertical;
}

.afpc-input:focus-visible,
.afpc-textarea:focus-visible,
.afpc-select:focus-visible {
  border-color: var(--afpc-orange);
  box-shadow: 0 0 0 1px rgba(242, 140, 47, 0.4);
}

.afpc-form-note {
  font-size: 0.78rem;
  color: var(--afpc-text-soft);
  margin: 0.3rem 0 0;
}

/* =========
   Footer
   ========= */

.afpc-footer {
  background: #fdf7ee;
  border-top: 1px solid var(--afpc-border-soft);
  padding: 1rem 0 1.5rem;
  font-size: 0.8rem;
  color: #7a7266;
}

.afpc-footer-inner {
  text-align: center;
}

/* =========
   Responsive
   ========= */

@media (max-width: 900px) {
  .afpc-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .afpc-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .afpc-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .afpc-contact-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(242, 140, 47, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem 0.9rem;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .afpc-hero {
    padding-top: 2.1rem;
  }

  .afpc-hero-slider-wrapper {
    max-width: 480px;
    margin-inline: auto;
  }

  .afpc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .afpc-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .afpc-hero-title {
    font-size: 1.8rem;
  }

  .afpc-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .afpc-hero-slide {
    height: 220px;
  }
}
