/*
Theme Name: Sadra New
Theme URI: https://sasadra.ir
Author: System Avaran Sadra
Description: Modern RTL corporate WordPress theme for System Avaran Sadra and Niroodade Energy Management.
Version: 1.0.0
Text Domain: sadra-new
*/

@font-face {
    font-family: 'BYekan';
    src: url('./assets/fonts/BYekan.woff2') format('woff2'),
         url('./assets/fonts/BYekan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-main: 'BYekan', Tahoma, Arial, sans-serif;
}

html,
body,
button,
input,
textarea,
select {
    font-family: var(--font-main);
}

/* =========================================================
   VARIABLES
========================================================= */

:root {
    --sadra-red: #d71920;

    --energy-primary: #241fb9;
    --energy-accent: #e86016;

    --text: #17171c;
    --muted: #65656d;

    --bg: #f7f7fa;
    --white: #ffffff;
    --border: #e7e7ec;

    --container: 1180px;
    --radius: 22px;

    --shadow-sm: 0 8px 30px rgba(20, 20, 40, .06);
    --shadow-md: 0 20px 60px rgba(20, 20, 40, .10);
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.9;
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );
    margin-inline: auto;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.35;
}

.section-title {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 18px;
    font-weight: 800;
}

.section-description {
    color: var(--muted);
    font-size: 17px;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--energy-primary);
    font-size: 14px;
    font-weight: 700;

    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--energy-accent);
    border-radius: 10px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 25px;

    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--energy-primary);
    box-shadow: 0 12px 30px rgba(36, 31, 185, .20);
}

.btn-primary:hover {
    background: #1d18a0;
}

.btn-orange {
    color: var(--white);
    background: var(--energy-accent);
}

.btn-outline {
    color: var(--energy-primary);
    border: 1px solid rgba(36, 31, 185, .20);
    background: var(--white);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

.site-title-fallback {
    font-size: 20px;
    font-weight: 800;
    color: var(--sadra-red);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
    color: #35353b;

    transition: color .2s ease;
}

.main-navigation a:hover {
    color: var(--energy-primary);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 90px 0 110px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(36,31,185,.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(232,96,22,.08),
            transparent 30%
        ),
        var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--energy-primary);
}

.hero-description {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-product-label {
    margin-top: 28px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    color: var(--muted);
}

.hero-product-label strong {
    color: var(--text);
}

/* =========================================================
   PHONE / APP PREVIEW
========================================================= */

.hero-visual {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;

    width: min(370px, 90%);
    padding: 9px;

    background: #111118;
    border-radius: 42px;

    box-shadow:
        0 35px 90px rgba(20,20,40,.22);

    transform: rotate(-2deg);
}

.phone-frame::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 50%;

    width: 95px;
    height: 22px;

    transform: translateX(-50%);

    background: #111118;

    border-radius: 0 0 15px 15px;

    z-index: 3;
}

.phone-screen {
    overflow: hidden;
    border-radius: 34px;
    background: var(--white);
}

.phone-screen img {
    width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;

    padding: 15px 18px;

    background: rgba(255,255,255,.96);

    border: 1px solid rgba(0,0,0,.06);

    border-radius: 16px;

    box-shadow: var(--shadow-md);

    font-size: 13px;
}

.floating-card strong {
    display: block;
    font-size: 19px;
}

.floating-card small {
    color: var(--muted);
}

.card-energy {
    right: -30px;
    top: 25%;
}

.card-cost {
    left: -25px;
    bottom: 20%;
}

.energy-number {
    color: var(--energy-primary);
}

.cost-number {
    color: var(--energy-accent);
}

/* =========================================================
   PROOF BAR
========================================================= */

.proof-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: var(--bg);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof-item {
    padding: 25px;

    text-align: center;

    border-left: 1px solid var(--border);
}

.proof-item:last-child {
    border-left: 0;
}

.proof-number {
    font-size: 25px;
    font-weight: 800;
    color: var(--energy-primary);
}

.proof-label {
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-description {
    margin-inline: auto;
}

/* =========================================================
   FEATURES
========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 15px;

    background: rgba(36,31,185,.08);
    color: var(--energy-primary);

    font-size: 22px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   NIROODADE INTRO
========================================================= */

.niroodade-section {
    background: var(--bg);
}

.niroodade-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.niroodade-image {
    position: relative;

    padding: 15px;

    background: var(--white);

    border-radius: 30px;

    box-shadow: var(--shadow-md);
}

.niroodade-image img {
    border-radius: 20px;
}

.niroodade-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;

    display: grid;
    gap: 15px;
}

