/* ==========================================================================
   PAGES.CSS — Page-Specific Overrides for Awning Brokers
   Mobile-first responsive design. Breakpoints: 640px, 768px, 1024px, 1280px.
   ========================================================================== */


/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--white) 100%);
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-subheading {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-lg);
  color: var(--dark-gray);
  margin-bottom: var(--space-3);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: var(--text-base);
  color: var(--medium-gray);
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hero-ctas .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-ctas .cta-secondary {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease;
}

.hero-ctas .cta-secondary:hover {
  color: var(--stripe-blue);
}

.hero-promise {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--medium-gray);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Trust Bar (homepage override — uses component trust-bar but adds items styling) */
.trust-bar .trust-bar-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.trust-bar .trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  min-width: 0;
}

.trust-bar .trust-bar-item .trust-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--stripe-blue);
  overflow: hidden;
}

.trust-bar .trust-bar-item span {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}

/* Section Headlines (shared across homepage sections) */
.section-headline {
  font-family: "Playfair Display", Georgia, serif;
  text-align: center;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.section-subtext {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-lg);
  text-align: center;
  color: var(--dark-gray);
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

/* Service Lifecycle Summary */
.lifecycle-summary {
  margin-top: var(--space-8);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--medium-gray);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Storm Section — Homepage teaser */
.storm-section {
  background-color: var(--sky-mid);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.storm-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.storm-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.storm-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-3xl);
  color: var(--navy);
  margin-bottom: var(--space-6);
}

.storm-body {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-lg);
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.storm-cta {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}

.storm-cta:hover {
  color: var(--stripe-blue);
}

/* Testimonials Section */
.testimonials {
  padding: var(--space-16) 0;
}

/* Gallery Preview Section */
.gallery-preview {
  padding: var(--space-16) 0;
  background-color: var(--off-white);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.gallery-preview-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-preview-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-preview-item:hover .gallery-preview-image img {
  transform: scale(1.05);
}

.gallery-preview-link {
  text-align: center;
}

.text-link {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--stripe-blue);
}

/* CTA Banner Actions (homepage variant) */
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-banner-headline {
  color: var(--white);
  margin-bottom: var(--space-8);
}

/* ---------- Responsive: Tablet (640px) ---------- */
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .trust-bar .trust-bar-items {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-bar .trust-bar-item {
    flex-direction: row;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .storm-section {
    padding: var(--space-16) 0;
  }
}

/* ---------- Responsive: Tablet (768px) — two-column layouts ---------- */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-content {
    text-align: left;
  }

  .hero-subheading {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Responsive: Desktop ---------- */
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-24) 0 var(--space-16);
  }

  .hero-grid {
    gap: var(--space-16);
  }

  .hero-headline {
    font-size: var(--text-5xl);
  }

  .trust-bar .trust-bar-items {
    display: flex;
    justify-content: space-between;
    gap: var(--space-8);
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .storm-section {
    padding: var(--space-20) 0;
  }
}

/* ---------- Responsive: Large Desktop ---------- */
@media (min-width: 1280px) {
  .hero-headline {
    font-size: var(--text-6xl);
  }
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* Founder Story — Two Column Layout */
.about-founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

.about-founder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border-radius: var(--radius-lg);
  min-height: 320px;
  padding: var(--space-8);
}

.about-founder-photo-placeholder {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--medium-gray);
  text-align: center;
}

.about-founder-text h2 {
  margin-bottom: var(--space-6);
}

.about-founder-text p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--dark-gray);
}

/* Tablet — two-column founder layout */
@media (min-width: 768px) {
  .about-founder {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (min-width: 1024px) {
  .about-founder {
    gap: var(--space-16);
  }

  .about-founder-photo {
    min-height: 400px;
  }
}


/* ==========================================================================
   SERVICES PAGE
   ========================================================================== */

/* Alternating section backgrounds */
.services-lifecycle-section {
  background-color: var(--white);
}

.services-lifecycle-section:nth-child(even) {
  background-color: var(--off-white);
}

/* Storm section on services page — visually distinct */
.services-storm {
  background-color: var(--sky-mid);
  position: relative;
  overflow: hidden;
}

.services-storm::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.services-storm-content {
  max-width: 800px;
}

.services-storm-content h2 {
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.services-storm-content .lead {
  color: var(--dark-gray);
  margin-bottom: var(--space-8);
}

.services-storm-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.services-storm-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.services-storm-step-label {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 130px;
}

.services-storm-step-text {
  font-size: var(--text-base);
  color: var(--dark-gray);
  line-height: 1.7;
}

.services-storm-closing {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--navy);
}

@media (min-width: 640px) {
  .services-storm-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "Why Full-Service Matters" section */
.services-why {
  background-color: var(--off-white);
}

.services-why-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.services-why-content h2 {
  margin-bottom: var(--space-6);
}

.services-why-content p {
  font-size: var(--text-lg);
  color: var(--dark-gray);
  line-height: 1.8;
}


/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */

/* Gallery Filter Bar */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.gallery-filter {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-gray);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-6);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.gallery-filter:hover {
  color: var(--navy);
  border-color: var(--stripe-blue);
  background-color: var(--sky-light);
}

.gallery-filter.is-active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.gallery-filter:focus-visible {
  outline: 2px solid var(--stripe-blue);
  outline-offset: 2px;
}

/* Gallery Item with placeholder */
.gallery-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--sky-light) 100%);
  padding: var(--space-4);
}

