/*
Theme Name: Negarestani Law Premium
Theme URI: https://vakilnegarestani.ir/
Author: Negarestani
Description: قالب اختصاصی، سبک و حرفه‌ای وب‌سایت وکالت مسعود نگارستانی
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: negarestani-law
*/

:root {
    --law-navy: #0b1424;
    --law-navy-2: #101d32;
    --law-navy-3: #172740;
    --law-deep: #070d18;
    --law-gold: #c6a15b;
    --law-gold-light: #e4c98f;
    --law-white: #ffffff;
    --law-cream: #f1eee7;
    --law-text: #e9eaf0;
    --law-muted: #aab4c3;
    --law-border: rgba(198,161,91,.25);
    --law-radius: 18px;
    --law-shadow: 0 15px 45px rgba(0,0,0,.22);
}

/* BASE */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
    background: var(--law-deep);
    color: var(--law-text);
    font-size: 15px;
    line-height: 2;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--law-gold-light);
    text-decoration: none;
    transition: .25s ease;
    overflow-wrap: anywhere;
}

a:hover {
    color: var(--law-white);
}

button,
input,
textarea,
select {
    max-width: 100%;
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

p,
h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
}

#primary,
main {
    width: 100%;
}

/* CONTAINER */

.container {
    width: min(1160px, calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

/* HEADER */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: rgba(7,13,24,.97);
    border-bottom: 1px solid var(--law-border);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.site-branding img {
    display: block;
    max-width: 100%;
    max-height: 58px;
    width: auto;
}

.brand-name {
    display: inline-block;
    color: var(--law-white);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
}

.brand-description {
    display: block;
    color: var(--law-muted);
    font-size: 11px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--law-text);
    font-size: 13px;
    font-weight: 600;
}

.main-navigation a:hover {
    color: var(--law-gold-light);
}

.header-action,
.button-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--law-gold);
    color: #111827;
    border: 1px solid var(--law-gold);
    border-radius: 9px;
    font-weight: 800;
    font-size: 13px;
    transition: .25s ease;
}

.header-action:hover,
.button-primary:hover {
    background: var(--law-gold-light);
    color: #111827;
    transform: translateY(-2px);
}

.button-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 22px;
    color: var(--law-gold-light);
    border: 1px solid var(--law-gold);
    border-radius: 9px;
    font-weight: 700;
}

.button-outline:hover {
    background: var(--law-gold);
    color: #111827;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: var(--law-white);
    border: 1px solid var(--law-border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 20px;
}

/* HERO */

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(198,161,91,.16), transparent 38%),
        linear-gradient(125deg, var(--law-deep), var(--law-navy-2) 65%, #0c192b);
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    color: var(--law-gold-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.hero-section h1 {
    color: var(--law-white);
    font-size: clamp(30px, 5vw, 49px);
    line-height: 1.65;
    margin: 0 0 20px;
    font-weight: 900;
}

.hero-section h1 span {
    color: var(--law-gold-light);
}

.hero-section p {
    color: var(--law-muted);
    font-size: 16px;
    max-width: 690px;
    margin: 0 0 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

/* SECTIONS */

.section {
    width: 100%;
    padding: 78px 0;
}

.section-light {
    background: var(--law-navy);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    color: var(--law-white);
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.7;
    margin: 0 0 12px;
}

.section-heading p {
    color: var(--law-muted);
    margin: 0;
}

.gold-line {
    width: 65px;
    height: 3px;
    background: var(--law-gold);
    margin: 17px auto;
    border-radius: 5px;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-width: 0;
    background: linear-gradient(145deg, var(--law-navy-2), var(--law-navy-3));
    border: 1px solid var(--law-border);
    border-radius: var(--law-radius);
    padding: 27px;
    box-shadow: var(--law-shadow);
    transition: .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--law-gold);
}

.service-card h3 {
    color: var(--law-gold-light);
    font-size: 18px;
    margin: 0 0 12px;
}

.service-card p {
    color: var(--law-muted);
    font-size: 14px;
    margin: 0;
}

/* ABOUT */

.about-section {
    background: var(--law-deep);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 45px;
    align-items: center;
}

.about-content > * {
    min-width: 0;
}

.about-content h2 {
    color: var(--law-white);
    font-size: 30px;
    margin: 0 0 18px;
}

.about-content p {
    color: var(--law-muted);
}

.about-highlight {
    background: var(--law-navy-2);
    border: 1px solid var(--law-border);
    border-radius: var(--law-radius);
    padding: 30px;
}

.about-highlight strong {
    display: block;
    color: var(--law-gold-light);
    font-size: 19px;
    margin-bottom: 8px;
}

/* CTA */

.cta-section {
    background:
        radial-gradient(circle at 80% 30%, rgba(198,161,91,.13), transparent 35%),
        var(--law-navy-2);
    border-block: 1px solid var(--law-border);
    text-align: center;
}

.cta-section h2 {
    color: var(--law-white);
    font-size: 29px;
    margin: 0 0 12px;
}

.cta-section p {
    color: var(--law-muted);
    margin: 0 auto 25px;
    max-width: 700px;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-card {
    min-width: 0;
    padding: 23px;
    text-align: center;
    border-radius: 14px;
    background: var(--law-navy-2);
    border: 1px solid var(--law-border);
}

.contact-card h3 {
    color: var(--law-gold-light);
    margin: 0 0 8px;
}

.contact-card p {
    color: var(--law-text);
    margin: 0;
}

/* FOOTER */

.site-footer {
    width: 100%;
    background: #050a12;
    border-top: 1px solid var(--law-border);
    padding: 45px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
}

.footer-grid > * {
    min-width: 0;
}

.site-footer h3 {
    color: var(--law-gold-light);
    font-size: 17px;
}

.site-footer p,
.site-footer li {
    color: var(--law-muted);
    font-size: 13px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 7px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    color: var(--law-muted);
    font-size: 12px;
}

/* GENERAL PAGE */

.page-content {
    width: 100%;
    min-height: 55vh;
    padding: 55px 0 75px;
    background: var(--law-deep);
}

.content-panel {
    width: 100%;
    background: var(--law-navy-2);
    border: 1px solid var(--law-border);
    border-radius: var(--law-radius);
    padding: clamp(20px, 4vw, 38px);
}

.content-panel h1,
.content-panel h2,
.content-panel h3 {
    color: var(--law-white);
}

.content-panel p,
.content-panel li {
    color: var(--law-text);
}

.content-panel input:not([type="submit"]),
.content-panel textarea,
.content-panel select {
    width: 100%;
    padding: 12px 14px;
    color: var(--law-white);
    background: var(--law-deep);
    border: 1px solid var(--law-border);
    border-radius: 8px;
}

.content-panel input[type="submit"],
.content-panel button[type="submit"] {
    padding: 12px 25px;
    color: #111827;
    background: var(--law-gold);
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

/* MOBILE QUICK BAR - HIDDEN UNTIL MOBILE DESIGN */

.mobile-quickbar {
    display: none;
}

/* TABLET */

@media (max-width: 900px) {
    .main-navigation ul {
        gap: 13px;
    }

    .header-action {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}







/* Temporary horizontal overflow diagnostic */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.site-header,
.site-header *,
.site-footer,
.site-footer *,
#primary,
#content,
.ng-home,
.ng-home * {
    max-width: 100%;
}

img,
video,
iframe,
table,
input,
textarea,
select {
    max-width: 100%;
}

.mobile-quickbar {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
}






