/*
Theme Name: Acha Eye Elementor
Theme URI: https://achaeyehospital.org/
Description: Lightweight Elementor-ready theme for the Acha Eye Hospitals network.
Author: Acha Eye Hospitals
Template: hello-elementor
Version: 1.0.0
Text Domain: acha-eye
*/

:root {
  --acha-purple: #9120e8;
  --acha-purple-deep: #40115f;
  --acha-ink: #1c1721;
  --acha-muted: #6f6876;
  --acha-purple-pale: #f5ecfc;
  --acha-mint: #e4f8f2;
  --acha-shell: min(100% - 40px, 1180px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--acha-ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.acha-shell {
  width: var(--acha-shell);
  margin-inline: auto;
}

.acha-button .elementor-button {
  border-radius: 999px;
  background: var(--acha-purple);
  box-shadow: 0 14px 34px rgba(145, 32, 232, 0.22);
}

.acha-card {
  overflow: hidden;
  border: 1px solid #eae4ed;
  border-radius: 24px;
  background: #fff;
}

.acha-editorial em {
  color: var(--acha-purple);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.acha-event-calendar {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.acha-event-card {
  padding: 1.5rem;
  border: 1px solid #eae4ed;
  border-radius: 24px;
  background: #fff;
}

.acha-event-card time {
  color: var(--acha-purple);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acha-appointment-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #eae4ed;
  border-radius: 30px;
  background: #fff;
}

.acha-appointment-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.acha-appointment-form input,
.acha-appointment-form select,
.acha-appointment-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #eae4ed;
  border-radius: 12px;
  font: inherit;
}

.acha-appointment-form button {
  justify-self: start;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--acha-purple);
  color: #fff;
  font-weight: 800;
}

.acha-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.acha-form-success,
.acha-form-error {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.acha-form-success {
  background: var(--acha-mint);
  color: #165e4e;
}

.acha-form-error {
  background: #fff2f0;
  color: #8a2d23;
}

.acha-skip-link {
  position: fixed;
  z-index: 99999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: #fff;
  color: var(--acha-purple-deep);
}

.acha-skip-link:focus {
  transform: none;
}

.elementor-post__thumbnail,
.acha-featured-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #f2e9f8;
}

.elementor-post__thumbnail img,
.acha-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.single-post .wp-post-image {
  display: block;
  width: 100%;
  max-height: 720px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  background: #f2e9f8;
}

.acha-optical-slider img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --acha-shell: min(100% - 28px, 1180px);
  }

  .acha-event-calendar {
    grid-template-columns: 1fr;
  }

  .elementor-grid {
    grid-template-columns: 1fr;
  }
}

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