.gallery-item-placeholder-inner {
  text-align: center;
}

.gallery-item-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  background-color: rgba(130, 183, 225, 0.15);
  border-radius: var(--radius-md);
}

.gallery-item-placeholder-icon svg {
  width: 24px;
  height: 24px;
  color: var(--stripe-blue);
}

.gallery-item-placeholder-text {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--medium-gray);
}

/* Gallery caption below each item */
.gallery-item-caption-below {
  padding: var(--space-3) var(--space-4);
  background-color: var(--white);
}

.gallery-item-caption-below p {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--dark-gray);
  margin: 0;
  line-height: 1.4;
}

/* Gallery overlay for items with real images */
.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(14, 39, 71, 0.7));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay p {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--white);
  margin: 0;
}

/* Gallery item filtering states */
.gallery-item.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Gallery Bottom CTA */
.gallery-cta {
  text-align: center;
}

.gallery-cta h2 {
  margin-bottom: var(--space-4);
}

.gallery-cta p {
  font-size: var(--text-lg);
  color: var(--dark-gray);
  margin-bottom: var(--space-8);
}

.gallery-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .gallery-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6);
  }
}


/* ==========================================================================
   GALLERY LIGHTBOX (Page-Specific Overrides)
   ========================================================================== */

/* Page-specific lightbox using display toggle (vs opacity/visibility in components) */
.lightbox-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.lightbox-page.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 39, 71, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-8) var(--space-16);
}

.lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  max-height: 80svh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  max-height: 75svh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-img.is-loaded {
  opacity: 1;
}

/* Lightbox Loading Spinner */
.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  display: none;
}

.lightbox-img-wrapper.is-loading .lightbox-spinner {
  display: block;
  animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightbox-footer {
  position: absolute;
  bottom: var(--space-6);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.lightbox-page .lightbox-caption {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2);
  position: static;
  padding: 0;
}

.lightbox-counter {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* Lightbox page-level prev/next overrides */
.lightbox-page .lightbox-prev,
.lightbox-page .lightbox-next {
  height: 64px;
  border-radius: var(--radius-md);
}

@media (max-width: 639px) {
  .lightbox-content {
    padding: var(--space-4);
  }

  .lightbox-page .lightbox-prev,
  .lightbox-page .lightbox-next {
    width: 40px;
    height: 48px;
  }

  .lightbox-page .lightbox-prev {
    left: var(--space-2);
  }

  .lightbox-page .lightbox-next {
    right: var(--space-2);
  }

  .lightbox-img {
    max-height: 65vh;
    max-height: 65svh;
  }
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* Two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* ---------- Left Column: Form ---------- */

.contact-form-column {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.contact-form-column h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.contact-form-subtitle {
  font-size: var(--text-sm);
  color: var(--medium-gray);
  margin-bottom: var(--space-8);
}

/* Form group (label + input + error) */
.contact-form .form-group {
  margin-bottom: var(--space-6);
}

.contact-form .form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
}

.contact-form .form-group label .required {
  color: var(--error);
  margin-left: var(--space-1);
}

.contact-form .form-group label .optional {
  color: var(--medium-gray);
  font-weight: 400;
  font-size: var(--text-xs);
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group select,
.contact-form .form-group textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  color: var(--dark-gray);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--stripe-blue);
  box-shadow: 0 0 0 3px rgba(130, 183, 225, 0.2);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--medium-gray);
}

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

/* Select dropdown arrow */
.contact-form .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Default (unselected) color for select */
.contact-form .form-group select:invalid,
.contact-form .form-group select option[value=""][disabled] {
  color: var(--medium-gray);
}

/* Validation error state */
.contact-form .form-group input.field-invalid,
.contact-form .form-group select.field-invalid,
.contact-form .form-group textarea.field-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.contact-form .field-error {
  display: none;
  margin-top: var(--space-2);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--error);
}

