/* ==========================================================================
   Poiana Brașov — stiluri principale

   1. Variabile
   2. Bază
   3. Layout și utilitare
   4. Butoane
   5. Antet și navigare
   6. Hero
   7. Linkuri rapide
   8. Secțiuni, carduri, grile
   9. Bandă CTA și FAQ
  10. Subsol
  11. Pagini, articole și WordPress core
  12. Responsive
  13. Preferințe de mișcare
   ========================================================================== */

/* 1. Variabile
   ========================================================================== */
:root {
  --navy: #101b3a;
  --red: #cf3329; /* contrast 5:1 pe alb (WCAG AA) */
  --red-hover: #b02a21;
  --red-tint: #fff0ef;
  --ink: #17213a;
  --muted: #626d7d;
  --cream: #f5f7fa;
  --line: #e7eaf0;
  --focus-on-dark: #ffab9e;
  --max: 1180px;
  --gutter: 40px;
  --radius: 4px;
  --shadow: 0 18px 45px rgba(16, 27, 58, 0.09);
}

/* 2. Bază
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}
h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.topbar :focus-visible,
.hero :focus-visible,
.banner :focus-visible,
.stats :focus-visible,
.footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: #fff;
  color: var(--navy);
}

/* 3. Layout și utilitare
   ========================================================================== */
