/*
Theme Name: NafasEvent
Theme URI: https://nafasevent.ir/
Description: Child theme for Hello Elementor - Yadegar Nafas project
Author: Abedin Chaleshgar
Author URI: https://solution314.ir/
Template: hello-elementor
Version: 1.0.0
Text Domain: nafasevent
*/

/* =========================================================
   NafasEvent Child Theme
   Base Styles for Yadegar Nafas
   ========================================================= */


/* =========================================================
   1) Root Variables
   ========================================================= */
   
   @font-face {
    font-family: 'IRANSans';
    src: url('assets/fonts/IRANSansWeb.woff2') format('woff2'),
         url('assets/fonts/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IRANSans';
    src: url('assets/fonts/IRANSansWeb_Bold.woff2') format('woff2'),
         url('assets/fonts/IRANSansWeb_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
  /* Brand Colors */
  --nafas-blue: #2BABE3;
  --nafas-green: #8CBF41;
  --nafas-red: #C51A1B;
  --nafas-purple: #2E0EBC;
  --nafas-gray: #575756;

  /* Neutrals */
  --nafas-black: #111111;
  --nafas-white: #FFFFFF;
  --nafas-bg-light: #F9F9F9;
  --nafas-border: #E8E8E8;
  --nafas-muted: #7A7A7A;

  /* Typography */
  --nafas-font-family: "IRANSans", "IRANSansX", Tahoma, Arial, sans-serif;

  /* Layout */
  --nafas-radius-sm: 8px;
  --nafas-radius-md: 14px;
  --nafas-radius-lg: 22px;

  --nafas-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --nafas-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --nafas-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.10);

  --nafas-transition: all 0.25s ease;

  --nafas-container-width: 1200px;
}


/* =========================================================
   2) Global Reset / Base
   ========================================================= */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: var(--nafas-font-family);
  color: var(--nafas-gray);
  background-color: var(--nafas-white);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   3) Selection / Accessibility
   ========================================================= */
::selection {
  background: var(--nafas-blue);
  color: var(--nafas-white);
}

:focus {
  outline: 2px solid rgba(43, 171, 227, 0.35);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(43, 171, 227, 0.45);
  outline-offset: 2px;
}


/* =========================================================
   4) Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.75em;
  color: var(--nafas-black);
  font-family: var(--nafas-font-family);
  line-height: 1.35;
  font-weight: 700;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-top: 0;
  margin-bottom: 1.2em;
}

small {
  font-size: 0.875rem;
  color: var(--nafas-muted);
}

strong,
b {
  font-weight: 700;
  color: var(--nafas-black);
}


/* =========================================================
   5) Links
   ========================================================= */
a {
  color: var(--nafas-blue);
  text-decoration: none;
  transition: var(--nafas-transition);
}

a:hover,
a:focus {
  color: var(--nafas-purple);
  text-decoration: none;
}


/* =========================================================
   6) Lists
   ========================================================= */
ul,
ol {
  margin: 0 0 1.2em 0;
  padding-right: 1.25rem;
  padding-left: 0;
}

li {
  margin-bottom: 0.45em;
}


/* =========================================================
   7) Media
   ========================================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0 0 1.2em 0;
}

iframe,
video,
embed,
object {
  max-width: 100%;
  border: 0;
}


/* =========================================================
   8) Forms
   ========================================================= */
input,
select,
textarea,
button {
  font-family: var(--nafas-font-family);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--nafas-border);
  border-radius: var(--nafas-radius-sm);
  background-color: var(--nafas-white);
  color: var(--nafas-gray);
  transition: var(--nafas-transition);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9B9B9B;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--nafas-blue);
  box-shadow: 0 0 0 4px rgba(43, 171, 227, 0.10);
  outline: none;
}


/* =========================================================
   9) Buttons
   ========================================================= */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.elementor-button,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background-color: var(--nafas-blue);
  color: var(--nafas-white);
  font-family: var(--nafas-font-family);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--nafas-transition);
  box-shadow: var(--nafas-shadow-sm);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.elementor-button:hover,