.niroodade-content li {
    position: relative;

    padding-right: 32px;

    color: #45454c;
}

.niroodade-content li::before {
    content: "✓";

    position: absolute;
    right: 0;
    top: 1px;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(36,31,185,.10);
    color: var(--energy-primary);

    font-size: 12px;
    font-weight: bold;
}

/* =========================================================
   DARK FORECAST SECTION
========================================================= */

.dark-section {
    background: #121218;
    color: var(--white);
}

.dark-section .section-description {
    color: #aaaab4;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-card {
    padding: 30px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 24px;

    background: rgba(255,255,255,.045);
}

.dashboard-card h3 {
    font-size: 19px;
}

.dashboard-number {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.dashboard-muted {
    color: #9999a4;
    font-size: 13px;
}

/* =========================================================
   TARIFF
========================================================= */

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tariff-card {
    padding: 28px;

    border-radius: 20px;

    background: var(--white);

    border: 1px solid var(--border);
}

.tariff-card strong {
    display: block;
    font-size: 25px;
    margin-bottom: 5px;
}

.tariff-card span {
    color: var(--muted);
    font-size: 13px;
}

.tariff-peak {
    border-top: 4px solid var(--energy-accent);
}

.tariff-mid {
    border-top: 4px solid var(--energy-primary);
}

.tariff-off {
    border-top: 4px solid #777;
}

/* =========================================================
   AI
========================================================= */

.ai-section {
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(36,31,185,.13),
            transparent 35%
        ),
        var(--white);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.ai-chat {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background: var(--bg);

    box-shadow: var(--shadow-sm);
}

.chat-message {
    max-width: 85%;

    padding: 14px 18px;

    margin-bottom: 14px;

    border-radius: 18px;

    font-size: 14px;
}

.chat-user {
    margin-right: auto;

    background: var(--energy-primary);
    color: var(--white);

    border-bottom-left-radius: 5px;
}

.chat-ai {
    margin-left: auto;

    background: var(--white);

    border: 1px solid var(--border);

    border-bottom-right-radius: 5px;
}

/* =========================================================
   TECHNOLOGY
========================================================= */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-card {
    min-height: 220px;

    padding: 30px;

    border-radius: 22px;

    background: var(--bg);

    border: 1px solid var(--border);
}

.tech-card h3 {
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            var(--energy-primary),
            #17137e
        );

    color: var(--white);
}

.final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.final-cta h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 15px;
}

.final-cta p {
    color: rgba(255,255,255,.75);
    margin: 0;
}

