/*
Theme Name: IvArya Astra Child
Theme URI: https://ivariya.com/
Description: A polished Astra child theme for IvArya, preserving its green and orange identity.
Author: IvArya
Template: astra
Version: 1.1.1
Text Domain: ivariya-astra-child
*/

:root {
  --iv-green: #247a59;
  --iv-green-dark: #14563f;
  --iv-green-soft: #eaf4ee;
  --iv-orange: #e99a4b;
  --iv-ink: #263b34;
  --iv-muted: #66766f;
  --iv-page: #f7faf8;
  --iv-line: #e3ece6;
  --iv-shadow: 0 12px 32px rgba(22, 76, 54, .09);
}

html { scroll-behavior: smooth; }
body { color: var(--iv-ink); background: var(--iv-page); }
a { color: var(--iv-green); transition: color .2s ease; }
a:hover, a:focus { color: var(--iv-green-dark); }

.site-header { position: relative; z-index: 20; box-shadow: 0 4px 20px rgba(20, 66, 48, .06); }
.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar { background: #fff; border-bottom: 1px solid var(--iv-line); }
.ast-container { max-width: 1240px; }
.site-title a, .ast-site-identity .site-title a { color: var(--iv-green-dark); }
.main-header-menu > .menu-item > .menu-link { font-weight: 600; transition: color .2s ease, background .2s ease; }
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link { color: var(--iv-green-dark); background: var(--iv-green-soft); border-radius: 9px; }
.site-content { padding-top: 0; }

.entry-title, .page-title, .woocommerce-products-header__title { color: var(--iv-green-dark); font-weight: 750; line-height: 1.45; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.elementor-widget-heading h1, .elementor-widget-heading h2, .elementor-widget-heading h3 {
  color: var(--iv-green-dark) !important; line-height: 1.5; font-weight: 700; opacity: 1 !important;
}
.entry-content h2, .elementor-widget-heading h2 { position: relative; margin-top: 1.5em; margin-bottom: .7em; }
.entry-content h2:after, .elementor-widget-heading h2:after {
  content: ""; display: block; width: 54px; height: 3px; border-radius: 3px; background: var(--iv-orange); margin-top: 10px;
}
.entry-content p, .entry-content li { color: var(--iv-ink) !important; line-height: 1.95; opacity: 1 !important; }
.entry-content p { margin-bottom: 1.15em; }
.entry-content a { color: var(--iv-green) !important; }
.elementor-widget-text-editor, .elementor-widget-text-editor * { color: var(--iv-ink); line-height: 1.9; }
.elementor-widget-image img, .entry-content img { border-radius: 14px; }

.elementor-button, .ast-button, .button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
input[type="submit"] {
  border: 0 !important; border-radius: 999px !important; background: var(--iv-green) !important; color: #fff !important;
  padding: 12px 24px !important; font-weight: 700 !important; box-shadow: 0 7px 18px rgba(36, 122, 89, .18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.elementor-button:hover, .ast-button:hover, .button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
input[type="submit"]:hover {
  background: var(--iv-green-dark) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 86, 63, .24);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
  border: 1px solid #d7e4dc !important; border-radius: 10px !important; background: #fff; padding: 12px 14px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(36, 122, 89, .18); border-color: var(--iv-green) !important; }

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  padding: 16px !important; border: 1px solid var(--iv-line); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(22, 76, 54, .05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.woocommerce ul.products li.product:hover, .woocommerce-page ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--iv-shadow); }
.woocommerce ul.products li.product img { border-radius: 12px; }
.woocommerce div.product .product_title { color: var(--iv-green-dark); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--iv-green); font-weight: 700; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { border-radius: 12px; border-top-color: var(--iv-green); }
.woocommerce table.shop_table { border: 1px solid var(--iv-line); border-radius: 12px; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--iv-green-soft); color: var(--iv-green-dark); }

.ast-footer-overlay, .site-footer, .site-primary-footer-wrap, .site-below-footer-wrap { background: var(--iv-green-dark); color: #edf7f1; }
.site-footer a, .ast-footer-overlay a, .site-primary-footer-wrap a, .site-below-footer-wrap a { color: #fff; }
.site-footer a:hover, .ast-footer-overlay a:hover { color: #ffd19f; }
.ast-footer-overlay { border-top: 3px solid var(--iv-orange); }

@media (max-width: 921px) {
  .ast-container { padding-left: 20px; padding-right: 20px; }
  .main-header-menu > .menu-item > .menu-link { border-radius: 8px; }
  .entry-content h2, .elementor-widget-heading h2 { margin-top: 1.15em; }
}
@media (max-width: 544px) {
  .ast-container { padding-left: 16px; padding-right: 16px; }
  .entry-title, .page-title, .woocommerce-products-header__title { font-size: 26px; }
  .elementor-widget-image img, .entry-content img { border-radius: 11px; }
  .elementor-button, .ast-button, .button, .woocommerce a.button { padding: 11px 20px !important; }
}

/* Custom footer that restores the existing address, contact and social details. */
.ivariya-footer {
  background: var(--iv-green-dark);
  color: #edf7f1;
  border-top: 3px solid var(--iv-orange);
  padding: 52px 0 34px;
}
.ivariya-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.ivariya-footer-intro { text-align: right; }
.ivariya-footer-kicker { color: #c9e6d4; font-size: 14px; font-weight: 700; }
.ivariya-footer-intro h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 12px 0; }
.ivariya-footer-intro p { color: #e3f0e8; line-height: 1.9; margin: 0 0 22px; }
.ivariya-footer-cta {
  display: inline-block; border: 1px solid rgba(255,255,255,.42); border-radius: 999px;
  padding: 10px 22px; color: #fff !important; font-weight: 700;
}
.ivariya-footer-cta:hover { background: #fff; color: var(--iv-green-dark) !important; }
.ivariya-footer-contact .widget { margin: 0; }
.ivariya-footer-contact .codevz-widget-about { color: #edf7f1; }
.ivariya-footer-contact .codevz-widget-about-content { color: #edf7f1; line-height: 1.9; }
.ivariya-footer-contact img { border-radius: 0 !important; object-fit: contain; }
.ivariya-footer-contact .cz_social_icons a { color: #fff !important; }
.ivariya-footer-contact .cz_social_icons a:hover { color: var(--iv-green-dark) !important; }
.ivariya-footer-contact .widget + .widget { margin-top: 12px; }
.site-footer { display: none !important; }
@media (max-width: 700px) {
  .ivariya-footer { padding: 38px 0 24px; }
  .ivariya-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ivariya-footer-intro, .ivariya-footer-contact { text-align: center; }
}

/* Home page: charcoal canvas with bright, readable service sections. */
body.page-id-907,
body.page-id-907 #content,
body.page-id-907 .site-content,
body.page-id-907 #primary,
body.page-id-907 #main,
body.page-id-907 #post-907,
body.page-id-907 #post-907 .entry-content {
  background: #292c31 !important;
}
body.page-id-907 #post-907 { color: #edf2ef; }
body.page-id-907 #post-907 .entry-title { color: #fff !important; }
body.page-id-907 #post-907 h2,
body.page-id-907 #post-907 h3,
body.page-id-907 #post-907 h4 { color: #f7faf8 !important; }
body.page-id-907 #post-907 p,
body.page-id-907 #post-907 li { color: #d7dfda !important; }
body.page-id-907 #post-907 a:not(.elementor-button):not(.button) { color: #9fdbb9 !important; }
body.page-id-907 #post-907 h2 { margin-bottom: 24px; }
body.page-id-907 #post-907 h2:after { background: var(--iv-orange); }

/* The six existing service links become a consistent, responsive card set. */
body.page-id-907 #post-907 a[href*="/classes/"]:has(img),
body.page-id-907 #post-907 a[href*="post_type=portfolio"]:has(img) {
  display: block; overflow: hidden; padding: 12px; border: 1px solid #454a50; border-radius: 18px;
  background: #33373d; color: #fff !important; box-shadow: 0 10px 26px rgba(0,0,0,.18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.page-id-907 #post-907 a[href*="/classes/"]:has(img):hover,
body.page-id-907 #post-907 a[href*="post_type=portfolio"]:has(img):hover {
  transform: translateY(-5px); border-color: var(--iv-green); box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
body.page-id-907 #post-907 a[href*="/classes/"]:has(img) img,
body.page-id-907 #post-907 a[href*="post_type=portfolio"]:has(img) img {
  display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 12px;
}
body.page-id-907 #post-907 a[href*="/classes/"]:has(img) p,
body.page-id-907 #post-907 a[href*="post_type=portfolio"]:has(img) p {
  color: #fff !important; font-weight: 700; margin: 14px 4px 4px; line-height: 1.7;
}

/* Trainer and testimonial cards inherit the brand's green and orange accents. */
body.page-id-907 #post-907 .cz_team {
  overflow: hidden; background: #34383e !important; border: 1px solid #4a5056; border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.2); padding-bottom: 18px !important;
}
body.page-id-907 #post-907 .cz_team .cz_team_img { border-color: var(--iv-orange) !important; }
body.page-id-907 #post-907 .cz_team .cz_team_content,
body.page-id-907 #post-907 .cz_team .cz_team_content * { color: #f2f5f3 !important; }
body.page-id-907 #post-907 .cz_quote blockquote {
  background: #34383e !important; border: 1px solid #4a5056; border-inline-start: 4px solid var(--iv-orange);
  border-radius: 16px !important; padding: 28px 34px !important; color: #e7ece9 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
body.page-id-907 #post-907 .cz_quote blockquote p { color: #e7ece9 !important; line-height: 1.9; }
body.page-id-907 #post-907 .cz_quote h4 { color: #fff !important; }

/* Newsletter and opening hours sections. */
body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] {
  display: flex; gap: 10px; align-items: center; max-width: 680px; margin: 18px auto 44px;
  padding: 14px; border: 1px solid #454a50; border-radius: 18px; background: #33373d;
}
body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] input[type="email"] { flex: 1; min-width: 0; }
body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] button { white-space: nowrap; }
body.page-id-907 #post-907 b { color: #fff; }
@media (max-width: 700px) {
  body.page-id-907 #post-907 a[href*="/classes/"]:has(img) img,
  body.page-id-907 #post-907 a[href*="post_type=portfolio"]:has(img) img { height: 190px; }
  body.page-id-907 #post-907 .cz_quote blockquote { padding: 22px !important; }
  body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] { flex-direction: column; }
  body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] input,
  body.page-id-907 #post-907 form[name="mc-embedded-subscribe-form"] button { width: 100%; }
}

/* The front page has a static-page body class as well as the page ID. */
body.page-id-907 .entry-header { display: none !important; }
body.page-id-907 #content,
body.page-id-907 .site-content,
body.page-id-907 #primary,
body.page-id-907 #main,
body.page-id-907 #post-907,
body.page-id-907 #post-907 .entry-content { background-color: #292c31 !important; }

/* Cleaner opening-hours panel on the dark homepage canvas. */
body.page-id-907 #post-907 img[src*="shape-ttl.png"] { display: none !important; }
body.page-id-907 #post-907 h2[style*="text-align: center"] { color: #183f30 !important; }
body.page-id-907 #post-907 h2[style*="text-align: center"] + p,
body.page-id-907 #post-907 h2[style*="text-align: center"] ~ b { color: #29483d !important; }
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) {
  background-color: #f1f4f2 !important; border: 1px solid #dce5df; border-radius: 18px; padding: 26px;
}

