/*
Theme Name: Well Life Ruqyah
Theme URI: https://welllifesupport.com
Author: Trae
Description: Custom WordPress theme for Ruqyah Treatment services.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: welllife-ruqyah
*/

:root {
  --wl-bg: #f6f3ec;
  --wl-surface: #ffffff;
  --wl-surface-alt: #eef4ef;
  --wl-text: #15332b;
  --wl-muted: #5e726b;
  --wl-primary: #0e6b57;
  --wl-primary-dark: #094b3d;
  --wl-accent: #c7a96b;
  --wl-border: #dbe6df;
  --wl-shadow: 0 18px 50px rgba(15, 64, 52, 0.12);
  --wl-radius: 24px;
  --wl-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--wl-text);
  background: linear-gradient(180deg, #fcfaf6 0%, var(--wl-bg) 100%);
  line-height: 1.65;
}

a {
  color: var(--wl-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--wl-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(252, 250, 246, 0.92);
  border-bottom: 1px solid rgba(219, 230, 223, 0.95);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.section__inner,
.hero__inner {
  width: min(calc(100% - 2rem), var(--wl-max));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-header__toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--wl-primary);
  color: #fff;
  box-shadow: var(--wl-shadow);
}

.site-header__toggle-box {
  display: inline-grid;
  gap: 0.25rem;
}

.site-header__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-header__toggle-text {
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--wl-text);
  font-weight: 800;
  flex-shrink: 0;
}

.brand-mark__logo {
  display: block;
  width: clamp(95px, 9vw, 130px);
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .current-menu-item a,
.site-nav a:hover,
.site-nav a:focus {
  background: rgba(14, 107, 87, 0.08);
}

.translate-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem;
  border: 1px solid var(--wl-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--wl-shadow);
}

.translate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--wl-primary-dark);
  font-family: "Noto Naskh Arabic", "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.translate-button:hover,
.translate-button:focus {
  color: #fff;
  background: linear-gradient(135deg, #b7863b, #8d6629);
}

.translate-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--wl-accent), #b7863b);
}

.welllife-translate-root,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero__content,
.hero__card,
.content-card,
.service-card,
.faq-item,
.testimonial-card,
.contact-card,
.policy-card {
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
}

.hero__content {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 107, 87, 0.08);
  color: var(--wl-primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 1rem 0;
}

.hero p,
.page-hero p,
.lead {
  color: var(--wl-muted);
  font-size: 1.05rem;
}

.button-row,
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button,
button,
input[type="submit"],
.wpcf7-submit {
  border: 0;
  border-radius: 999px;
  background: var(--wl-primary);
  color: #fff;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--wl-primary-dark);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--wl-primary);
  border: 1px solid var(--wl-primary);
}

.hero__card {
  padding: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(199, 169, 107, 0.3), transparent 45%),
    linear-gradient(180deg, #ffffff, #f7faf8);
}

.hero__highlights,
.card-list,
.check-list,
.price-list,
.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__highlights li,
.check-list li,
.meta-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wl-border);
}

.hero__highlights li:last-child,
.check-list li:last-child,
.meta-list li:last-child {
  border-bottom: 0;
}

.section {
  padding: 1.25rem 0 3.5rem;
}

.section__inner {
  display: grid;
  gap: 1.4rem;
}

.section__header {
  max-width: 760px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 0.4rem 0 0.9rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.service-card,
.testimonial-card,
.contact-card,
.policy-card,
.faq-item {
  padding: 1.5rem;
}

.service-card__price {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(199, 169, 107, 0.16);
  color: #7c5a28;
  font-weight: 700;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-template-default .entry-content,
.single .entry-content {
  width: min(calc(100% - 2rem), 900px);
  margin: 0 auto 3rem;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.site-footer {
  background: #0d241e;
  color: #edf5f0;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer a {
  color: #f3d9a7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(14, 107, 87, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wl-primary);
}

.wpcf7-form p {
  margin: 0 0 1rem;
}

.wpcf7-form label,
.ea-standard label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid #cbd9d0;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--wl-text);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 999;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.admin-note {
  border-left: 4px solid var(--wl-accent);
  padding: 1rem 1rem 1rem 1.2rem;
  background: #fffaf0;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .hero__inner,
  .grid--3,
  .grid--2,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .brand-mark__logo {
    width: clamp(90px, 18vw, 120px);
  }

  .site-header__actions {
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .js .site-header__actions {
    display: none;
  }

  .js .site-header__actions.is-open {
    display: flex;
  }

  .site-header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav,
  .translate-switcher {
    width: 100%;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--wl-border);
  }

  .translate-switcher {
    justify-content: stretch;
  }

  .translate-switcher .translate-button {
    flex: 1 1 0;
  }

  .site-header__actions.is-open {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 2rem;
  }

  .button-row,
  .cta-row {
    flex-direction: column;
  }

  .button,
  .button--ghost,
  button,
  input[type="submit"],
  .wpcf7-submit {
    width: 100%;
    text-align: center;
  }

  .site-header__toggle {
    width: auto;
  }

  .brand-mark__logo {
    width: min(105px, 30vw);
  }

  .translate-switcher .translate-button {
    width: auto;
  }
}