.final-cta .btn {
    background: var(--white);
    color: var(--energy-primary);
    flex-shrink: 0;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #101014;
    color: var(--white);
    padding: 65px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 45px;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-description {
    color: #9a9aa3;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #aaaab3;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 22px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #777780;
    font-size: 12px;
}

/* =========================================================
   WORDPRESS
========================================================= */

.wp-block-image {
    margin: 0;
}

.aligncenter {
    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;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .main-navigation {
        display: none;
    }

    .hero-grid,
    .niroodade-grid,
    .ai-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .features-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .header-inner {
        min-height: 70px;
    }

    .header-cta .btn {
        min-height: 44px;
        padding-inline: 15px;
        font-size: 12px;
    }

    .hero {
        padding: 60px 0 75px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 15px;
    }

    .phone-frame {
        width: 280px;
    }

    .floating-card {
        transform: scale(.82);
    }

    .card-energy {
        right: -15px;
    }

    .card-cost {
        left: -15px;
    }

    .proof-grid {
        grid-template-columns: 1fr 1fr;
    }

    .proof-item {
        border-bottom: 1px solid var(--border);
    }

    .features-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
/* WordPress custom logo */
.site-logo .custom-logo-link { display: block; }
.site-logo .custom-logo { max-height: 55px; width: auto; }
.site-brand .custom-logo-link { line-height: 0; }


/* =========================================================
   SADRA HOME v1.1 — COMPACT / PRODUCT-FOCUSED LAYOUT
========================================================= */

/* Header: slightly tighter */
.header-inner {
    min-height: 72px;
}

.site-logo img,
.site-logo .custom-logo {
    max-height: 50px;
}

.main-navigation ul {
    gap: 24px;
}

/* ---------------------------------------------------------
   01. HERO — reduce empty space and align both columns
--------------------------------------------------------- */
.hero {
    padding: 42px 0 48px;
}

.hero-grid {
    gap: 48px;
    min-height: 440px;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.28;
    margin-bottom: 18px;
}

.eyebrow {
    margin-bottom: 12px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.hero-product-label {
    margin-top: 20px;
}

.hero-visual {
    transform: translateY(-2px);
}

.phone-frame {
    width: min(335px, 86%);
}

.floating-card {
    padding: 13px 15px;
}

.card-energy {
    right: 0;
}

.card-cost {
    left: 0;
}

/* ---------------------------------------------------------
   02. PROOF BAR — compact, immediately following Hero
--------------------------------------------------------- */
.proof-item {
    padding: 17px 20px;
}

.proof-number {
    font-size: 22px;
}

/* ---------------------------------------------------------
   03. GENERAL SECTIONS — tighter vertical rhythm
--------------------------------------------------------- */
.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 12px;
}

.section-description {
    line-height: 1.85;
}

/* ---------------------------------------------------------
   04. NIROODADE — product gets visual priority
--------------------------------------------------------- */
.niroodade-section {
    padding-top: 62px;
    padding-bottom: 62px;
    background: var(--bg);
}

.niroodade-grid {
    gap: 48px;
}

.niroodade-image {
    padding: 12px;
    border-radius: 24px;
}

.niroodade-content ul {
    margin: 20px 0;
    gap: 10px;
}

.niroodade-content li {
    line-height: 1.75;
}

/* ---------------------------------------------------------
   05. FEATURES — denser cards
--------------------------------------------------------- */
.features-grid {
    gap: 16px;
}

.feature-card {
    padding: 24px;
    border-radius: 18px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    line-height: 1.8;
}

/* ---------------------------------------------------------
   06. FORECAST — strong visual section, not too tall
--------------------------------------------------------- */
.dark-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.dashboard-grid {
    gap: 16px;
}

.dashboard-card {
    padding: 24px;
}

/* ---------------------------------------------------------
   07. TARIFF — compact comparison
--------------------------------------------------------- */
.tariff-grid {
    gap: 16px;
}

.tariff-card {
    padding: 24px;
}

/* ---------------------------------------------------------
   08. AI — tighter two-column presentation
--------------------------------------------------------- */
.ai-section {
    padding-top: 62px;
    padding-bottom: 62px;
}

.ai-grid {
    gap: 48px;
}

.ai-chat {
    padding: 20px;
    border-radius: 20px;
}

.chat-message {
    padding: 12px 16px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   09. TECHNOLOGY — compact cards
--------------------------------------------------------- */
.tech-grid {
    gap: 16px;
}

.tech-card {
    min-height: 175px;
    padding: 24px;
    border-radius: 18px;
}

/* ---------------------------------------------------------
   10. ABOUT — don't let a simple text section create a void
--------------------------------------------------------- */
#about.section {
    padding-top: 52px;
    padding-bottom: 52px;
}

#about .section-header {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   11. FINAL CTA — compact ending
--------------------------------------------------------- */
.final-cta {
    padding: 58px 0;
}

.final-cta-inner {
    gap: 28px;
}

.final-cta h2 {
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   12. FOOTER — reduce dead space
--------------------------------------------------------- */
.site-footer {
    padding: 48px 0 20px;
}

.footer-grid {
    gap: 38px;
    padding-bottom: 32px;
}

.footer-bottom {
    padding-top: 18px;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */
@media (max-width: 1000px) {
    .hero {
        padding: 38px 0 44px;
    }

    .hero-grid {
        gap: 28px;
        min-height: 0;
    }

    .hero-visual {
        margin-top: 4px;
    }

    .phone-frame {
        width: min(320px, 82%);
    }

    .niroodade-grid,
    .ai-grid {
        gap: 32px;
    }

    .section {
        padding: 52px 0;
    }

    .dark-section,
    .ai-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}

@media (max-width: 650px) {
    .header-inner {
        min-height: 64px;
    }

    .hero {
        padding: 34px 0 38px;
    }

    .hero h1 {
        font-size: 35px;
        line-height: 1.35;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-product-label {
        margin-top: 15px;
    }

    .phone-frame {
        width: 270px;
    }

    .section {
        padding: 44px 0;
    }

    .niroodade-section,
    .dark-section,
    .ai-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .feature-card,
    .tech-card {
        padding: 20px;
    }

    .proof-item {
        padding: 14px 12px;
    }

    .final-cta {
        padding: 46px 0;
    }

    .site-footer {
        padding-top: 40px;
    }
}
