/*
Theme Name: Parohia Reminder Theme
Theme URI: https://example.ro
Author: Parohia Reminder
Description: Tema publică pentru Parohia Reminder.
Version: 0.2.0
Text Domain: parohia-reminder-theme
Requires at least: 6.6
*/

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

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--wp--preset--color--background, #f7f5f0);
  color: var(--wp--preset--color--text, #1d2534);
  font-family: "Alegreya Sans", "Segoe UI", Verdana, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--wp--preset--color--text, #1d2534);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border-bottom: 1px solid rgba(30, 39, 58, 0.1);
  backdrop-filter: blur(4px);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}

.site-branding h1 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.01em;
}

.site-branding p {
  margin: 0;
  color: var(--wp--preset--color--muted, #425064);
  font-size: 0.9rem;
}

.site-branding a {
  color: inherit;
  text-decoration: none;
}

.site-header nav {
  margin: 0;
}

.site-header ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.site-header ul a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-header li a {
  color: var(--wp--preset--color--text, #1d2534);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.site-header li a:hover,
.site-header li a:focus-visible {
  border-color: var(--wp--preset--color--accent, #7c2d2d);
  opacity: 0.85;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.section {
  background: var(--wp--preset--color--surface, #ffffff);
  border: 1px solid rgba(30, 39, 58, 0.08);
  border-radius: 14px;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
}

.hero {
  margin-top: 1.4rem;
  background: var(--wp--preset--gradient--calm-gradient, linear-gradient(140deg, #122c54, #6f2d31 70%, #223b2b));
  color: #fff;
}

.hero h1 {
  color: #fff;
  margin-top: 0.1rem;
}

.hero p {
  max-width: 70ch;
}

.hero .highlight {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.95;
}

.hero a {
  margin-right: 0.6rem;
}

.lead {
  font-size: 1.07rem;
  color: #e8eef8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  text-decoration: none;
  padding: 0.75rem 1rem;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:focus-visible {
  outline: 3px solid rgba(124, 45, 45, 0.45);
  outline-offset: 2px;
}

.button--primary:focus-visible {
  background: #f2f5fc;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.93;
}

input,
textarea,
select,
button {
  font-size: 16px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(124, 45, 45, 0.45);
  outline-offset: 2px;
}

.button,
.contact-card,
.section {
  word-break: break-word;
}

.hero .button {
  margin-bottom: 0.65rem;
}

.field-error {
  color: #8a2f2f;
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
}

form p {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.button--primary {
  background: #ffffff;
  color: var(--wp--preset--color--primary, #1c3f6f);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button--light {
  background: var(--wp--preset--color--surface, #fff);
  color: var(--wp--preset--color--text, #1d2534);
}

.grid {
  display: grid;
  gap: 1rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section h2 {
  margin-top: 0;
}

.step-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.step-list li {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(30, 39, 58, 0.08);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: var(--wp--preset--color--background, #f7f5f0);
}

.step-list li strong {
  color: var(--wp--preset--color--primary, #1c3f6f);
}

.icon-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.icon-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wp--preset--color--primary, #1c3f6f);
}

.icon-circle svg {
  width: 20px;
  height: 20px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-card {
  background: var(--wp--preset--color--background, #f7f5f0);
  border-radius: 10px;
  padding: 1rem;
}

.contact-card a {
  color: var(--wp--preset--color--text, #1d2534);
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.faq-list {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-list li {
  margin-bottom: 0.7rem;
}

.breadcrumbs {
  margin: 0.6rem auto 1rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumbs li + li::before {
  content: " / ";
  color: #4b5f77;
}

.small-text {
  color: var(--wp--preset--color--muted, #4b5f77);
  font-size: 0.94rem;
  margin-top: 0.7rem;
}

details.contact-card {
  display: block;
  cursor: pointer;
}

details.contact-card summary {
  font-weight: 700;
  cursor: pointer;
}

.about-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
}

.about-hero img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(30, 39, 58, 0.1);
}

.how-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: how-step;
}

.how-grid li {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.95rem 1rem 0.95rem 3.1rem;
  border: 1px solid rgba(30, 39, 58, 0.1);
  border-radius: 10px;
  background: #fff;
}

.how-grid li::before {
  counter-increment: how-step;
  content: counter(how-step);
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wp--preset--color--accent, #7c2d2d);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  font: inherit;
  border-radius: 8px;
  border: 1px solid rgba(30, 39, 58, 0.2);
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.form-grid label {
  display: block;
}

.form-grid .field-error + input,
.form-grid .field-error + textarea {
  border-color: #b23f3f;
}

.form-grid textarea,
.form-grid button,
.form-grid p,
.form-grid label[for="contact-privacy"] {
  grid-column: 1 / -1;
}
.form-feedback {
  margin-bottom: 0.85rem;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.form-feedback--success {
  background: #eaf7ec;
  border: 1px solid #79ba72;
  color: #173f1f;
}

.form-feedback--error {
  background: #fff0f0;
  border: 1px solid #d98a8a;
  color: #722020;
}

.form-feedback p {
  margin: 0.3rem 0;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.form-grid label[for="contact-subject"] + #contact-subject,
.form-grid label[for="contact-message"] + #contact-message {
  margin-bottom: 0;
}

.map-wrap {
  margin-top: 1rem;
}

.map-frame {
  margin-top: 0.8rem;
  min-height: 360px;
  border: 1px solid rgba(30, 39, 58, 0.2);
  border-radius: 12px;
  overflow: hidden;
  display: none;
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.notice {
  background: #fff8dc;
  border: 1px solid #efd89c;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(30, 39, 58, 0.15);
}

.site-footer p {
  margin: 0;
}

.site-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--wp--preset--color--text, #1d2534);
}

.whatsapp-fixed {
  position: fixed;
  right: 1rem;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
  z-index: 25;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.whatsapp-fixed svg {
  width: 26px;
  height: 26px;
}

.whatsapp-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.whatsapp-fixed:hover,
.whatsapp-fixed:focus-visible {
  opacity: 0.93;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: #1d2534;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero .button {
    width: 100%;
  }

  .grid--3,
  .contact-cards,
  .grid--2,
  .about-hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .site-header ul {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .site-header li a {
    white-space: nowrap;
    padding-inline: 0.75rem;
  }

  .whatsapp-fixed {
    width: 50px;
    height: 50px;
    right: 0.8rem;
    bottom: calc(6.2rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, calc(100% - 1.2rem));
    padding: 1.2rem 0;
  }

  .hero {
    padding: clamp(1rem, 5vw, 1.4rem);
  }

  .contact-cards,
  .grid,
  .grid--2,
  .grid--3 {
    gap: 0.8rem;
  }

  .map-frame {
    min-height: 290px;
  }

  .map-frame iframe {
    height: 290px;
  }

  .site-footer ul {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .button {
    width: 100%;
    text-align: center;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header ul {
    width: 100%;
  }
}

/* -------------------------------
   Modern refresh for homepage/theme
   ------------------------------- */
.site-branding .brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo .custom-logo {
  width: clamp(40px, 8vw, 56px);
  height: clamp(40px, 8vw, 56px);
  max-width: clamp(40px, 8vw, 56px);
  max-height: clamp(40px, 8vw, 56px);
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 6px 18px rgba(17, 34, 53, 0.18);
  border: 1px solid rgba(25, 51, 81, 0.14);
  background: #fff;
  padding: 0.25rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, #1c3f6f, #2d6a4f);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #14253f;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: rgba(20, 37, 63, 0.72);
  margin-top: 0.14rem;
}

.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(20, 37, 63, 0.12);
  box-shadow: 0 12px 30px -28px rgba(17, 34, 53, 0.35);
  backdrop-filter: blur(12px);
}

.hero.hero-modern {
  margin-top: 1.4rem;
  background: linear-gradient(130deg, #0f4c81 0%, #2a6b63 45%, #7b3f46 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero.hero-modern::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -18%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero.hero-modern .highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero.hero-modern h1 {
  margin-top: 0.25rem;
  max-width: 18ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.hero.hero-modern .lead {
  color: rgba(245, 250, 255, 0.94);
}

.hero-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__panel {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1rem;
  align-self: stretch;
  z-index: 1;
}

.hero__panel h2 {
  color: #fff;
  margin-top: 0.2rem;
}

.hero-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.hero-status:last-of-type {
  margin-bottom: 0.5rem;
}

.hero-dot {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.36rem;
  border-radius: 999px;
  background: #f8d57e;
  box-shadow: 0 0 0 0.35rem rgba(248, 213, 126, 0.25);
  flex: none;
}

.hero-status p {
  margin: 0;
  color: rgba(244, 250, 255, 0.92);
}

.hero .small-text {
  margin-top: 1rem;
  color: rgba(244, 250, 255, 0.92);
}

.section--flat {
  background: linear-gradient(180deg, #f8f9fc, #fff);
  border-color: rgba(20, 37, 63, 0.08);
}

.section--soft {
  background: linear-gradient(180deg, #f8fbfe, #f2f6fb);
  border-color: rgba(20, 37, 63, 0.1);
}

.section {
  border-radius: 1rem;
  box-shadow: 0 20px 50px -42px rgba(18, 34, 59, 0.45);
}

.feature-grid {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  margin: 0;
  border-radius: 0.95rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.93));
  border: 1px solid rgba(20, 37, 63, 0.1);
  padding: 1rem;
}

.timeline {
  list-style: none;
  counter-reset: timeline;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  margin: 0;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid rgba(20, 37, 63, 0.11);
  border-radius: 0.9rem;
  background: #fff;
}

.timeline li::before {
  counter-increment: timeline;
  content: counter(timeline);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1c3f6f, #2d6a4f);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline h3 {
  margin-top: 0;
}

.timeline p {
  margin-bottom: 0;
}

.faq-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.faq-grid li {
  margin: 0;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 0.8rem;
  border: 1px solid rgba(20, 37, 63, 0.1);
}

.contact-card {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid rgba(20, 37, 63, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -20px rgba(20, 37, 63, 0.35);
}

.contact-card svg {
  width: 22px;
  height: 22px;
  color: #1c3f6f;
}

.button--primary {
  color: #102b52;
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.button--light {
  background: #fff;
  border: 1px solid rgba(20, 37, 63, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: pr-reveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0.08s;
}

.hero__content.reveal {
  animation-delay: 0.05s;
}

.hero__panel.reveal {
  animation-delay: 0.18s;
}

@keyframes pr-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero.hero-modern {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero.hero-modern {
    margin-top: 0.8rem;
    border-radius: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    padding: 0.9rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.84rem;
  }
}