.container {
  width: min(var(--container-max, var(--max)), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.container--narrow {
  --container-max: 820px;
}

.section {
  padding: 100px 0;
}

.section-light {
  background: var(--cream);
}

.section-header {
  max-width: 725px;
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
  margin: 0 auto 48px;
}

.section-header p {
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 65px;
  align-items: center;
}

.cover-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 25px 0 32px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: #35405a;
}

.checks li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.inline-link {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.inline-link:hover {
  text-decoration: underline;
}

.info-panel {
  margin-top: 27px;
  padding: 26px 30px;
  background: #fff;
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow);
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.photo-frame {
  position: relative;
  min-height: 440px;
}

.photo-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-tag {
  position: absolute;
  right: -18px;
  bottom: -22px;
  max-width: 200px;
  padding: 22px 28px;
  background: var(--red);
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
}

/* 4. Butoane
   ========================================================================== */
.btn,
.search-submit,
.form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover,
.search-submit:hover,
.form-submit .submit:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* 5. Antet și navigare
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #e3e9f5;
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.topbar-lead {
  text-transform: uppercase;
}

.topbar strong {
  color: #fff;
}

.topbar-links {
  display: flex;
  gap: 25px;
}

.topbar a:hover {
  text-decoration: underline;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 3px 24px rgba(10, 22, 45, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.brand-name {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.custom-logo {
  width: auto;
  max-height: 56px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a {
  color: var(--red);
}

.menu-button {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-size: 1.45rem;
  cursor: pointer;
}

/* 6. Hero
   ========================================================================== */
.hero,
.banner {
  position: relative;
  isolation: isolate;
  color: #fff;
}

.hero::after,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 660px;
  background: #283b55;
}

.hero::after {
  background: linear-gradient(
    90deg,
    rgba(10, 20, 43, 0.9) 0%,
    rgba(10, 20, 43, 0.76) 42%,
    rgba(10, 20, 43, 0.23) 100%
  );
}

.hero .cover-image {
  object-position: center 52%;
}

.hero-content {
  max-width: 750px;
  padding: 92px 0 130px;
}

.hero .eyebrow,
.banner .eyebrow {
  color: #ff9088;
}

.hero h1 {
  margin-bottom: 23px;
  color: #fff;
}

.hero h1 span {
  color: #ff746a;
}

.hero p {
  max-width: 610px;
  margin-bottom: 28px;
  color: #e1e7f1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 7. Linkuri rapide
   ========================================================================== */
.quick-area {
  position: relative;
  z-index: 3;
  margin-top: -68px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick {
  display: block;
  padding: 33px 25px;
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}

.quick:last-child {
  border-right: 0;
}

.quick:hover {
  background: #f8f9fc;
}

.quick-icon,
.feature-icon {
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
}

.quick-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.quick-body {
  display: block;
}

.quick-title {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.18;
}

.quick-text {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

/* 8. Secțiuni, carduri, grile
   ========================================================================== */
.stats {
  padding: 36px 0;
  background: var(--navy);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 2rem;
  line-height: 1.1;
}

.stat span {
  color: #c8d1e5;
  font-size: 0.87rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 27, 58, 0.045);
}

.card-picture {
  height: 225px;
  overflow: hidden;
  background: #dae1ed;
}

.card-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card-picture img {
  transform: scale(1.04);
}

.card-body {
  padding: 29px;
}

.card-body h3 {
  margin-bottom: 12px;
}

.card-body p {
  font-size: 0.93rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  font-size: 1.5rem;
}

.feature h3 {
  margin-bottom: 7px;
}

.feature p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* 9. Bandă CTA și FAQ
   ========================================================================== */
.banner {
  padding: 78px 0;
  overflow: hidden;
  background: var(--navy);
}

.banner::after {
  background: linear-gradient(
    90deg,
    rgba(16, 27, 58, 0.96),
    rgba(16, 27, 58, 0.78)
  );
}

.banner-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.banner h2 {
  margin-bottom: 10px;
  color: #fff;
}

.banner p {
  max-width: 700px;
  margin: 0;
  color: #dbe2f0;
}

.faq {
  max-width: 910px;
  margin: auto;
}

.faq details {
  margin-bottom: 12px;
  padding: 0 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq summary {
  position: relative;
  padding: 21px 30px 21px 0;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 0;
  color: var(--red);
  font-size: 1.35rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding-bottom: 21px;
}

/* 10. Subsol
   ========================================================================== */
.footer {
  padding: 66px 0 24px;
  background: #0b1430;
  color: #d2d9e6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 62px;
}

.footer-about {
  margin-top: 24px;
}

.footer-title {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 700;
}

.footer p {
  color: #bdc8da;
  font-size: 0.9rem;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 11px;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer .brand-name {
  color: #fff;
}

.footer .brand-name small {
  color: #abb9d1;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #29334e;
  color: #aebbd2;
  font-size: 0.77rem;
}

.foot-bottom .credits a {
  text-decoration: underline;
}

/* 11. Pagini, articole și WordPress core
   ========================================================================== */
.page-header {
  margin-bottom: 36px;
}

.entry-title,
.page-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.entry-content p,
.entry-content li {
  color: #35405a;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
}

.entry-content a,
.comment-content a {
  color: var(--red);
  text-decoration: underline;
}

.entry-content img,
.entry-content video {
  height: auto;
  border-radius: var(--radius);
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 24px;
  border-left: 5px solid var(--red);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  margin-bottom: 28px;
  border-radius: var(--radius);
}

.post-list {
  display: grid;
  gap: 24px;
}

.post-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.post-card h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.post-card h2 a:hover {
  color: var(--red);
}

.post-card p {
  margin-bottom: 14px;
}

.pagination,
.comments-area,
.post-navigation {
  margin-top: 48px;
}

.pagination .nav-links,
.post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.pagination .page-numbers {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

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

.comment-body {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d0dc;
  border-radius: var(--radius);
  font: inherit;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.search-form label {
  flex: 1;
}

.not-found .search-form {
  margin: 0 auto 24px;
}

.not-found {
  text-align: center;
}

.alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption,
.gallery-caption,
.wp-caption-text,
.sticky,
.bypostauthor {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.admin-bar .nav-wrap {
  top: 32px;
}

/* 12. Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .primary-menu {
    gap: 14px;
  }

  .nav-cta {
    display: none;
  }

  .two-col {
    gap: 35px;
  }

  .quick {
    padding: 26px 18px;
  }
}

@media (max-width: 782px) {
  .admin-bar .nav-wrap {
    top: 46px;
  }
}

@media (max-width: 780px) {
  .topbar-links {
    display: none;
  }

  .nav {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .primary-menu {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 20px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.13);
  }

  .primary-menu.open {
    display: flex;
  }

  .primary-menu a {
    display: block;
    padding: 12px 4px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-content {
    padding: 80px 0 110px;
  }

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

  .quick:nth-child(2) {
    border-right: 0;
  }

  .quick:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .two-col,
  .cards,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    min-height: auto;
  }

  .photo-frame img {
    height: 380px;
  }

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

  .section {
    padding: 75px 0;
  }

  .banner-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .admin-bar .nav-wrap {
    top: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 30px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 21px;
  }

  .hero {
    min-height: 550px;
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(10, 20, 43, 0.9),
      rgba(10, 20, 43, 0.55)
    );
  }

  .hero p {
    font-size: 0.99rem;
  }

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

  .quick {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick:last-child {
    border-bottom: 0;
  }

  .quick-icon {
    flex-shrink: 0;
    margin: 0;
  }

  .photo-frame img {
    height: 290px;
  }

  .photo-tag {
    right: 0;
    padding: 14px;
    font-size: 0.85rem;
  }

  .feature {
    padding: 21px;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

/* 13. Preferințe de mișcare
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
