/* ============================================
   STARS - Contact Page Stylesheet
   ============================================ */

/* === CONTACT HERO (matches About/Services/Blog hero) === */
.contact-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat;
  margin-top: var(--header-height);
}

/* Phones load a phone-sized photo (it is the page's largest paint); the page head preloads the same URLs */
@media (max-width: 768px) {
  .contact-hero { background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=640&q=40&fm=webp'); }
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(var(--color-dark-brown-rgb), 0.7) 50%,
    rgba(var(--color-dark-brown-rgb), 0.8) 100%
  );
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  max-width: 750px;
}

.contact-hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.contact-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.92;
}

/* === CONTACT INFO CARDS === */
.contact-info-section {
  padding: 80px 0;
  background: var(--color-off-white);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-moss-green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.contact-card:hover::before { transform: scaleX(1); }

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-moss-green);
}

.contact-card-icon svg { width: 100%; height: 100%; }

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-brown);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-card a {
  color: var(--color-moss-green);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-card a:hover { color: var(--color-moss-green-dark); }

/* === CONTACT FORM + MAP === */
.contact-main-section {
  padding: 80px 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Form side */
.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-dark-brown);
}

.contact-form-wrapper > p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field { display: flex; flex-direction: column; }

.contact-field label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.contact-field label .req { color: #d9534f; }

.contact-field input,
.contact-field select,
.contact-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-moss-green);
  box-shadow: 0 0 0 3px rgba(111, 134, 88, 0.1);
}

.contact-field textarea { resize: vertical; min-height: 100px; }

.contact-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-moss-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.contact-submit:hover {
  background: var(--color-moss-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
}

.contact-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-moss-green);
}

.contact-success-icon svg { width: 100%; height: 100%; }

.contact-success h4 {
  font-size: 1.2rem;
  color: var(--color-dark-brown);
  margin-bottom: 8px;
}

.contact-success p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Map side */
.contact-map-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-dark-brown);
}

.contact-map-wrapper > p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 28px;
}

.contact-map iframe { display: block; }

/* Office details below map */
.office-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.office-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.office-detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-moss-green);
  margin-top: 2px;
}

.office-detail-icon svg { width: 100%; height: 100%; }

.office-detail-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark-brown);
  margin-bottom: 2px;
}

.office-detail-text span {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.office-detail-text a {
  color: var(--color-moss-green);
  font-weight: 500;
}

.office-detail-text a:hover { text-decoration: underline; }

/* === CTA BANNER (matches About page style) === */
.contact-cta-section {
  position: relative;
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80') center/cover no-repeat;
}

.contact-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--color-dark-brown-rgb), 0.8);
}

.contact-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 14px;
  font-weight: 800;
  font-style: italic;
}

.contact-cta-section p {
  font-size: 1.1rem;
  color: var(--color-tan-light);
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-family: var(--font-heading);
}

.contact-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--pill {
  border-radius: 9999px;
  padding: 14px 36px;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-dark-brown);
  border-color: var(--color-white);
  border-radius: 9999px;
  padding: 14px 36px;
}

.btn--white:hover {
  background: var(--color-tan-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 14px 36px;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--pill.btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--pill.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark-brown);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .contact-hero { min-height: 320px; }
  .contact-info-section,
  .contact-main-section { padding: 48px 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-cta-section { padding: 60px 0; }
  .contact-cta-buttons { flex-direction: column; align-items: center; }
  .btn--white, .btn--outline-white { width: 100%; max-width: 280px; justify-content: center; }
}
