/* ========================================================
   Canine Compassion GP — Contact Page Styles
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,600;1,9..144,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ══════════════════════════════════════════════════════
   SECTION 1: HERO
══════════════════════════════════════════════════════ */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px;
  background-color: #efe8dc;
  background-image: url('../GRAPHICS BG.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-hero { padding: 96px 24px 80px; }
}

/* Floating decorative icons */
.contact-hero__deco {
  position: absolute;
  pointer-events: none;
  color: rgba(193, 132, 31, 0.3);
}
.contact-hero__deco--dog {
  left: 16px;
  top: 96px;
  display: none;
  transform: rotate(-8deg);
  animation: float-soft 5s ease-in-out infinite;
}
.contact-hero__deco--bone {
  right: 32px;
  top: 160px;
  display: none;
  animation: float-soft 7s ease-in-out infinite;
}
.contact-hero__deco--paw {
  left: 33.333%;
  bottom: 24px;
  display: none;
  transform: translateX(-50%);
  animation: float-soft 5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .contact-hero__deco--dog { display: block; }
}
@media (min-width: 1024px) {
  .contact-hero__deco--bone, .contact-hero__deco--paw { display: block; }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.contact-hero__inner.is-visible {
  opacity: 1;
  transform: none;
}

.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ecdfca;
  background-color: #fbf7f0;
  color: #e07a52;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.contact-hero__heading {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #2b1f16;
  margin: 0 auto 24px;
  text-transform: none;
}

@media (min-width: 640px) {
  .contact-hero__heading { font-size: 56px; }
}
@media (min-width: 1024px) {
  .contact-hero__heading { font-size: 68px; }
}

.contact-hero__heading-accent {
  font-style: italic;
  color: #2f5c46;
}

.contact-hero__sub {
  font-size: 17px;
  line-height: 1.7;
  color: #4a4038;
  max-width: 620px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ══════════════════════════════════════════════════════
   SECTION 2: CONTACT CHANNELS
══════════════════════════════════════════════════════ */
.channels-section {
  background: oklch(0.955 0.018 85);
  padding: clamp(48px, 6vw, 80px) 0;
}

.channels-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .channels-grid { grid-template-columns: 1fr; }
}

.channel-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.channel-card.is-visible { opacity: 1; transform: none; }
.channel-card:nth-child(1) { transition-delay: 0s; }
.channel-card:nth-child(2) { transition-delay: 0.1s; }
.channel-card:nth-child(3) { transition-delay: 0.2s; }

.channel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.channel-icon-wrap {
  color: #c1841f;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.channel-link:hover .channel-icon-wrap {
  transform: translateY(-4px) rotate(-3deg);
}
.channel-icon-wrap svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.channel-body {
  position: relative;
  width: 100%;
  padding: 32px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channel-sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.channel-sketch rect {
  fill: none;
  stroke: oklch(0.64 0.15 45);
  stroke-width: 1.5px;
  transition: stroke 0.3s ease;
}
.channel-link:hover .channel-sketch rect { stroke: oklch(0.45 0.085 152); }

.channel-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.64 0.15 45);
  margin-top: 8px;
  transition: color 0.3s ease;
}
.channel-link:hover .channel-label { color: oklch(0.45 0.085 152); }

.channel-value {
  position: relative;
  z-index: 1;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: oklch(0.26 0.03 55);
  margin: 8px 0 0;
  word-break: break-all;
}

.channel-note {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.6;
  color: oklch(0.5 0.035 60);
  margin-top: auto;
  padding-top: 12px;
}

/* ══════════════════════════════════════════════════════
   SECTION 3: FORM
══════════════════════════════════════════════════════ */
.contact-form-section {
  background: oklch(0.92 0.025 82 / 0.4);
  padding: clamp(64px, 8vw, 112px) clamp(16px, 5vw, 24px);
}

