/*
 * Styles for the "עמוד עם סקשנים" (page-sections.php) flexible-content page
 * builder. Reuses the homepage's design tokens (colors, fonts, pill buttons,
 * rounded photo cards, icon-pill lists) under a `.psec-` namespace so nothing
 * here depends on or collides with the homepage's own section classes.
 * Colors/fonts/background pattern are already inherited globally from body/
 * h1-h4/p rules in style.css (loaded first — see the enqueue dependency).
 */

.psec-hero {
  padding: 220px 20px 60px;
  text-align: center; }
  .psec-hero h1 {
    margin: 0 0 16px; }
  .psec-hero-subtitle {
    color: rgba(26, 28, 28, 0.6);
    font-size: 20px;
    margin: 0; }

.psec-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; }

.psec-sections {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-bottom: 120px; }

.psec h2 {
  font-size: 40px;
  margin-bottom: 24px; }

.psec-richtext {
  font-size: 20px;
  line-height: 1.6; }
  .psec-richtext p {
    margin: 0 0 16px; }
  .psec-richtext p:last-child {
    margin-bottom: 0; }

.psec-paragraph.psec-width-narrow .psec-container {
  max-width: 680px; }

/* ---------- gallery ---------- */
.psec-gallery-grid {
  display: grid;
  gap: 20px; }
  .psec-gallery-grid.psec-cols-2 {
    grid-template-columns: repeat(2, 1fr); }
  .psec-gallery-grid.psec-cols-3 {
    grid-template-columns: repeat(3, 1fr); }
  .psec-gallery-grid.psec-cols-4 {
    grid-template-columns: repeat(4, 1fr); }
.psec-gallery-item {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 40px rgba(44, 63, 70, 0.1); }
  .psec-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; }

/* ---------- text + image ---------- */
.psec-text-image .psec-container {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 60px; }
.psec-text-image.psec-image-left .psec-container {
  flex-direction: row-reverse; }
.psec-ti-visual {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(44, 63, 70, 0.1); }
  .psec-ti-visual img {
    width: 100%;
    display: block; }
.psec-ti-text {
  flex: 1; }

/* ---------- video ---------- */
.psec-video .psec-container {
  max-width: 900px; }
.psec-video-embed {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 40px rgba(44, 63, 70, 0.1); }
  .psec-video-embed iframe,
  .psec-video-embed embed,
  .psec-video-embed object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0; }
.psec-video-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: rgba(26, 28, 28, 0.6); }

/* ---------- contact / details ---------- */
.psec-contact-details .psec-container {
  max-width: 720px; }
.psec-cd-intro {
  margin-bottom: 24px; }
.psec-details-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden; }
.psec-details-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(26, 28, 28, 0.03); }
  .psec-details-row dt {
    font-weight: 700;
    margin: 0; }
  .psec-details-row dd {
    margin: 0;
    color: rgba(26, 28, 28, 0.75);
    text-align: left; }

/* ---------- icon list (echoes the homepage "what we do" pills) ---------- */
.psec-heading-block {
  text-align: center;
  margin-bottom: 40px; }
  .psec-heading-block h2 {
    margin-bottom: 12px; }
.psec-icon-items {
  display: flex;
  flex-direction: column;
  gap: 24px; }
