/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #0F172A;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HERO ================= */

.hero-image {
    position: relative;
    height: 80vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 44, 74, 0.75);
}

.hero-content {
    position: relative;
    color: #ffffff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #E2E8F0;
}

/* ================= WORKBENCH ================= */

.workbench {
    padding: 100px 0;
    background: #F8FAFC;
}

.workbench h2 {
    margin-bottom: 50px;
}

.wb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

.wb-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    transition: 0.3s ease;
}

.wb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.wb-card h3 {
    margin-bottom: 10px;
}

.wb-card p {
    margin-bottom: 10px;
    color: #475569;
}

.wb-card a {
    text-decoration: none;
    color: #0B2C4A;
    font-weight: bold;
}

/* ================= CAPABILITY ================= */

.capability {
    padding: 120px 0;
    background: #0B2C4A;
    color: #ffffff;
}

.capability h2 {
    margin-bottom: 60px;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.cap-grid p {
    color: #CBD5E1;
}

/* ================= CTA ================= */

.cta {
    padding: 120px 0;
    background: #F1F5F9;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    color: #475569;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #0B2C4A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-primary:hover {
    background: #174C7A;
}
/* ================= HEADER ================= */

.main-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links a {
    margin-left: 35px;
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    transition: 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta {
    padding: 8px 18px;
    border: 1px solid #ffffff;
    border-radius: 4px;
}
/* ================= HEADER (FIXED) ================= */

/* HEADER WHITE VERSION */

.site-header {
    background: #ffffff;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 5000;
    padding: 18px 0;
    border-bottom: 1px solid #E2E8F0;
}

.site-nav a {
    color: #0F172A;   /* تیره */
    font-weight: 500;
    font-size: 14px;
}

.site-nav a:hover {
    color: #0B2C4A;   /* برند */
}

.nav-cta {
    border: 1px solid #0B2C4A;
    color: #0B2C4A;
    padding: 8px 14px;
    border-radius: 6px;
}

.nav-cta:hover {
    background: #0B2C4A;
    color: #ffffff;
}


.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;            /* کنترل ارتفاع */
}

.brand img{
    height: 100px;
    width: auto;
    display: block;
}

.site-nav{
    display: flex;
    align-items: center;
    gap: 28px;
}


/* Fix Sign In hover */
.site-nav a.nav-cta:hover{
    background: #0B2C4A;
    color: #ffffff !important;
    border-color: #0B2C4A;
}


/* ================= TOOLS PAGE ================= */

.tools-hero {
    padding: 140px 0 80px 0;
    background: #F8FAFC;
}

.tools-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.tools-hero p {
    max-width: 600px;
    color: #475569;
}

.tools-core {
    padding: 100px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 80px;
}

.tool-card {
    padding: 30px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.tool-card h3 {
    margin-bottom: 10px;
}

.tool-card p {
    margin-bottom: 10px;
    color: #475569;
}

.tool-card a {
    text-decoration: none;
    color: #0B2C4A;
    font-weight: 500;
}

.tools-advanced {
    padding: 100px 0;
    background: #F1F5F9;
}

.tools-list {
    margin-top: 30px;
    color: #475569;
    line-height: 2;
}

.tools-note {
    padding: 80px 0;
    font-size: 14px;
    color: #64748B;
}


.logo, .brand { position: relative; z-index: 999999; }
.logo img, .brand img { position: relative; z-index: 999999; }
header, .site-header { position: relative; z-index: 999998; }

/* ================= TOOL PAGE ================= */

.tool-hero {
    padding: 120px 0 60px 0;
    background: #F8FAFC;
}

.tool-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.tool-hero p {
    color: #475569;
}

.tool-section {
    padding: 80px 0 120px 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 35px;
    transition: 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.tool-card h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

.tool-card p {
    margin-bottom: 25px;
    font-size: 14px;
    color: #64748B;
}

.tool-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tool-row label {
    width: 80px;
    font-weight: 600;
}

.tool-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 14px;
}

.formula {
    margin-top: 15px;
    font-size: 13px;
    color: #64748B;
}
