/*
 * Pages CSS
 * Styles for static page templates (Wholesale, About, Contact, FAQ)
 *
 * Uses design tokens defined in variables.css
 */

/* ==========================================================================
   Page Layout & Wrappers
   ========================================================================== */

.page-wrapper {
  padding-top: var(--header-height, 72px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-section {
  padding: var(--space-16) 0;
  position: relative;
}

@media (min-width: 1024px) {
  .page-section {
    padding: var(--space-24) 0;
  }
}

.page-section--darker {
  background: var(--gradient-dark);
}
html.light .page-section--darker {
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.10), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f5f7f4 100%);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.page-section--glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  height: 80%;
  background: var(--glow-xl);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.page-section__inner {
  position: relative;
  z-index: 1;
}

.page-section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.page-section__title {
  color: var(--text);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: var(--text-h2);
  font-weight: 700;
}

.page-section__text {
  color: var(--text-secondary);
  font-size: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

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

.page-hero {
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--gradient-dark);
}
html.light .page-hero {
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.10), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f5f7f4 100%);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-green), transparent);
  opacity: 0.3;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero__eyebrow {
  display: inline-block;
  color: var(--color-green);
  font-size: var(--text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(8, 159, 0, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(8, 159, 0, 0.2);
}

.page-hero__title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-hero__title span {
  color: var(--color-green);
  text-shadow: var(--glow-text);
}

.page-hero__text {
  font-size: var(--text-h5);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 300ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  border-color: rgba(8, 159, 0, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  background: var(--surface-2);
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(8, 159, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-green);
}

.info-card__title {
  color: var(--text);
  font-size: var(--text-h4);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.info-card__text {
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
  
  /* Connecting line between steps */
  .process-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

.process-card {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-card__number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-green);
  margin: 0 auto var(--space-6);
  transition: all 300ms ease;
}

.process-card:hover .process-card__number {
  border-color: var(--color-green);
  box-shadow: var(--glow-sm);
  background: rgba(8, 159, 0, 0.05);
}

.process-card__title {
  color: var(--text);
  font-size: var(--text-h5);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.process-card__text {
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 300ms ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(8, 159, 0, 0.3);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-h5);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none; /* Remove default triangle */
}

.faq-item__summary::-webkit-details-marker {
  display: none; /* Remove Safari triangle */
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  transition: transform 300ms ease;
  margin-left: var(--space-4);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.6;
}

.faq-item__content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Elements
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 300ms ease;
}

.contact-card:hover {
  background: var(--surface-2);
  border-color: rgba(8, 159, 0, 0.3);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(8, 159, 0, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.contact-card__content {
  flex-grow: 1;
}

.contact-card__title {
  font-size: var(--text-h6);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.contact-card__value {
  font-size: var(--text-h5);
  color: var(--text);
  font-weight: 500;
}

.contact-card__value a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.contact-card__value a:hover {
  color: var(--color-green);
}

/* Contact Form (Visual Placeholder) */
.contact-form {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-form__title {
  font-size: var(--text-h3);
  color: var(--text);
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-family: inherit;
  font-size: var(--text-body);
  transition: all 200ms ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: var(--glow-sm);
  background: var(--surface-2);
}

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

/* ==========================================================================
   Page CTA Block
   ========================================================================== */

.page-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.page-cta__title {
  font-size: var(--text-h2);
  color: var(--text);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.page-cta__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.page-cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
