/*
Theme Name: GPMCO Astra Child
Theme URI: https://gpmcogroup.com/
Description: قالب اختصاصی و به‌روزرسانی‌پذیر شرکت مدیران پروژه‌های سبز هوشمند؛ ساخته‌شده به‌صورت Child Theme برای Astra.
Author: GPMCO
Author URI: https://gpmcogroup.com/
Template: astra
Version: 1.2.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: gpmco
*/

:root {
  --gpm-green: #a8df00;
  --gpm-green-dark: #74a500;
  --gpm-ink: #182429;
  --gpm-navy: #123d50;
  --gpm-muted: #65757d;
  --gpm-cloud: #f4f7f5;
  --gpm-white: #fff;
  --gpm-radius: 18px;
  --gpm-shadow: 0 20px 60px rgba(15, 40, 50, .12);
  --gpm-container: min(1180px, calc(100% - 48px));
}

html { scroll-behavior: smooth; }
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body { margin: 0; overflow-x: hidden; color: var(--gpm-ink); background: #fff; font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.8; text-rendering: optimizeLegibility; }
body.rtl { direction: rtl; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
.gpm-container { width: var(--gpm-container); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.gpm-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(24,36,41,.08); backdrop-filter: blur(14px); }
.gpm-header__inner { min-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 2vw, 30px); }
.gpm-brand, .custom-logo-link { display: inline-grid; place-items: center; width: 126px; }
.gpm-brand img, .custom-logo-link img { display: block; width: 118px; max-height: 82px; object-fit: contain; }
.gpm-nav { display: flex; align-items: center; gap: clamp(12px, 1.35vw, 22px); font-size: clamp(12px, .9vw, 14px); font-weight: 600; line-height: 1.65; white-space: nowrap; }
.gpm-nav--right { justify-content: flex-start; }
.gpm-nav--left { justify-content: flex-end; }
.gpm-nav a { position: relative; padding: 14px 0; transition: color .2s ease; }
.gpm-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 2px; background: var(--gpm-green); transform: scaleX(0); transition: transform .25s ease; }
.gpm-nav a:hover, .gpm-nav a:focus-visible, .gpm-nav .is-current { color: var(--gpm-green-dark); }
.gpm-nav a:hover::after, .gpm-nav a:focus-visible::after, .gpm-nav .is-current::after { transform: scaleX(1); }
.gpm-nav__cta { padding: 11px 16px !important; border: 1px solid var(--gpm-green); border-radius: 999px; }
.gpm-nav__cta::after { display: none; }
.gpm-menu-toggle { display: none; align-items: center; gap: 9px; border: 0; background: var(--gpm-ink); color: #fff; border-radius: 10px; padding: 9px 13px; font-weight: 700; cursor: pointer; }
.gpm-menu-toggle__icon, .gpm-menu-toggle__icon::before, .gpm-menu-toggle__icon::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.gpm-menu-toggle__icon { position: relative; }
.gpm-menu-toggle__icon::before, .gpm-menu-toggle__icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.gpm-menu-toggle__icon::before { top: -6px; }
.gpm-menu-toggle__icon::after { top: 6px; }
.gpm-menu-toggle[aria-expanded="true"] .gpm-menu-toggle__icon { background: transparent; }
.gpm-menu-toggle[aria-expanded="true"] .gpm-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.gpm-menu-toggle[aria-expanded="true"] .gpm-menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }
.gpm-mobile-nav { display: none; }