.psec-icon-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px 20px 60px;
  box-sizing: border-box;
  border-radius: 400px; }
  .psec-icon-item:nth-of-type(odd) {
    align-self: flex-start; }
  .psec-icon-item:nth-of-type(even) {
    align-self: flex-end; }
  /* Same 5-color cycle as the homepage's "what we do" pills (section.do .items), repeating every 5th item. */
  .psec-icon-item:nth-of-type(5n+1) {
    background: linear-gradient(0deg, rgba(244, 149, 149, 0.5) 0%, rgba(244, 149, 149, 0.5) 100%), #FFF; }
  .psec-icon-item:nth-of-type(5n+2) {
    background: linear-gradient(0deg, rgba(249, 235, 151, 0.8) 0%, rgba(249, 235, 151, 0.8) 100%), #FFF; }
  .psec-icon-item:nth-of-type(5n+3) {
    background: linear-gradient(0deg, rgba(198, 249, 172, 0.9) 0%, rgba(198, 249, 172, 0.9) 100%), #FFF; }
  .psec-icon-item:nth-of-type(5n+4) {
    background: linear-gradient(0deg, rgba(168, 217, 246, 0.7) 0%, rgba(168, 217, 246, 0.7) 100%), #FFF; }
  .psec-icon-item:nth-of-type(5n+5) {
    background: linear-gradient(0deg, rgba(226, 187, 253, 0.71) 0%, rgba(226, 187, 253, 0.71) 100%), #FFF; }
.psec-icon-thumb {
  flex-shrink: 0;
  background: #FBFDFD;
  border-radius: 400px;
  width: 96px;
  height: 96px;
  display: flex;
  justify-content: center;
  align-items: center; }
  .psec-icon-thumb img {
    height: 55px; }

/* ---------- quote ---------- */
.psec-quote .psec-container {
  max-width: 800px;
  text-align: center; }
.psec-quote blockquote {
  margin: 0;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4; }
.psec-quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 16px;
  color: rgba(26, 28, 28, 0.6); }

/* ---------- cta ---------- */
.psec-cta {
  text-align: center; }
  .psec-cta .psec-container {
    max-width: 700px; }

.psec-btn,
.psec-form-embed input[type="submit"] {
  display: inline-flex;
  margin-top: 20px;
  color: #1A1C1C;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 34px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #FBFDFD;
  box-sizing: border-box;
  border: 2px solid #1A1C1C;
  border-radius: 200px;
  text-decoration: none;
  transition: all 0.2s ease; }
  .psec-btn:hover,
  .psec-form-embed input[type="submit"]:hover {
    background: #1A1C1C;
    color: #FBFDFD; }

/* ---------- form ---------- */
.psec-form .psec-container {
  max-width: 600px;
  text-align: center; }
.psec-form-embed {
  margin-top: 20px;
  text-align: initial; }
  .psec-form-embed .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px; }
  .psec-form-embed input[type="text"],
  .psec-form-embed input[type="email"],
  .psec-form-embed input[type="tel"],
  .psec-form-embed input[type="number"],
  .psec-form-embed input[type="url"],
  .psec-form-embed textarea,
  .psec-form-embed select {
    width: 100%;
    box-sizing: border-box;
    font-family: "Noto Sans Hebrew", sans-serif;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 24px;
    border: 2px solid #1A1C1C;
    background: #FBFDFD;
    color: #1A1C1C; }
  .psec-form-embed textarea {
    min-height: 120px; }
  .psec-form-embed input[type="submit"] {
    align-self: center;
    border-radius: 200px; }
  .psec-form-embed .wpcf7-response-output {
    border-radius: 20px;
    border-color: #1A1C1C !important;
    font-size: 15px; }
  .psec-form-embed .wpcf7-spinner {
    display: none; }

/* ---------- spacer ---------- */
.psec-spacer-small {
  height: 20px; }
.psec-spacer-medium {
  height: 60px; }
.psec-spacer-large {
  height: 120px; }

/* ---------- mobile ---------- */
@media only screen and (max-width: 800px) {
  .psec-hero {
    padding: 130px 20px 40px; }
    .psec-hero h1 {
      font-size: 32px; }
    .psec-hero-subtitle {
      font-size: 16px; }

  .psec-sections {
    gap: 60px;
    padding-bottom: 60px; }

  .psec h2 {
    font-size: 26px; }

  .psec-richtext {
    font-size: 17px; }

  .psec-gallery-grid.psec-cols-3,
  .psec-gallery-grid.psec-cols-4 {
    grid-template-columns: repeat(2, 1fr); }

  .psec-text-image .psec-container,
  .psec-text-image.psec-image-left .psec-container {
    flex-direction: column;
    gap: 30px; }

  .psec-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px; }
    .psec-details-row dd {
      text-align: inherit; }

  .psec-icon-item {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    border-radius: 30px; }
    .psec-icon-item:nth-of-type(odd),
    .psec-icon-item:nth-of-type(even) {
      align-self: stretch; }
  .psec-icon-thumb {
    width: 64px;
    height: 64px; }
    .psec-icon-thumb img {
      height: 36px; }

  .psec-quote blockquote {
    font-size: 22px; }
}
