/* =========================================================
   CONTACT PAGE — SPECIFIC STYLES
   ========================================================= */

/* Page Hero with Background */
.page-hero--with-bg {
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 45, 27, 0.88) 0%,
    rgba(0, 101, 61, 0.75) 50%,
    rgba(0, 30, 18, 0.9) 100%
  );
}

.page-hero--with-bg .container {
  position: relative;
  z-index: 1;
}

/* ── Contact hero — image background ── */
.page-hero--with-bg {
  padding: calc(var(--nav-height) + var(--space-9)) 0 var(--space-8);
}

.page-hero--with-bg .container {
  position: relative;
  z-index: 1;
}

.contact-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  max-width: 720px;
}

.contact-hero__content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  max-width: 640px;
}

.contact-hero__highlight {
  position: relative;
  color: #6ee7b7;
}

.contact-hero__content > p,
.page-hero--with-bg .contact-hero__content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Light breadcrumb & eyebrow */
.breadcrumb--light a { color: rgba(255,255,255,0.7); }
.breadcrumb--light span { color: rgba(255,255,255,0.45); }
.breadcrumb--light .sep { color: rgba(255,255,255,0.25); }

.section-eyebrow--light {
  color: #6ee7b7;
}
.section-eyebrow--light::before {
  background: #6ee7b7;
}

/* Feature badges row */
.contact-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-5);
}

.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.contact-hero__badge svg {
  width: 13px !important;
  height: 13px !important;
  stroke: #6ee7b7 !important;
  fill: none !important;
  flex-shrink: 0;
}

/* CTA row */
.contact-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Inline call button */
.contact-hero__call-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 10px 20px 10px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-hero__call-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

.contact-hero__call-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00653D 0%, #009955 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 101, 61, 0.35);
}

.contact-hero__call-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.contact-hero__call-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.contact-hero__call-num {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .contact-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-hero__call-btn {
    width: 100%;
  }
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

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

/* Contact Details */
.contact-details {
  flex: 1;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-primary);
  border-radius: 20px;
  padding: var(--space-7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.contact-details h4 {
  font-size: 18px;
  margin-bottom: var(--space-5);
  color: var(--color-text-primary);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

a.contact-detail-item:hover {
  background: var(--color-tint-light);
  transform: translateX(3px);
}

a.contact-detail-item:hover .contact-detail-item__value {
  color: var(--color-primary);
}

.contact-detail-item__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00653D 0%, #009955 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 101, 61, 0.25);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.contact-detail-item:hover .contact-detail-item__icon {
  box-shadow: 0 8px 20px rgba(0, 101, 61, 0.38);
  transform: scale(1.08);
}

.contact-detail-item__icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.contact-detail-item__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-detail-item__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
  transition: color 0.25s ease;
}

/* Business Hours Card */
.business-hours-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-primary);
  border-radius: 20px;
  padding: var(--space-6) var(--space-7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.business-hours-card h4 {
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hours-item span:first-child {
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-item span:first-child::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.hours-item:last-child span:first-child::before {
  background: #d1d5db;
}

.hours-item .closed {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-off-white);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Form Card */
.form-card {
  flex: 1;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-primary);
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.form-card h3 {
  font-size: 26px;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.form-card > p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

#contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: var(--space-6);
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 0;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.form-label .req {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid transparent;
  background: var(--color-off-white);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  background: #eef0f3;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 101, 61, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b8c4;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

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

#contact-form .btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 8px;
  transition: all 0.25s ease;
}

#contact-form .btn--full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 101, 61, 0.3);
}

/* Map Section */
.map-section {
  position: relative;
  background: var(--color-off-white);
}

.map-section::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #6ee7b7 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.map-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
}

/* Responsive — Tablet (1024px and below) */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-left {
    position: static;
    gap: var(--space-5);
  }

  .strategy-call-card {
    padding: var(--space-6);
  }

  .contact-details {
    padding: var(--space-5);
  }

  .form-card {
    padding: var(--space-5);
  }

  .business-hours-card {
    padding: var(--space-5);
  }

  .map-container {
    height: 400px;
  }
}

/* Responsive — Mobile (768px and below) */
@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--nav-height) + var(--space-7)) 0 var(--space-7);
  }

  .contact-hero h1 {
    font-size: 1.75rem;
  }

  .contact-hero__desc {
    font-size: 1rem;
  }

  .contact-hero__ctas {
    flex-direction: column;
  }

  .contact-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-layout {
    gap: var(--space-5);
  }

  .strategy-call-card {
    padding: var(--space-5);
  }

  .contact-details {
    padding: var(--space-4);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .form-card {
    padding: var(--space-4);
  }

  .form-label {
    font-size: 12px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .contact-detail-item__icon {
    width: 40px;
    height: 40px;
  }

  .contact-detail-item__icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-detail-item__value {
    font-size: 13px;
  }

  .business-hours-card {
    padding: var(--space-4);
  }

  .hours-item {
    font-size: 12px;
  }

  .map-container {
    height: 320px;
  }

  .map-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: var(--space-4);
  }

  .map-info-card {
    max-width: none;
  }

  .page-hero__overlay {
    padding: var(--space-4);
  }
}

/* Responsive — Small Mobile (480px and below) */
@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 1.5rem;
  }

  .contact-hero__desc {
    font-size: 0.95rem;
  }

  .contact-layout {
    gap: var(--space-4);
  }

  .strategy-call-card {
    padding: var(--space-4);
  }

  .contact-details {
    padding: var(--space-4);
  }

  .contact-detail-list {
    gap: 2px;
  }

  .contact-detail-item {
    padding: 8px 10px;
  }

  .contact-detail-item__icon {
    width: 36px;
    height: 36px;
  }

  .contact-detail-item__icon svg {
    width: 16px;
    height: 16px;
  }

  .form-card {
    padding: var(--space-4);
  }

  .btn--lg {
    padding: 12px 20px;
    font-size: 14px;
  }

  .map-container {
    height: 280px;
  }

  .map-info-card {
    padding: var(--space-4);
  }

  .map-info-card__icon {
    width: 40px;
    height: 40px;
  }

  .map-info-card h4 {
    font-size: 16px;
  }

  .map-info-card p {
    font-size: 12px;
  }
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #a3d7a8;
  border-radius: 12px;
  margin-top: var(--space-5);
  animation: slideIn 0.4s ease-out;
}

.form-success svg {
  flex-shrink: 0;
  color: #27ae60;
  margin-top: 2px;
}

.form-success strong {
  display: block;
  color: #1e6f37;
  font-size: 15px;
  margin-bottom: 4px;
}

.form-success p {
  color: #2d7a47;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