/* Keep every opening-hours label readable on its light panel. */
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) * { color: #29483d !important; }
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) h2 { color: #183f30 !important; }

/* The two schedule rows sit beside the title panel in the original page markup. */
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) + div,
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) + div + div { color: #29483d !important; }
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) + div *,
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) + div + div * { color: #29483d !important; }

/* Improve contrast for schedule blocks nested beside the centered hours heading. */
body.page-id-907 #post-907 div:has(> div > h2[style*="text-align: center"]) > div:not(:has(h2)),
body.page-id-907 #post-907 div:has(> div > h2[style*="text-align: center"]) > div:not(:has(h2)) * { color: #29483d !important; }

/* Keep the opening-hours schedule labels legible beside the centered title panel. */
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) ~ *,
body.page-id-907 #post-907 div:has(> h2[style*="text-align: center"]) ~ * * { color: #29483d !important; }


/* Site-wide charcoal canvas with high-contrast page typography. */
:root { --iv-page: #292c31; }
html, body, #page, #content, .site-content, #primary, #main,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .site-main,
.ast-page-builder-template .site-content > .ast-container {
  background-color: #292c31 !important;
}
body { color: #e4e9e6; }
.entry-title, .page-title, .woocommerce-products-header__title,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.elementor-widget-heading h1, .elementor-widget-heading h2, .elementor-widget-heading h3 {
  color: #f4f7f5 !important;
}
.entry-content p, .entry-content li, .entry-content td, .entry-content th,
.elementor-widget-text-editor, .elementor-widget-text-editor * {
  color: #d7dfda !important;
}
.entry-content a, .woocommerce div.product p.price,
.woocommerce div.product span.price, .woocommerce ul.products li.product .price {
  color: #9fdbb9 !important;
}
.woocommerce div.product .product_title { color: #f4f7f5 !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product div.summary,
.woocommerce div.product div.images { background-color: #fff; }

/* Compact branded logo in the Astra menu row. */
#masthead .ast-primary-header-bar,
#masthead .ast-primary-header-bar .ast-builder-grid-row,
#masthead .ast-primary-header-bar .ast-builder-grid-row-container {
  min-height: 82px !important; height: 82px !important;
}
#masthead .ast-site-identity { display: flex; align-items: center; gap: 9px; max-width: none; padding: 4px 0 !important; }
#masthead .ast-site-identity .site-title { display: block !important; margin: 0 !important; white-space: nowrap; font-size: 18px; line-height: 1.4; }
#masthead .ast-site-identity .site-title a { color: var(--iv-green-dark) !important; }
#masthead .ast-site-identity .site-description { display: none !important; }
#masthead .ast-site-identity img,
#masthead .ast-site-identity .custom-logo {
  display: block; width: 70px !important; height: 70px !important;
  max-width: 70px !important; max-height: 70px !important; object-fit: contain;
}
#masthead .ast-site-identity a { display: flex; align-items: center; }

/* The facility Smart Slider is the first homepage section on desktop and mobile. */
body.page-id-907 .elementor-element-f005098 { display: block !important; width: 100% !important; margin: 0 !important; }
@media (max-width: 921px) {
  #masthead .ast-primary-header-bar,
  #masthead .ast-primary-header-bar .ast-builder-grid-row,
  #masthead .ast-primary-header-bar .ast-builder-grid-row-container {
    min-height: 72px !important; height: 72px !important;
  }
  #masthead .ast-site-identity img,
  #masthead .ast-site-identity .custom-logo {
    width: 58px !important; height: 58px !important; max-width: 58px !important; max-height: 58px !important;
  }
}

