/*
Theme Name: Abad Gostar Mehrgan Elementor
Theme URI: https://example.com/abad-gostar-mehrgan
Author: ChatGPT
Author URI: https://openai.com
Description: A lightweight RTL WordPress theme shell for Abad Gostar Mehrgan, designed to work with Elementor templates. Includes full-width Elementor page template, company styling, project/news support, and imported Elementor JSON templates in the elementor-templates folder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abad-gostar-mehrgan
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, full-site-editing, elementor, corporate, blog
*/

:root {
  --agm-navy: #071b2f;
  --agm-blue: #0d5f83;
  --agm-green: #2f8f6b;
  --agm-sand: #f3f0e8;
  --agm-gray: #68717a;
  --agm-white: #ffffff;
  --agm-border: rgba(7, 27, 47, 0.12);
  --agm-shadow: 0 18px 50px rgba(7, 27, 47, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  font-family: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
  color: var(--agm-navy);
  background: #ffffff;
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--agm-blue); }
img { max-width: 100%; height: auto; }

.agm-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.agm-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--agm-border);
}

.agm-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.agm-brand { display: flex; align-items: center; gap: 14px; font-weight: 900; letter-spacing: -0.03em; }
.agm-logo-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--agm-green), var(--agm-blue));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 900;
}
.agm-brand small { display:block; color: var(--agm-gray); font-size: 12px; margin-top: -4px; }

.agm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.agm-nav a { font-size: 14px; font-weight: 700; color: #17324a; }

.agm-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  background: var(--agm-navy); color: white; font-weight: 800;
  border: 1px solid transparent; box-shadow: 0 8px 24px rgba(7,27,47,.18);
}
.agm-button:hover { color: white; background: var(--agm-blue); }
.agm-button.secondary { background: transparent; color: var(--agm-navy); border-color: var(--agm-border); box-shadow:none; }
.agm-button.secondary:hover { background: var(--agm-sand); color: var(--agm-navy); }

.agm-hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 86px 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(7,27,47,.92), rgba(7,27,47,.66), rgba(47,143,107,.36)),
    radial-gradient(circle at 10% 10%, rgba(13,95,131,.7), transparent 34%),
    linear-gradient(135deg, #071b2f, #0d5f83 55%, #2f8f6b);
  overflow: hidden;
}
.agm-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 7vw, 82px); line-height: 1.12; letter-spacing: -0.06em; max-width: 850px; }
.agm-hero p { margin: 0 0 30px; max-width: 730px; font-size: 19px; color: rgba(255,255,255,.84); }
.agm-kicker { color: #96e0c4; font-weight: 900; margin-bottom: 14px; }
.agm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.agm-hero .agm-button.secondary { color: white; border-color: rgba(255,255,255,.28); }
.agm-hero .agm-button.secondary:hover { background: rgba(255,255,255,.12); color: white; }

.agm-section { padding: 88px 0; }
.agm-section.alt { background: var(--agm-sand); }
.agm-section-title { max-width: 760px; margin-bottom: 34px; }
.agm-section-title h2 { margin: 0 0 12px; font-size: clamp(28px,4vw,50px); line-height: 1.25; letter-spacing: -0.04em; }
.agm-section-title p { margin: 0; color: var(--agm-gray); font-size: 17px; }

.agm-grid { display: grid; gap: 22px; }
.agm-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.agm-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.agm-card {
  background: white;
  border: 1px solid var(--agm-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(7,27,47,.06);
  min-height: 180px;
}
.agm-card.featured { background: var(--agm-navy); color: white; }
.agm-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.03em; }
.agm-card p { margin: 0; color: var(--agm-gray); }
.agm-card.featured p { color: rgba(255,255,255,.76); }
.agm-meta { color: var(--agm-green); font-weight: 900; font-size: 13px; margin-bottom: 12px; }

.agm-footer {
  background: #061626;
  color: white;
  padding: 58px 0 26px;
}
.agm-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 34px; }
.agm-footer p, .agm-footer a { color: rgba(255,255,255,.72); }
.agm-footer h4 { margin: 0 0 12px; }
.agm-copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; color: rgba(255,255,255,.54); font-size: 13px; }

.agm-page-header {
  background: linear-gradient(135deg, #071b2f, #0d5f83);
  color: white;
  padding: 78px 0;
}
.agm-page-header h1 { margin: 0; font-size: clamp(34px,5vw,64px); letter-spacing: -0.05em; }
.agm-content { padding: 64px 0; }

.elementor-page .agm-content,
.page-template-elementor-full-width .agm-content,
.page-template-elementor-canvas .agm-content { padding: 0; }

@media (max-width: 900px) {
  .agm-header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .agm-grid.cols-3, .agm-grid.cols-2, .agm-footer-grid { grid-template-columns: 1fr; }
  .agm-hero { min-height: 560px; padding: 68px 0; }
  .agm-nav ul { gap: 14px; }
}