.contact-form-reveal {
  max-width: 80rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2.5rem;
  border: 1px solid oklch(0.86 0.03 78);
  background: oklch(0.985 0.012 90);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.contact-form-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .contact-form-reveal { grid-template-columns: 1fr; }
}

/* Info panel (left / green) */
.contact-info-panel {
  position: relative;
  overflow: hidden;
  background: oklch(0.45 0.085 152);
  padding: clamp(32px, 5vw, 48px);
  color: oklch(0.97 0.02 90);
}

.contact-info-panel__deco {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 160px;
  height: 160px;
  opacity: 0.2;
  animation: float-soft-slow 4.5s ease-in-out infinite;
  pointer-events: none;
}

.contact-info-panel__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.78 0.13 80);
  display: block;
  margin-bottom: 12px;
}

.contact-info-panel h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: oklch(0.97 0.02 90);
  text-wrap: balance;
  margin: 0 0 20px;
}

.contact-info-panel p {
  font-size: 17px;
  line-height: 1.65;
  color: oklch(0.97 0.02 90 / 0.85);
  margin: 0 0 40px;
  text-wrap: pretty;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 1rem;
  background: oklch(0.97 0.02 90 / 0.12);
  display: grid;
  place-items: center;
}
.contact-info-item__icon svg {
  width: 22px;
  height: 22px;
  color: oklch(0.97 0.02 90);
}

.contact-info-item span {
  font-weight: 500;
  font-size: 15px;
  color: oklch(0.97 0.02 90);
}

/* Form panel (right) */
.contact-form-panel {
  padding: clamp(32px, 5vw, 48px);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: oklch(0.26 0.03 55);
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 0.75rem;
  border: 1.5px solid oklch(0.86 0.03 78);
  background: oklch(0.955 0.018 85);
  color: oklch(0.26 0.03 55);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: oklch(0.5 0.035 60 / 0.6);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: oklch(0.64 0.15 45);
  box-shadow: 0 0 0 3px oklch(0.64 0.15 45 / 0.18);
}

.form-textarea { resize: none; }

.form-select { cursor: pointer; appearance: none; 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='%236f6d6c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  background: oklch(0.64 0.15 45);
  color: oklch(0.98 0.02 90);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.form-submit:hover { transform: translateY(-2px); background: oklch(0.58 0.14 45); }
.form-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.form-submit:hover svg { transform: translateX(3px); }

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  gap: 16px;
}
.form-success.is-shown { display: flex; }
.form-success svg {
  width: 64px;
  height: 64px;
  color: oklch(0.45 0.085 152);
  animation: float-soft 3s ease-in-out infinite;
}
.form-success h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: oklch(0.26 0.03 55);
  margin: 0;
}
.form-success p {
  font-size: 16px;
  line-height: 1.65;
  color: oklch(0.5 0.035 60);
  max-width: 24rem;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   SECTION 4: HOW IT WORKS
══════════════════════════════════════════════════════ */
.how-section {
  background: oklch(0.955 0.018 85);
  padding: clamp(64px, 8vw, 112px) clamp(16px, 5vw, 24px);
  position: relative;
  overflow: hidden;
}

.how-header {
  max-width: 42rem;
  margin: 0 auto 80px;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.how-header.is-visible { opacity: 1; transform: none; }

.how-header__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.64 0.15 45);
  display: block;
  margin-bottom: 12px;
}

.how-header__heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: oklch(0.26 0.03 55);
  text-wrap: balance;
  margin: 0;
}
.how-header__heading em { font-style: italic; color: oklch(0.45 0.085 152); }

.how-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 768px) {
  .how-grid {
    flex-direction: column;
    align-items: center;
  }
}

.how-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  min-height: 320px;
  padding: 40px 30px;
  background: #fff;
  border: 8px solid #2B633D;
  box-shadow: 12px 12px 0 #2B633D;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 1;
  transform: rotate(-1.5deg);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  font-family: 'Fraunces', serif;
}
.how-card.is-visible { opacity: 1; transform: rotate(-1.5deg); }
.how-card:nth-child(2).is-visible { transform: rotate(1.5deg); }
.how-card:nth-child(3).is-visible { transform: rotate(-1deg); }