/* Submit button full-width */
.contact-form .btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background-color: var(--gold);
  color: var(--navy);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  min-height: 44px;
}

.contact-form .btn-submit:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-form .btn-submit:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.contact-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form .btn-submit svg {
  width: 18px;
  height: 18px;
}

/* Form privacy note */
.contact-form .form-privacy {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--medium-gray);
}

.contact-form .form-privacy a {
  color: var(--stripe-blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition-base);
}

.contact-form .form-privacy a:hover {
  text-decoration-color: var(--stripe-blue);
}

/* Form success state */
.contact-form-column .form-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.contact-form-column .form-success-icon {
  margin-bottom: var(--space-6);
}

.contact-form-column .form-success h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.contact-form-column .form-success p {
  font-size: var(--text-lg);
  color: var(--dark-gray);
  margin-bottom: var(--space-3);
}

.contact-form-column .form-success a {
  color: var(--stripe-blue);
  font-weight: 700;
  text-decoration: underline;
}

/* Form error banner */
.contact-form .form-error-banner {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-form .form-error-banner p {
  color: var(--error);
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0;
}

.contact-form .form-error-banner a {
  color: var(--error);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Right Column: Contact Info ---------- */

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background-color: var(--sky-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-info-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--stripe-blue);
}

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

.contact-info-label {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--medium-gray);
}

.contact-info-value {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--navy);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-info-value a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition-base);
}

.contact-info-value a:hover {
  color: var(--stripe-blue);
}

/* "What happens next?" timeline */
.contact-timeline {
  background-color: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-timeline h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: var(--space-6);
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}

.timeline-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

.timeline-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--stripe-blue);
  color: var(--white);
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Connecting line between steps */
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  width: 2px;
  height: calc(100% + var(--space-6) - 32px);
  background-color: var(--sky-light);
  z-index: 0;
}

.timeline-step-text {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  color: var(--dark-gray);
  line-height: 1.6;
  padding-top: var(--space-1);
}

/* Testimonial card on contact page */
.contact-testimonial {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--stripe-blue);
  position: relative;
}

.contact-testimonial .testimonial-quote-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--sky-light);
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.contact-testimonial .testimonial-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
}

.contact-testimonial .testimonial-attribution {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--medium-gray);
}

/* ---------- Responsive: Tablet (640px) ---------- */
@media (min-width: 640px) {
  .contact-form-column {
    padding: var(--space-10);
  }
}

/* ---------- Responsive: Tablet (768px) ---------- */
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

/* ---------- Responsive: Desktop ---------- */
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
  }

  .contact-form-column {
    padding: var(--space-12);
  }

  .contact-form-column h2 {
    font-size: var(--text-3xl);
  }
}


/* ==========================================================================
   PRIVACY POLICY & TERMS PAGES
   ========================================================================== */

.legal-page {
  background-color: var(--white);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: var(--space-2);
}

.legal-content .legal-updated {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-sm);
  color: var(--medium-gray);
  font-style: italic;
  margin-bottom: var(--space-10);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--light-gray);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  font-size: var(--text-base);
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: var(--text-base);
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.legal-content a {
  color: var(--stripe-blue);
  text-decoration: underline;
  text-decoration-color: rgba(130, 183, 225, 0.4);
  transition: var(--transition-base);
}

.legal-content a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

.legal-content strong {
  color: var(--navy);
}

/* Terms plain-language summary */
.legal-summary {
  background-color: var(--gold-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-10);
  margin-bottom: var(--space-8);
}

.legal-summary h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-summary ol {
  padding-left: var(--space-6);
}

.legal-summary li {
  margin-bottom: var(--space-3);
}

/* Contact info at bottom of privacy page */
.legal-contact {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background-color: var(--off-white);
  border-radius: var(--radius-md);
}

.legal-contact p {
  margin-bottom: var(--space-2);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* All-caps disclaimer sections in Terms */
.legal-content .disclaimer {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background-color: var(--off-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--medium-gray);
}

@media (min-width: 1024px) {
  .legal-content h2 {
    font-size: var(--text-3xl);
  }
}


/* ==========================================================================
   MOBILE TOUCH-DEVICE FIXES
   Prevent sticky hover states on page-specific interactive elements.
   Reference: mobile-web-gotchas.md
   ========================================================================== */

@media (hover: none) {
  /* Homepage gallery preview items */
  .gallery-preview-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .gallery-preview-item:hover .gallery-preview-image img {
    transform: none;
  }

  /* Gallery page: make overlay captions always visible on touch devices */
  .gallery-item-overlay {
    opacity: 1;
  }

  .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
  }
}
