/* Dermatica Medical Clinic — contact landing */

:root {
  --primary: #94775c;
  --primary-dark: #785e49;
  --primary-muted: #8c715b;
  --accent: #34bcad;
  --sand: #e6ddc9;
  --cream: #fffcf5;
  --text: #876d5b;
  --text-soft: #7d6550;
  --bg-start: #e6ddc9;
  --bg-end: #fffcf5;
  --divider: #c4b9a8;
  --font-display: "Aboreto", cursive, serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-closing: "Cormorant Garamond", Georgia, serif;
  --radius-card: 1.5rem;
  --radius-pill: 9999px;
  --shadow-card: 0 25px 50px -12px rgba(84, 67, 55, 0.28);
  --shadow-btn: 0 4px 14px rgba(84, 67, 55, 0.12);
  --shadow-teal: 0 10px 25px -5px rgba(52, 188, 173, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-display);
  background: linear-gradient(90deg, var(--bg-start) 0%, var(--bg-end) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 1.5rem;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

.page {
  width: 100%;
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0.25rem 0 1.5rem;
  user-select: none;
}

.logo {
  width: 48px;
  height: auto;
  margin-bottom: 0.85rem;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-indent: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  line-height: 1;
}

.brand-rule {
  width: min(120pt, 70vw);
  height: 0.75pt;
  margin: 0.65rem auto;
  background: var(--primary);
  opacity: 0.65;
}

.brand-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-indent: 0.05em;
  text-transform: uppercase;
  color: var(--primary-muted);
  line-height: 1;
}

.brand-tagline {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
}

/* Main card — 3 columns */
.card {
  width: 100%;
  background: var(--primary);
  color: var(--cream);
  border-radius: var(--radius-card);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.column {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(230, 221, 201, 0.55);
}

.column:last-child {
  border-bottom: none;
}

.column-head {
  width: 100%;
  background: var(--sand);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
}

.column-body {
  padding: 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact buttons */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--primary);
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.contact-btn:hover {
  background: #fff;
  transform: scale(1.02);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-btn:active {
  transform: scale(0.98);
}

.contact-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-btn-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.contact-btn-sep {
  color: rgba(148, 119, 92, 0.4);
  font-weight: 300;
  flex-shrink: 0;
}

.contact-btn-value {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

/* Locate */
.locate-box {
  margin: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(230, 221, 201, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 100%;
  font-style: normal;
}

.locate-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(230, 221, 201, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.locate-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.locate-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8ee;
}

.locate-address {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 238, 228, 0.9);
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 13rem;
  min-height: 44px;
  height: 2.5rem;
  margin-top: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--primary);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.maps-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.maps-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.maps-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
}

/* Social */
.social-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  margin: auto 0;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(230, 221, 201, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-row:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(230, 221, 201, 0.5);
}

.social-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-pill {
  width: 8rem;
  min-height: 36px;
  height: 2rem;
  background: var(--sand);
  color: var(--primary);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-btn);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.social-row:hover .social-pill {
  background: #fff;
  transform: scale(1.05);
}

.social-pill svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
}

.social-handle {
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
  padding-right: 0.35rem;
  transition: color 0.2s ease;
}

.social-row:hover .social-handle {
  color: var(--accent);
}

.social-at {
  color: var(--accent);
  font-family: var(--font-sans);
  margin-right: 2px;
}

/* Footer tagline */
.tagline {
  margin: 2rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  color: var(--text-soft);
  user-select: none;
  padding: 0 0.5rem;
}

.tagline-word {
  font-family: var(--font-display);
  font-size: clamp(0.625rem, 2.8vw, 1.25rem);
  letter-spacing: clamp(0.14em, 1vw, 0.3em);
  font-weight: 400;
  white-space: nowrap;
}

.tagline-lotus {
  width: clamp(14px, 3vw, 18px);
  height: auto;
  flex-shrink: 0;
}

/* Closing */
.closing {
  text-align: center;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-cta {
  width: 100%;
  max-width: 340px;
  min-height: 48px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-teal);
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
  margin-bottom: 1.5rem;
}

.btn-cta:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
  flex-shrink: 0;
}

.ornament {
  position: relative;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0;
}

.ornament-line {
  width: 100%;
  height: 1px;
  background: rgba(196, 185, 168, 0.6);
}

.ornament-icon {
  position: absolute;
  padding: 0 0.75rem;
  color: var(--primary);
  opacity: 0.8;
  background: transparent;
}

.ornament-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.closing-name {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-closing);
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--primary);
}

.closing-meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-muted);
  opacity: 0.8;
}

/* Visually hidden SEO / a11y helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.logo-anim {
  animation: logoIn 0.9s var(--ease) both;
}

.brand-anim {
  animation: fadeUp 0.8s var(--ease) 0.12s both;
}

.card-anim {
  animation: cardIn 0.85s var(--ease) 0.25s both;
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.86) translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (min-width: 640px) {
  body {
    padding: 3rem 1.5rem 1.5rem;
  }

  .column-body {
    padding: 2rem 1.75rem;
  }

  .contact-btn-value {
    max-width: none;
    font-size: 0.8125rem;
  }

  .social-handle {
    font-size: 0.6875rem;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 3.5rem 2rem 1.5rem;
  }

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

  .column {
    border-bottom: none;
    border-right: 1px solid rgba(230, 221, 201, 0.55);
  }

  .column:last-child {
    border-right: none;
  }

  .column-body {
    padding: 2rem;
    min-height: 280px;
  }
}

@media (max-width: 380px) {
  .contact-btn {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
  }

  .contact-btn-sep {
    display: none;
  }

  .contact-btn-value {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .social-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .social-pill {
    width: 100%;
  }

  .social-handle {
    padding: 0.25rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .logo-anim,
  .brand-anim,
  .card-anim,
  .contact-btn,
  .maps-btn,
  .social-row,
  .social-pill,
  .btn-cta {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
