/* Storefront Custom Pages Styles (About, Contact, Policies) */
.about-hero, .contact-hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/images/about_bg.png') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #ffffff;
}

.about-hero h1, .contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  margin: 0.5rem 0 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.about-hero p, .contact-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.about-hero .eyebrow, .contact-hero .eyebrow {
  color: var(--brand-200);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.welcome-letter {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  margin: -2.5rem auto 4rem;
  max-width: 900px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.welcome-letter blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #0f172a;
  text-align: center;
  font-style: italic;
}

.welcome-letter .signature {
  margin-top: 1.5rem;
  text-align: right;
  font-weight: 700;
  color: var(--brand-800);
  font-size: 0.95rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.story-copy h2 {
  font-size: 1.8rem;
  color: #0f172a;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.story-copy p {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.story-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Contact Page Layout */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* About Page - Values Section */
.about-values-section {
  position: relative;
  background: var(--surface-soft);
  padding: 5rem 0;
  margin-bottom: 4.5rem;
  border-top: 1px solid #e6efec;
  border-bottom: 1px solid #e6efec;
  overflow: hidden;
}

/* Soft teal glow so the band reads as a distinct section instead of flat grey */
.about-values-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--brand-800-rgb), 0.07) 0%, rgba(var(--brand-800-rgb), 0) 65%);
  pointer-events: none;
}

.about-values-section > .container {
  position: relative;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-center .section-tag {
  display: inline-block;
  color: var(--brand-800);
  background: var(--brand-100);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-header-center h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

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

.value-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 2rem 1.6rem;
  border-radius: 18px;
  border: 1px solid #e6efec;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Always-on accent, brightened on hover — the cards read flat without it */
.value-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-800), var(--brand-500));
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(var(--brand-800-rgb), 0.28);
  border-color: #b7e4dd;
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #eafaf6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-800);
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-800-rgb), 0.12);
  transition: background 0.25s ease, color 0.25s ease;
}

.value-card:hover .value-icon {
  background: var(--brand-800);
  color: #ffffff;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  text-wrap: balance;
}

.value-card p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* About Page - Motto Banner */
.motto-wrapper {
  margin-bottom: 4.5rem;
}

.motto-card {
  position: relative;
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, var(--brand-900) 50%, var(--brand-800) 100%);
  color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.motto-card::after {
  content: '"';
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  font-size: 12rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.motto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.motto-text {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
  max-width: 880px;
  margin-inline: auto;
  font-style: italic;
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-wrap: pretty;
}

/* Quotes come from CSS so the editable text stays clean */
.motto-text::before {
  content: '\201C';
}

.motto-text::after {
  content: '\201D';
}

/* About Page - Legal & Info Section */
.legal-section {
  margin-bottom: 5rem;
}

.legal-section-header {
  margin-bottom: 2.5rem;
}

.legal-section-header .section-tag {
  display: inline-block;
  color: var(--brand-800);
  background: var(--brand-100);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.legal-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e6efec;
  border-radius: 18px;
  padding: 1.85rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.legal-card:hover {
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.22);
  border-color: #cfe6e1;
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
  /* Hairline rule with a short teal lead-in, instead of a heavy 2px bar */
  border-bottom: 1px solid #e6efec;
  position: relative;
}

.legal-card-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--brand-800);
  border-radius: 2px;
}

.legal-card-header i {
  font-size: 1rem;
  color: var(--brand-800);
  background: #eafaf6;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.legal-info-list {
  display: grid;
  gap: 0.15rem;
}

/* Rows read as a definition list with a hover accent, not stacked grey form boxes */
.legal-info-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-info-item:hover {
  background: var(--surface-soft);
  border-left-color: var(--brand-800);
}

.legal-info-item label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #8a99a8;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.legal-info-item span {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.55;
}

.legal-info-item span.highlight-gold {
  color: #b45309;
  font-weight: 800;
}

.legal-info-item span.highlight-teal {
  color: var(--brand-800);
  font-weight: 800;
}

.legal-info-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--brand-800);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-info-item a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

@media (max-width: 1200px) {
  /* 4 cards get cramped before the 2-column breakpoint kicks in */
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .motto-card {
    padding: 2.5rem 1.5rem;
  }
  .about-values-section {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-card {
    padding: 1.75rem 1.25rem;
  }
  .legal-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-info-card, .contact-form-card {
    padding: 1.5rem !important;
  }
  .contact-form-header {
    padding: 1.2rem 1.5rem !important;
  }
  .contact-form-body {
    padding: 1.5rem !important;
  }
}
