/*
 * Drop by Drop – contact page (templates/contact.php)
 * Builds on dbd-home.css (typography, buttons, bands).
 */

.page-id-21 .main-page-wrapper {
  padding-top: 0;
}

.page-id-21 .wd-content-layout {
  padding-bottom: 0;
}

/* ---------- Hero ---------- */
.dbd-ct-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: #f6f3ee;
}

.dbd-ct-hero .dbd-title {
  max-width: 760px;
  font-size: clamp(42px, 5.6vw, 72px);
}

.dbd-ct-hero .dbd-lead {
  max-width: 620px;
  margin-top: 20px;
  color: var(--dbd-muted);
}

.dbd-ct-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px !important;
}

.dbd-ct-quick a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--dbd-line);
  border-radius: var(--dbd-radius);
  background: #fff;
  color: var(--dbd-ink) !important;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dbd-ct-quick a:hover {
  border-color: var(--dbd-ink);
  box-shadow: var(--dbd-shadow-sm);
  transform: translateY(-2px);
}

.dbd-ct-quick .dbd-icon {
  width: 28px;
  height: 28px;
  color: var(--dbd-accent);
}

.dbd-ct-quick span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--dbd-muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dbd-ct-quick b {
  color: var(--dbd-ink);
  font-size: 17px;
}

/* ---------- Form + side ---------- */
.dbd-ct-main {
  padding-top: clamp(48px, 6vw, 80px);
}

.dbd-ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
  gap: 32px;
}

.dbd-ct-card {
  scroll-margin-top: 110px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--dbd-line);
  border-radius: var(--dbd-radius-lg);
  background: #fff;
}

.dbd-ct-card h2,
.dbd-ct-visit h2 {
  color: var(--dbd-ink);
  font-family: var(--dbd-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
}

.dbd-ct-muted {
  margin-top: 6px !important;
  color: var(--dbd-muted);
}

.dbd-ct-alert {
  margin-top: 20px !important;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  outline: none;
}

.dbd-ct-alert.is-success {
  background: #e6f2ea;
  color: #14593a;
}

.dbd-ct-alert.is-error {
  background: #fbe9e7;
  color: #8f2316;
}

.dbd-ct-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.dbd-ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dbd-ct-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--dbd-ink);
  font-size: 14px;
  font-weight: 650;
}

.dbd-ct-field small {
  color: var(--dbd-muted);
  font-weight: 500;
}

.dbd-ct-field :where(input, select, textarea) {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #c9cdc8 !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: none;
  color: var(--dbd-ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dbd-ct-field :where(input, select) {
  height: 52px;
}

.dbd-ct-field textarea {
  min-height: 150px;
  resize: vertical;
}

.dbd-ct-field :where(input, select, textarea):focus {
  border-color: var(--dbd-ink) !important;
  box-shadow: 0 0 0 4px rgba(181, 75, 40, 0.14) !important;
}

.dbd-ct-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dbd-ct-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.dbd-ct-submit .dbd-btn {
  min-width: 200px;
  text-transform: none;
}

.dbd-ct-side {
  display: grid;
  gap: 20px;
}

.dbd-ct-visit {
  overflow: hidden;
  border-radius: var(--dbd-radius-lg);
  background: #f6f3ee;
}

.dbd-ct-visit img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
}

.dbd-ct-visit > div {
  padding: 28px;
}

.dbd-ct-info {
  display: grid;
  gap: 16px;
  margin: 20px 0 24px !important;
}

.dbd-ct-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dbd-ct-info .dbd-icon {
  color: var(--dbd-accent);
}

.dbd-ct-info span {
  display: flex;
  flex-direction: column;
  color: var(--dbd-ink);
  font-size: 16px;
}

.dbd-ct-info b {
  color: var(--dbd-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dbd-ct-visit .dbd-btn {
  gap: 10px;
  width: 100%;
}

.dbd-ct-visit .dbd-btn .dbd-icon {
  width: 18px;
  height: 18px;
}

.dbd-ct-small {
  padding: 24px 28px;
  border: 1px solid var(--dbd-line);
  border-radius: var(--dbd-radius);
  color: var(--dbd-muted);
  font-size: 15px;
}

.dbd-ct-small h3 {
  margin-bottom: 8px !important;
  color: var(--dbd-ink);
  font-size: 16px;
  font-weight: 700;
}

.dbd-ct-small p + p {
  margin-top: 12px !important;
}

.dbd-ct-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dbd-ink) !important;
  font-weight: 650;
}

.dbd-ct-social .dbd-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Map (loaded on request) ---------- */
.dbd-ct-map {
  padding-top: 0;
}

.dbd-ct-mapbox {
  position: relative;
  overflow: hidden;
  height: 440px;
  border-radius: var(--dbd-radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(181, 75, 40, 0.08), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(31, 35, 32, 0.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(31, 35, 32, 0.05) 39px 40px),
    #f2ece2;
}

.dbd-ct-mapbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dbd-ct-mapcover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.dbd-ct-mapcover .dbd-icon-lg {
  width: 44px;
  height: 44px;
  color: var(--dbd-accent);
}

.dbd-ct-mapcover p {
  display: flex;
  flex-direction: column;
  color: var(--dbd-muted);
}

.dbd-ct-mapcover b {
  color: var(--dbd-ink);
  font-size: 18px;
}

.dbd-ct-mapcover .dbd-btn {
  background: #fff;
  text-transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dbd-ct-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dbd-ct-quick,
  .dbd-ct-row {
    grid-template-columns: 1fr;
  }

  .dbd-ct-card h2,
  .dbd-ct-visit h2 {
    font-size: 30px;
  }

  .dbd-ct-submit .dbd-btn {
    width: 100%;
  }

  .dbd-ct-mapbox {
    height: 340px;
  }
}
