/* ===========================================================
   InProgress IT – Main Website Styles
   =========================================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===========================================================
   Brand Variables
   =========================================================== */

:root {
    --ip-primary:   #001D51;  /* الأزرق الغامق - InProgress */
    --ip-accent:    #00A7E0;  /* الأزرق السماوي - IT */
    --ip-bg:        #F5F7FB;  /* خلفية خفيفة */
    --ip-text:      #111827;  /* لون النص الأساسي */
}

/* استخدام هذه الكلاسات لتمييز العلامة التجارية داخل النص */
.brand-name {
    color: var(--ip-primary);
    font-weight: 700;
}

.brand-it {
    color: var(--ip-accent);
    font-weight: 700;
}

/* ===========================================================
   Basic Reset
   =========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ip-text);
    background-color: var(--ip-bg);
}

a {
    color: var(--ip-accent);
    text-decoration: none;
    transition: 0.15s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================================
   Layout
   =========================================================== */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content {
    min-height: 70vh;
    padding-bottom: 3rem;
}

/* ===========================================================
   Header
   =========================================================== */

.main-header {
    background: var(--ip-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo-text {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

/* Navigation */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #e5e7eb;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.nav-highlight a {
    background: var(--ip-accent);
    color: #ffffff;
    font-weight: 600;
}

.nav-highlight a:hover {
    opacity: 0.9;
}

/* ===========================================================
   Home Hero
   =========================================================== */

.hero {
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-accent));
    color: #fff;
    padding: 4rem 0 3rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
    margin: 0 0 0.75rem;
}

.hero p {
    max-width: 620px;
    margin: 0 0 1.2rem;
    color: #ecf7ff;
}

/* Hero buttons */

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.15s ease;
    border: 2px solid transparent;
}

.hero-btn.primary {
    background: var(--ip-accent);
    color: #ffffff;
    border-color: var(--ip-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-btn.primary:hover {
    opacity: 0.92;
}

.hero-btn.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.hero-btn.outline:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

/* Hero pills / highlights */

.hero-pills,
.hero-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0 0 0;
    padding: 0;
}

.hero-pills li,
.hero-highlights li {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1.6px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.15s ease;
}

.hero-pills li:hover,
.hero-highlights li:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================================================
   Internal Page Hero (Services / About / Projects / Contact)
   =========================================================== */

.page-hero {
    background: #eaf1fb;
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #d6e3f5;
}

.page-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    color: #0f2a52;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.page-hero p {
    margin: 0;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* تقليل المسافة بعد الهيرو في الصفحات الداخلية */
.page-hero + .section {
    padding-top: 1.5rem;
}

/* ===========================================================
   Generic Sections
   =========================================================== */

.section {
    padding: 3rem 0;
}

.section-alt {
    background: #e2ebf7;
}

.section h2 {
    font-size: 1.7rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* CTA block */

.cta {
    text-align: center;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.8rem 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.cta p {
    margin-bottom: 1rem;
}

/* ===========================================================
   Cards & Grids
   =========================================================== */

.cards {
    display: grid;
    gap: 1.5rem;
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.card h3,
.card h2 {
    margin: 0 0 0.5rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* قوائم داخل الكروت (مثل صفحة الخدمات) */

.cards .steps {
    padding-left: 1.1rem;
    margin: 0.3rem 0 0.4rem;
}

.cards .steps li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* ===========================================================
   Generic Buttons
   =========================================================== */

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 0.48rem 1.2rem;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.15s ease;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--ip-accent);
    border-color: var(--ip-accent);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: var(--ip-primary);
}

.btn-outline:hover {
    background: rgba(0, 29, 81, 0.08);
}

/* ===========================================================
   Two Columns (Contact page, etc.)
   =========================================================== */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ===========================================================
   Alerts
   =========================================================== */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* ===========================================================
   Forms
   =========================================================== */

.contact-form {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ip-accent);
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 167, 224, 0.4);
}

/* ===========================================================
   Small Utilities
   =========================================================== */

.small-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===========================================================
   Footer
   =========================================================== */

.main-footer {
    background: var(--ip-primary);
    color: #e5e7eb;
    padding: 1.25rem 0;
    margin-top: 2.5rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
}

.footer-sub {
    margin-top: 0.3rem;
    color: #9ca3af;
}

/* ===========================================================
   Responsive Adjustments
   =========================================================== */

@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }
}

/* =============================
   Brand Name Styling (Safe)
   ============================= */

.brand {
    font-weight: 700;
}

.brand .brand-core {
    color: #001D51; /* InProgress */
}

.brand .brand-it {
    color: #00A7E0; /* IT */
}

/* About page – Values list */
.card ul.steps {
    list-style: none;
    padding-left: 0;
}

.card ul.steps li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

.card ul.steps li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ip-accent);
    font-weight: bold;
}

/* Clean ordered list – About / How We Work */
.clean-steps {
    padding-left: 1.2rem;
}

.clean-steps li {
    margin-bottom: 0.8rem;
}

/* Reduce vertical gaps between sections on Projects page */
.section + .section {
    padding-top: 2rem;
}

.section-alt + .section,
.section + .section-alt {
    padding-top: 2.5rem;
}
/* Tech Shop – force white titles on dark backgrounds */
.tech-shop h1,
.tech-shop h2 {
    color: #ffffff;
}

.form-group.checkbox {
    margin-top: 1rem;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 500;
}

.form-group.checkbox label:hover {
    color: var(--ip-primary);
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #00A7E0;
}