/* Keep the facility slider flush against the menu. */
body.page-id-907 #content, body.page-id-907 .site-content, body.page-id-907 #primary, body.page-id-907 #main, body.page-id-907 #post-907 { margin-top: 0 !important; padding-top: 0 !important; }
body.page-id-907 .elementor-element-f005098, body.page-id-907 .elementor-element-f005098 > .elementor-container, body.page-id-907 .elementor-element-f005098 .elementor-widget-smartslider, body.page-id-907 #n2-ss-2-align { margin-top: 0 !important; padding-top: 0 !important; }

body.page-id-907 .elementor-element-f005098 { margin-top: -10px !important; }
body.page-id-907 #n2-ss-2-align { margin-top: 0 !important; padding-top: 0 !important; }

/* Team page portraits: show only the circular portrait, without the square frame. */
body.page-id-3732 #post-3732 img[src*="/elementor/thumbs/"] {
  border: 0 !important; outline: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  clip-path: circle(44% at 50% 50%); -webkit-clip-path: circle(44% at 50% 50%);
}
body.page-id-3732 #post-3732 .elementor-widget-image .elementor-widget-container,
body.page-id-3732 #post-3732 .cz_team_img { border: 0 !important; outline: 0 !important; box-shadow: none !important; }


/* Modern team profiles: brand-colored cards, uncluttered circular portraits. */
body.page-id-3732 #post-3732 .entry-header {
  max-width: 1180px; margin: 0 auto 28px; padding: 30px 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
