/*
 * Mahdiyar Site Foundation — visual layer
 * Palette: Cyan / Magenta / White / Navy
 */
:root {
  --my-cyan: #00B8D9;
  --my-magenta: #D81B60;
  --my-white: #FFFFFF;
  --my-navy: #172B4D;
  --my-text: #333B49;
  --my-muted: #667085;
  --my-bg: #F5F8FB;
  --my-border: #E2E8F0;
  --my-radius: 16px;
  --my-shadow: 0 8px 24px rgba(23, 43, 77, .07);
}

html { scroll-behavior: smooth; }
body {
  color: var(--my-text);
  background: var(--my-bg);
  line-height: 1.9;
}
a { color: var(--my-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--my-magenta); }
h1, h2, h3, h4, h5, h6,
.entry-title, .widget-title {
  color: var(--my-navy);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
p { line-height: 1.95; }
.ast-container { max-width: 1240px; }
.site-header, .ast-primary-header-bar, .ast-above-header-bar, .ast-below-header-bar {
  background: var(--my-white);
}
.site-header { box-shadow: 0 3px 18px rgba(23, 43, 77, .045); }
.main-header-menu .menu-link,
.ast-builder-menu .menu-item > .menu-link {
  font-weight: 600;
  transition: color .18s ease;
}
.main-header-menu .menu-link:hover,
.ast-builder-menu .menu-item > .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
  color: var(--my-magenta);
}
button, .button, input[type="button"], input[type="submit"],
input[type="reset"], .wp-block-button__link, .ast-button,
a.ast-custom-button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--my-magenta);
  color: var(--my-white);
  border: 1px solid var(--my-magenta);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(216, 27, 96, .13);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
button:hover, .button:hover, input[type="button"]:hover,
input[type="submit"]:hover, .wp-block-button__link:hover,
.ast-button:hover, a.ast-custom-button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
  background: var(--my-navy);
  border-color: var(--my-navy);
  color: var(--my-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 43, 77, .15);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--my-navy);
  background: transparent;
  border: 1.5px solid var(--my-cyan);
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: var(--my-white);
  background: var(--my-cyan);
  border-color: var(--my-cyan);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select, textarea {
  border: 1px solid var(--my-border);
  border-radius: 10px;
  background: var(--my-white);
  color: var(--my-text);
  padding: 11px 13px;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--my-cyan);
  outline: 3px solid rgba(0, 184, 217, .15);
}
.wp-block-separator { border-color: var(--my-border); }
.wp-block-group, .wp-block-cover, .wp-block-media-text {
  border-radius: var(--my-radius);
}
.wp-block-cover { overflow: hidden; }
.wp-block-columns { gap: 24px; }
.wp-block-column, .wp-block-group.is-style-default {
  min-width: 0;
}
.wp-block-image img, .wp-block-post-featured-image img {
  border-radius: 12px;
}
.wp-block-table table { border-color: var(--my-border); }
.wp-block-table th { background: #EAFBFE; color: var(--my-navy); }
.entry-content > * { margin-block-end: 1.35em; }
.entry-content .wp-block-heading { margin-top: 1.5em; }
.ast-separate-container .ast-article-single,
.ast-separate-container .comments-area,
.ast-separate-container .ast-archive-description,
.ast-separate-container .ast-author-box {
  background: var(--my-white);
  border: 1px solid var(--my-border);
  border-radius: var(--my-radius);
  box-shadow: var(--my-shadow);
}
.site-footer, .site-below-footer-wrap, .ast-small-footer {
  background: var(--my-navy);
  color: rgba(255,255,255,.88);
}
.site-footer a, .site-below-footer-wrap a { color: var(--my-white); }
.site-footer a:hover, .site-below-footer-wrap a:hover { color: var(--my-cyan); }
.ast-footer-copyright, .site-footer-section { color: rgba(255,255,255,.82); }
::selection { color: var(--my-white); background: var(--my-magenta); }
@media (max-width: 768px) {
  .ast-container { padding-left: 18px; padding-right: 18px; }
  h1, .entry-title { font-size: clamp(28px, 7vw, 38px); }
  h2 { font-size: clamp(24px, 5.8vw, 31px); }
  h3 { font-size: clamp(20px, 5vw, 25px); }
  .wp-block-columns { gap: 16px; }
  button, .button, .wp-block-button__link, .ast-button,
  .woocommerce a.button, .woocommerce button.button {
    max-width: 100%;
  }
}