.wp-element-button:hover {
  background-color: var(--nafas-purple);
  color: var(--nafas-white);
  transform: translateY(-1px);
  box-shadow: var(--nafas-shadow-md);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


/* =========================================================
   10) Tables
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

table th,
table td {
  padding: 12px 14px;
  border: 1px solid var(--nafas-border);
  text-align: right;
}

table th {
  background-color: var(--nafas-bg-light);
  color: var(--nafas-black);
  font-weight: 700;
}


/* =========================================================
   11) Utility Classes
   ========================================================= */
.nafas-container {
  width: 100%;
  max-width: var(--nafas-container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.nafas-section-padding {
  padding-top: 70px;
  padding-bottom: 70px;
}

.nafas-bg-light {
  background-color: var(--nafas-bg-light);
}

.nafas-text-center {
  text-align: center;
}

.nafas-text-right {
  text-align: right;
}

.nafas-text-left {
  text-align: left;
}

.nafas-rounded-sm {
  border-radius: var(--nafas-radius-sm);
}

.nafas-rounded-md {
  border-radius: var(--nafas-radius-md);
}

.nafas-rounded-lg {
  border-radius: var(--nafas-radius-lg);
}

.nafas-shadow-sm {
  box-shadow: var(--nafas-shadow-sm);
}

.nafas-shadow-md {
  box-shadow: var(--nafas-shadow-md);
}

.nafas-shadow-lg {
  box-shadow: var(--nafas-shadow-lg);
}


/* =========================================================
   12) Brand Utility Classes
   ========================================================= */
.nafas-text-blue {
  color: var(--nafas-blue);
}

.nafas-text-green {
  color: var(--nafas-green);
}

.nafas-text-red {
  color: var(--nafas-red);
}

.nafas-text-purple {
  color: var(--nafas-purple);
}

.nafas-bg-blue {
  background-color: var(--nafas-blue);
  color: var(--nafas-white);
}

.nafas-bg-green {
  background-color: var(--nafas-green);
  color: var(--nafas-white);
}

.nafas-bg-red {
  background-color: var(--nafas-red);
  color: var(--nafas-white);
}

.nafas-bg-purple {
  background-color: var(--nafas-purple);
  color: var(--nafas-white);
}


/* =========================================================
   13) Card Base
   ========================================================= */
.nafas-card {
  background-color: var(--nafas-white);
  border-radius: var(--nafas-radius-md);
  box-shadow: var(--nafas-shadow-sm);
  overflow: hidden;
  transition: var(--nafas-transition);
}

.nafas-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nafas-shadow-md);
}


/* =========================================================
   14) Polaroid / Nostalgic Album Card
   ========================================================= */
.nafas-polaroid-card {
  background: var(--nafas-white);
  padding: 12px 12px 24px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nafas-polaroid-card:hover {
  transform: rotate(1deg) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.nafas-polaroid-card img {
  width: 100%;
  border-radius: 2px;
}

.nafas-polaroid-caption {
  padding-top: 14px;
  text-align: center;
}

.nafas-polaroid-title {
  margin: 0 0 6px 0;
  color: var(--nafas-black);
  font-size: 16px;
  font-weight: 700;
}

.nafas-polaroid-meta {
  margin: 0;
  color: var(--nafas-muted);
  font-size: 14px;
}


/* =========================================================
   15) Header Helpers
   ========================================================= */
.site-header,
header.site-header {
  position: relative;
  z-index: 50;
}

.nafas-sticky-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   16) Footer Helpers
   ========================================================= */
.site-footer,
footer.site-footer {
  background-color: var(--nafas-bg-light);
  color: var(--nafas-gray);
}

.site-footer a,
footer.site-footer a {
  color: var(--nafas-gray);
}

.site-footer a:hover,
footer.site-footer a:hover {
  color: var(--nafas-blue);
}


/* =========================================================
   17) Elementor Compatibility
   ========================================================= */
.elementor-widget-text-editor,
.elementor-widget-heading,
.elementor-widget-button,
.elementor-widget-icon-box,
.elementor-widget-image-box {
  word-break: break-word;
}

.elementor img {
  height: auto;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--nafas-container-width);
}


/* =========================================================
   18) WordPress Content Helpers
   ========================================================= */
.alignright {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.alignleft {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 8px;
  color: var(--nafas-muted);
  font-size: 14px;
  text-align: center;
}


/* =========================================================
   19) Responsive
   ========================================================= */
@media (max-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 20px;
  }

  .nafas-section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  h1 {
    font-size: 28px;
    line-height: 1.45;
  }

  h2 {
    font-size: 23px;
    line-height: 1.45;
  }

  h3 {
    font-size: 19px;
  }

  h4 {
    font-size: 18px;
  }

  .nafas-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nafas-section-padding {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .elementor-button,
  .wp-element-button {
    width: auto;
    min-height: 44px;
    padding: 10px 18px;
  }
}


/* =========================================================
   20) Safety / Poka-Yoke Layer
   ========================================================= */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a,
button,
input,
select,
textarea {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.elementor-widget-image img,
.elementor-widget-theme-post-featured-image img {
  max-width: 100%;
  height: auto;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ========================================
   Album Listing - Polaroid Cards
======================================== */

.jet-listing-grid__item {
    min-width: 0;
}

.nafas-polaroid-card {
    height: 100%;
    padding: 12px 12px 24px;
    background: #ffffff;
    border: 1px solid rgba(87, 87, 86, 0.08);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(46, 14, 188, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nafas-polaroid-card:hover {
    transform: rotate(1deg) scale(1.02);
    box-shadow: 0 16px 34px rgba(46, 14, 188, 0.16);
}

.nafas-polaroid-card .jet-listing-dynamic-image {
    display: block;
    overflow: hidden;
}

.nafas-polaroid-card .jet-listing-dynamic-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nafas-polaroid-card:hover .jet-listing-dynamic-image img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .nafas-polaroid-card {
        padding: 10px 10px 20px;
    }

    .nafas-polaroid-card .jet-listing-dynamic-image img {
        height: 210px;
    }

    .nafas-polaroid-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Yadegar Nafas – Event archive & event cards
   ========================================================================== */

/* کارت اصلی رویداد */
.nafas-event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(32, 73, 69, 0.10);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(21, 54, 50, 0.07);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

/* افکت حرکت نرم روی کارت */
.nafas-event-card:hover {
    transform: translateY(-7px);
    border-color: rgba(28, 122, 105, 0.28);
    box-shadow: 0 18px 38px rgba(21, 54, 50, 0.14);
}

/* قاب تصویر رویداد */
.nafas-event-card__image {
    overflow: hidden;
    line-height: 0;
}

/* تصویر شاخص */
.nafas-event-card__image img,
.nafas-event-card .elementor-widget-image img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* زوم کنترل‌شده تصویر در هاور */
.nafas-event-card:hover .nafas-event-card__image img,
.nafas-event-card:hover .elementor-widget-image img {
    transform: scale(1.05);
}

/* بخش متنی کارت */
.nafas-event-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

/* عنوان رویداد */
.nafas-event-card__title,
.nafas-event-card__title a {
    color: var(--nafas-text, #1d3532);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nafas-event-card__title {
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.8;
}

.nafas-event-card:hover .nafas-event-card__title,
.nafas-event-card:hover .nafas-event-card__title a {
    color: var(--nafas-primary, #15786b);
}

/* تاریخ، مکان و سایر داده‌های متا */
.nafas-event-card__meta {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 7px;
    color: #667773;
    font-size: 14px;
    line-height: 1.9;
}

.nafas-event-card__meta i,
.nafas-event-card__meta svg {
    color: var(--nafas-primary, #15786b);
}

/* دکمه پایین کارت */
.nafas-event-card__button {
    margin-top: auto;
    padding-top: 18px;
}

.nafas-event-card__button .elementor-button {
    border-radius: 10px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nafas-event-card__button .elementor-button:hover {
    transform: translateX(-3px);
}

/* فاصله گرید رویدادها */
.nafas-events-archive-grid .jet-listing-grid__items {
    row-gap: 28px;
}

/* نسخه موبایل */
@media (max-width: 767px) {
    .nafas-event-card__image img,
    .nafas-event-card .elementor-widget-image img {
        height: 210px;
    }

    .nafas-event-card__content {
        padding: 18px;
    }

    .nafas-event-card__title {
        font-size: 18px;
    }
}

/* استایل ویدئو یادگار نفس */
.single-videos .elementor-fit-aspect-ratio {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nafas-video-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
}

.nafas-video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