.how-card:nth-child(1) { transition-delay: 0s; }
.how-card:nth-child(2) { transition-delay: 0.12s; }
.how-card:nth-child(3) { transition-delay: 0.24s; }

.how-card:active { animation: shake 0.5s ease-in-out; }
.how-card.is-visible:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 20px 20px 0 #2B633D;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.how-card__icon {
  color: #2B633D;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}
.how-card.is-visible:hover .how-card__icon { transform: scale(1.1) rotate(-5deg); }
.how-card__icon svg { width: 48px; height: 48px; stroke-width: 2; }

.how-card__body {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.how-card__sketch {
  display: none; /* Hide the old sketch outline */
}

.how-card__num {
  position: absolute;
  right: -10px;
  top: -80px;
  font-family: 'Fraunces', serif;
  font-size: 80px;
  font-weight: 900;
  color: rgba(43, 99, 61, 0.1);
  line-height: 1;
  z-index: 0;
}

.how-card__title {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  border-bottom: 3px solid #2B633D;
  padding-bottom: 6px;
  width: fit-content;
  letter-spacing: 0.05em;
}

.how-card__body-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .3s !important;
  }
  .contact-hero__inner,
  .channel-card,
  .contact-form-reveal,
  .how-header,
  .how-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Contact cards snippet styles */
.cards-row { display:flex; flex-wrap:wrap; gap:60px; justify-content:center; align-items:center; }
.card { width:320px; padding:30px; background:#fff; border:8px solid #2B633D; box-shadow:15px 15px 0 #2B633D; transform:rotate(-2deg); transition:all 0.3s ease; position:relative; overflow:hidden; text-decoration:none; display:block; }
.card:nth-child(2) { transform:rotate(2deg); }
.card:nth-child(3) { transform:rotate(-1deg); }
.card:active { animation:shake 0.5s ease-in-out; }
.card:hover { transform:rotate(0deg) scale(1.02); box-shadow:20px 20px 0 #2B633D; }
.card__icon { margin-bottom:16px; }
.card__title { font-size:24px; font-weight:700; color:#000; text-transform:uppercase; margin-bottom:10px; display:block; border-bottom:2px solid #2B633D; width:fit-content; padding-bottom:4px; }
.card__contact { font-size:16px; font-weight:700; color:#000; display:block; margin-bottom:10px; white-space:nowrap; }
.card__subtitle { font-size:15px; line-height:1.4; color:#000; margin:0; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* --- user card snippet styles appended --- */

/* ===== Contact cards exact snippet styles (from user) ===== */
.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  width: 320px;
  padding: 30px;
  background: #fff;
  border: 8px solid #2B633D;
  box-shadow: 15px 15px 0 #2B633D;
  transform: rotate(-2deg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.card:nth-child(2) { transform: rotate(2deg); }
.card:nth-child(3) { transform: rotate(-1deg); }
.card:active { animation: shake 0.5s ease-in-out; }
.card:hover { transform: rotate(0deg) scale(1.02); box-shadow: 20px 20px 0 #2B633D; }

.card__icon { margin-bottom: 16px; }

.card__title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  border-bottom: 2px solid #2B633D;
  width: fit-content;
  padding-bottom: 4px;
}

.card__contact {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  display: block;
  margin-bottom: 10px;
  white-space: nowrap;
}

.card__subtitle {
  font-size: 15px;
  line-height: 1.4;
  color: #000;
  margin: 0;
}

@keyframes shake {
 0% { transform: translateX(0); }
 25% { transform: translateX(-5px); }
 50% { transform: translateX(5px); }
 75% { transform: translateX(-5px); }
 100% { transform: translateX(0); }
}