/* Hero */
.gpm-hero { min-height: 650px; position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; background: #0d3445 url("assets/images/hero-bg.jpg") center/cover no-repeat; }
.gpm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(12,47,63,.95) 5%, rgba(12,47,63,.70) 48%, rgba(142,170,12,.30) 100%); }
.gpm-hero::after { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid rgba(168,223,0,.28); border-radius: 50%; inset-inline-end: -180px; top: -160px; box-shadow: 0 0 0 80px rgba(168,223,0,.04), 0 0 0 160px rgba(168,223,0,.03); }
.gpm-hero__inner { position: relative; z-index: 2; width: var(--gpm-container); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-block: 70px; }
.gpm-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gpm-green); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.gpm-eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.gpm-hero h1 { margin: 18px 0; color: #fff; font-size: clamp(36px, 5vw, 68px); line-height: 1.28; font-weight: 800; }
.gpm-hero h1 span { color: var(--gpm-green); }
.gpm-hero__lead { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,.86); font-size: clamp(17px, 2vw, 21px); line-height: 2; }
.gpm-hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 34px; padding: 0; list-style: none; color: #fff; }
.gpm-hero__bullets li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 8px; color: var(--gpm-ink); background: var(--gpm-green); border-radius: 50%; font-size: 13px; font-weight: 900; }
.gpm-hero__visual { position: relative; display: grid; place-items: center; }
.gpm-hero__visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.10); filter: blur(2px); }
.gpm-hero__visual img { position: relative; width: min(470px, 92%); aspect-ratio: 1; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 28px 45px rgba(0,0,0,.28)); animation: gpm-float 6s ease-in-out infinite; }
@keyframes gpm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.gpm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gpm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.gpm-button:hover { transform: translateY(-2px); }
.gpm-button--primary { background: var(--gpm-green); color: var(--gpm-ink); box-shadow: 0 12px 30px rgba(168,223,0,.25); }
.gpm-button--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.gpm-button--dark { background: var(--gpm-ink); color: #fff; }

/* Sections */
.gpm-section { padding: clamp(72px, 9vw, 120px) 0; }
.gpm-section--muted { background: var(--gpm-cloud); }
.gpm-section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.gpm-section__head h2 { margin: 8px 0 14px; color: var(--gpm-ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.4; }
.gpm-section__head p { margin: 0; color: var(--gpm-muted); font-size: 17px; line-height: 1.9; }
.gpm-trust-line { padding: 26px 0; color: #fff; background: var(--gpm-ink); }
.gpm-trust-line__inner { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: clamp(15px, 2vw, 19px); }
.gpm-trust-line strong { color: var(--gpm-green); }

/* Services */
.gpm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gpm-service { position: relative; min-height: 430px; overflow: hidden; border-radius: var(--gpm-radius); box-shadow: var(--gpm-shadow); background: #143546; isolation: isolate; }
.gpm-service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,35,43,.98), rgba(12,35,43,.15) 70%); z-index: 1; }
.gpm-service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gpm-service:hover img { transform: scale(1.06); }
.gpm-service__content { position: absolute; z-index: 2; inset-inline: 26px; bottom: 26px; color: #fff; }
.gpm-service h3 { margin: 0 0 10px; color: #fff; font-size: 25px; }
.gpm-service p { margin: 0 0 18px; color: rgba(255,255,255,.78); line-height: 1.9; }
.gpm-service a { color: var(--gpm-green); font-weight: 700; }

/* Clients */
.gpm-clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; }
.gpm-client { min-height: 130px; display: grid; place-items: center; padding: 16px; border: 1px solid #e4ebe6; border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.gpm-client:hover { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(21,50,60,.10); }
.gpm-client img { width: 100%; height: 86px; object-fit: contain; filter: saturate(.75); }

/* Projects and posts */
.gpm-banner { overflow: hidden; margin-bottom: 32px; border-radius: var(--gpm-radius); box-shadow: var(--gpm-shadow); }
.gpm-banner img { display: block; width: 100%; aspect-ratio: 1180 / 360; object-fit: cover; }
.gpm-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gpm-post-card { display: flex; flex-direction: column; min-height: 240px; padding: 28px; border: 1px solid #e4e9e6; border-radius: 16px; background: #fff; }
.gpm-post-card time { color: var(--gpm-green-dark); font-size: 13px; }
.gpm-post-card h3 { margin: 12px 0; font-size: 20px; line-height: 1.7; }
.gpm-post-card p { color: var(--gpm-muted); line-height: 1.8; }
.gpm-post-card__link { margin-top: auto; color: var(--gpm-green-dark); font-weight: 700; }

/* About */
.gpm-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.gpm-about__image { position: relative; }
.gpm-about__image::before { content: ""; position: absolute; inset: 28px -24px -24px 28px; z-index: -1; border-radius: var(--gpm-radius); background: var(--gpm-green); }
.gpm-about__image img { display: block; width: 100%; min-height: 440px; object-fit: cover; border-radius: var(--gpm-radius); box-shadow: var(--gpm-shadow); }
.gpm-about h2 { margin: 10px 0 22px; font-size: clamp(32px, 4vw, 48px); line-height: 1.35; }
.gpm-about p { color: var(--gpm-muted); font-size: 17px; line-height: 2.05; }
.gpm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.gpm-stat { padding: 18px 10px; text-align: center; border-radius: 12px; background: var(--gpm-cloud); }
.gpm-stat strong { display: block; color: var(--gpm-navy); font-size: 25px; }
.gpm-stat span { color: var(--gpm-muted); font-size: 12px; }
.gpm-accordions { min-width: 0; }
.gpm-accordions > .gpm-eyebrow { margin-bottom: 18px; }
.gpm-accordion { border-bottom: 1px solid #d9e1dc; }
.gpm-accordion:first-of-type { border-top: 1px solid #d9e1dc; }
.gpm-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; border: 0; color: var(--gpm-ink); background: transparent; text-align: start; font-size: clamp(20px, 2.3vw, 27px); font-weight: 800; cursor: pointer; }
.gpm-accordion__icon { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--gpm-green); }
.gpm-accordion__icon::before, .gpm-accordion__icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--gpm-ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.gpm-accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.gpm-accordion.is-open .gpm-accordion__icon::after { transform: translate(-50%, -50%) rotate(0); }
.gpm-accordion__panel { padding: 0 4px 22px; }
.gpm-accordion__panel p, .gpm-accordion__panel ul { margin: 0; color: var(--gpm-muted); font-size: 16px; line-height: 2; }
.gpm-accordion__panel ul { padding-inline-start: 22px; }
.gpm-accordion__panel li + li { margin-top: 7px; }
.gpm-accordions > .gpm-button { margin-top: 28px; }

/* Inner pages */
.gpm-page-hero { padding: 85px 0; color: #fff; background: linear-gradient(120deg, var(--gpm-navy), #0a2835); }
.gpm-page-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 58px); }
.gpm-content { width: min(900px, calc(100% - 40px)); margin: 70px auto; font-size: 17px; line-height: 2; }
.gpm-content h2, .gpm-content h3 { color: var(--gpm-navy); }
.gpm-content a { color: var(--gpm-green-dark); text-decoration: underline; }
.gpm-content img { display: block; margin: 28px auto; border-radius: 14px; }
.gpm-content figure { max-width: 100%; margin-inline: auto; }
.gpm-content iframe, .gpm-content video { max-width: 100%; }
.gpm-content table { width: 100%; display: block; overflow-x: auto; white-space: nowrap; }
.gpm-content .vc_row { margin-inline: 0; }
.gpm-content .frm_forms { max-width: 760px; margin-inline: auto; padding: clamp(24px, 5vw, 48px); border: 1px solid #e4ebe6; border-radius: var(--gpm-radius); background: #fff; box-shadow: var(--gpm-shadow); }
.gpm-content .frm_forms fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gpm-content .frm_forms legend { margin-bottom: 22px; color: var(--gpm-navy); font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.gpm-content .frm_form_field { margin-bottom: 18px; }
.gpm-content .frm_primary_label { display: block; margin-bottom: 7px; color: var(--gpm-ink); font-weight: 700; }
.gpm-content .frm_forms input[type="text"],
.gpm-content .frm_forms input[type="email"],
.gpm-content .frm_forms input[type="tel"],
.gpm-content .frm_forms input[type="number"],
.gpm-content .frm_forms textarea,
.gpm-content .frm_forms select { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #ccd8d2; border-radius: 9px; color: var(--gpm-ink); background: #fbfdfc; font: inherit; }
.gpm-content .frm_forms textarea { min-height: 150px; resize: vertical; }
.gpm-content .frm_forms input:focus,
.gpm-content .frm_forms textarea:focus,
.gpm-content .frm_forms select:focus { outline: 3px solid rgba(168,223,0,.22); border-color: var(--gpm-green-dark); }
.gpm-content .frm_forms button[type="submit"],
.gpm-content .frm_forms input[type="submit"] { min-height: 50px; padding: 0 28px; border: 0; border-radius: 9px; color: var(--gpm-ink); background: var(--gpm-green); font: inherit; font-weight: 800; cursor: pointer; }
.gpm-content .frm_forms button[type="submit"]:hover,
.gpm-content .frm_forms input[type="submit"]:hover { background: #b8ee17; }

/* Footer */
.gpm-footer { color: rgba(255,255,255,.78); background: #10262f; }
.gpm-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; padding: 70px 0 52px; }
.gpm-footer__brand img { width: 120px; padding: 8px; border-radius: 12px; background: #fff; }
.gpm-footer h3 { margin: 0 0 18px; color: #fff; font-size: 18px; }
.gpm-footer p, .gpm-footer li { font-size: 14px; line-height: 1.9; }
.gpm-footer ul { margin: 0; padding: 0; list-style: none; }
.gpm-footer a:hover { color: var(--gpm-green); }
.gpm-footer__bottom { padding: 20px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .gpm-header__inner { min-height: 88px; display: flex; flex-direction: row; justify-content: space-between; }
  .gpm-brand, .custom-logo-link { flex: 0 0 108px; width: 108px; }
  .gpm-brand img, .custom-logo-link img { max-height: 74px; }
  .gpm-nav { display: none; }
  .gpm-menu-toggle { display: inline-flex; justify-self: end; }
  .gpm-mobile-nav { position: absolute; top: 100%; inset-inline: 0; max-height: calc(100vh - 88px); overflow-y: auto; padding: 14px max(24px, calc((100% - 700px) / 2)) 24px; background: #fff; border-top: 1px solid #edf0ee; box-shadow: 0 20px 35px rgba(15,35,45,.14); }
  .gpm-mobile-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .gpm-mobile-nav a { padding: 12px 10px; border-bottom: 1px solid #eff2f0; font-weight: 600; }
  .gpm-mobile-nav a:last-child { color: var(--gpm-ink); background: var(--gpm-green); border: 0; border-radius: 9px; margin-top: 8px; text-align: center; }
  .gpm-clients { grid-template-columns: repeat(4, 1fr); }
  .gpm-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .gpm-hero { min-height: auto; }
  .gpm-hero__inner, .gpm-about { grid-template-columns: 1fr; }
  .gpm-hero__copy { text-align: center; }
  .gpm-eyebrow, .gpm-actions, .gpm-hero__bullets { justify-content: center; }
  .gpm-hero__visual img { width: min(320px, 76%); }
  .gpm-services { grid-template-columns: 1fr; }
  .gpm-service { min-height: 360px; }
  .gpm-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --gpm-container: min(100% - 32px, 1180px); }
  .gpm-header__inner { min-height: 76px; }
  .gpm-brand, .custom-logo-link { width: 92px; }
  .gpm-brand img, .custom-logo-link img { width: 92px; max-height: 64px; }
  .gpm-menu-toggle { padding: 8px 11px; font-size: 14px; }
  .gpm-mobile-nav { max-height: calc(100vh - 76px); padding: 10px 16px 20px; }
  .gpm-mobile-nav.is-open { grid-template-columns: 1fr; }
  .gpm-mobile-nav a { padding: 10px 8px; font-size: 14px; }
  .gpm-hero__inner { gap: 30px; padding-block: 46px 54px; }
  .gpm-hero h1 { width: 100%; margin-block: 14px; font-size: clamp(29px, 8.2vw, 34px); line-height: 1.5; overflow-wrap: normal; }
  .gpm-hero__lead { margin-bottom: 22px; font-size: 16px; line-height: 1.9; }
  .gpm-hero__visual img { width: min(250px, 72vw); }
  .gpm-actions { display: grid; width: 100%; }
  .gpm-button { width: 100%; }
  .gpm-section { padding-block: 62px; }
  .gpm-section__head { margin-bottom: 34px; }
  .gpm-section__head h2 { font-size: 29px; }
  .gpm-service { min-height: 330px; }
  .gpm-clients { grid-template-columns: repeat(2, 1fr); }
  .gpm-client { min-height: 105px; padding: 12px; }
  .gpm-client img { height: 72px; }
  .gpm-banner { border-radius: 12px; }
  .gpm-banner img { aspect-ratio: 16 / 8; }
  .gpm-stats { grid-template-columns: 1fr; }
  .gpm-footer__grid { grid-template-columns: 1fr; }
  .gpm-about__image::before { inset: 16px -10px -10px 16px; }
  .gpm-about__image img { min-height: 300px; }
  .gpm-content { width: min(100% - 32px, 900px); margin-block: 48px; font-size: 16px; }
  .gpm-content .frm_forms { padding: 20px 16px; border-radius: 14px; }
  .gpm-posts { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .gpm-menu-toggle__label { display: none; }
  .gpm-hero__bullets { display: grid; gap: 10px; text-align: start; }
  .gpm-clients { gap: 10px; }
}