body.page-id-3732 #post-3732 .entry-title { font-size: clamp(30px, 4vw, 42px); margin: 0; }
body.page-id-3732 #post-3732 .entry-title::after {
  content: "آشنایی با متخصصان و مربیان ایواریا"; display: block; margin-top: 8px;
  color: #a9d9ba; font-size: 16px; font-weight: 400; line-height: 1.8;
}
body.page-id-3732 #post-3732 .iv-team-card {
  max-width: 1180px; margin: 0 auto 24px !important; padding: 22px !important;
  border: 1px solid rgba(255,255,255,.09) !important; border-radius: 22px !important;
  background: linear-gradient(135deg, #353a40 0%, #30353b 100%) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.18); overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
body.page-id-3732 #post-3732 .iv-team-card:hover {
  border-color: rgba(110,190,140,.42) !important; box-shadow: 0 18px 40px rgba(0,0,0,.24);
  transform: translateY(-2px);
}
body.page-id-3732 #post-3732 .iv-team-card > .elementor-container {
  display: flex; align-items: center; gap: 26px; max-width: 1140px !important;
}
body.page-id-3732 #post-3732 .iv-team-card > .elementor-container > .elementor-column:first-child {
  width: 30% !important; flex: 0 0 30%;
}
body.page-id-3732 #post-3732 .iv-team-card > .elementor-container > .elementor-column:nth-child(2) {
  width: 70% !important; flex: 1 1 70%;
}
body.page-id-3732 #post-3732 .iv-team-card .elementor-column,
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-wrap,
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-image .elementor-widget-container {
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
}
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-image .elementor-widget-container {
  display: flex; justify-content: center; align-items: center;
}
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-image img {
  display: block; width: 224px !important; height: 224px !important; max-width: 100%;
  object-fit: cover; border: 0 !important; outline: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; clip-path: circle(44% at 50% 50%);
  -webkit-clip-path: circle(44% at 50% 50%);
}
body.page-id-3732 #post-3732 .iv-team-name { margin: 0 0 12px !important; }
body.page-id-3732 #post-3732 .iv-team-name .elementor-heading-title {
  color: #fff !important; font-size: clamp(21px, 2.2vw, 27px); font-weight: 750; line-height: 1.5;
  padding-bottom: 10px; border-bottom: 2px solid var(--iv-orange);
}
body.page-id-3732 #post-3732 .iv-team-name a { color: inherit !important; }
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor,
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor * {
  color: #dce4df !important; font-size: 15px; line-height: 1.9;
}
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor p { margin: 0 0 8px; }
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor p:first-child {
  color: #b4dfc2 !important; font-size: 17px; font-weight: 700; margin-bottom: 12px;
}
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor strong { color: #edf4f0 !important; }
body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor a {
  color: #a9d9ba !important; text-decoration: underline; text-decoration-color: rgba(169,217,186,.4);
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  body.page-id-3732 #post-3732 .entry-header { padding: 22px 16px 18px; margin-bottom: 18px; }
  body.page-id-3732 #post-3732 .iv-team-card { margin: 0 0 18px !important; padding: 18px 16px !important; border-radius: 18px !important; }
  body.page-id-3732 #post-3732 .iv-team-card > .elementor-container { flex-direction: column; gap: 12px; }
  body.page-id-3732 #post-3732 .iv-team-card > .elementor-container > .elementor-column:first-child,
  body.page-id-3732 #post-3732 .iv-team-card > .elementor-container > .elementor-column:nth-child(2) { width: 100% !important; flex: 1 1 100%; }
  body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-image img { width: 188px !important; height: 188px !important; }
  body.page-id-3732 #post-3732 .iv-team-name { text-align: center; }
  body.page-id-3732 #post-3732 .iv-team-name .elementor-heading-title { font-size: 22px; }
  body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor,
  body.page-id-3732 #post-3732 .iv-team-card .elementor-widget-text-editor * { font-size: 14px; }
}
