/* ============================================================
   Amediplast — Design Contract / Shared Styles
   ============================================================ */
:root {
    --primary: #C8102E;
    --primary-dark: #9E1B24;
    --maroon: #7F1D1D;
    --why-bg: #BC1E28;
    --contact-card-bg: #9E1B24;
    --text: #5A5A5A;
    --heading: #333333;
    --light-bg: #F5F4F4;
    --border-muted: #E1DFDF;
    --white: #FFFFFF;
    --radius: 12px;
    --section-pad: 80px;
    --nav-height: 76px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-red: 0 10px 30px rgba(200, 16, 46, .25);
    --transition: all .3s ease;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 10px);
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

html[lang="en"] body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 800;
}

a { text-decoration: none; transition: var(--transition); }

img { max-width: 100%; }

/* ---------- Sections ---------- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-head { margin-bottom: 40px; }

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--heading);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    flex-shrink: 0;
    margin-inline-end: 4px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin-top: 10px;
}

.section-subtitle-accent {
    color: var(--primary);
}

.section-desc { max-width: 640px; }

/* ---------- Section title (dots variant — internal pages) ---------- */
.section-title-dots {
    justify-content: flex-start;
    font-size: 32px;
}

.section-title-dots::before {
    content: "";
    width: 54px;
    height: 54px;
    background-image: radial-gradient(var(--primary) 3.5px, transparent 4px);
    background-size: 13px 13px;
    flex-shrink: 0;
    margin-inline-end: 4px;
}

/* ---------- Internal page hero (shared — promoted in session4) ---------- */
.page-hero {
    background-color: var(--light-bg);
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    color: var(--maroon);
    font-weight: 800;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.35;
}

.page-hero-desc {
    color: var(--text);
    line-height: 1.9;
    max-width: 560px;
}

.page-breadcrumb {
    margin-top: 40px;
    font-size: 14px;
    font-weight: 700;
}

.page-breadcrumb a { color: var(--heading); }

.page-breadcrumb a:hover { color: var(--primary); }

.page-breadcrumb .current { color: var(--primary); }

.page-breadcrumb .sep { margin: 0 8px; }

.page-hero-img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.page-hero-dots {
    position: absolute;
    top: 40px;
    left: -150px;
    width: 340px;
    height: 340px;
    border: 2px dashed rgba(200, 16, 46, .35);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.page-hero-line {
    position: absolute;
    top: 50%;
    right: calc(50% - 60px);
    width: 120px;
    height: 2px;
    background-color: var(--primary);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.page-hero-line::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn-amp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-amp-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    outline: 2px solid var(--primary);
    box-shadow: var(--shadow-red);
}

.btn-amp-primary:hover {
    background-color: var(--primary-dark);
    outline-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-amp-outline {
    background-color: transparent;
    color: var(--heading);
    border: 1px solid #d9d9d9;
}

.btn-amp-outline:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- Bullet list ---------- */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-list li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text);
}

.bullet-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* ---------- Slider arrows ---------- */
.slider-nav {
    display: inline-flex;
    gap: 12px;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.08);
}

.slider-btn.slider-btn-prev i { transform: scaleX(1); }

/* ---------- Navbar ---------- */
#mainNav {
    background-color: transparent;
    min-height: var(--nav-height);
    transition: var(--transition);
    box-shadow: none;
}

#mainNav.scrolled {
    background-color: var(--white);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .1);
}

#mainNav .navbar-brand img {
    transition: var(--transition);
}

#mainNav .nav-link {
    color: var(--heading);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px !important;
    transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-lang {
    color: var(--primary);
    font-size: 22px;
}

.nav-lang:hover { color: var(--primary-dark); }

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        background-color: var(--white);
        padding: 15px;
        border-radius: var(--radius);
        margin-top: 10px;
        box-shadow: var(--shadow-soft);
    }

    #mainNav.menu-open {
        background-color: var(--white);
        box-shadow: var(--shadow-soft);
    }
}

/* ---------- Footer ---------- */
#siteFooter {
    background-color: var(--white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
}

.footer-decor {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 2px solid rgba(200, 16, 46, .25);
    border-radius: 50%;
    top: 40%;
}

.footer-decor::before,
.footer-decor::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(200, 16, 46, .18);
}

.footer-decor::before {
    inset: 25px;
}

.footer-decor::after {
    inset: 50px;
    border-color: rgba(200, 16, 46, .12);
}

.footer-decor-right { right: -130px; }
.footer-decor-left  { left: -130px; }

.footer-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo img { height: 72px; }

.footer-tagline {
    color: var(--text);
    font-size: 14px;
    margin: 12px 0 25px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 30px;
    margin-bottom: 22px;
}

.footer-menu a {
    color: var(--heading);
    font-size: 15px;
    font-weight: 500;
}

.footer-menu a:hover { color: var(--primary); }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 16, 46, .4);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 14px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.footer-bottom a { color: var(--primary); }

/* ---------- Reveal animations (JS adds .visible) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Modal ---------- */
.modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary);
    color: var(--white);
}

.modal-header .btn-close {
    filter: invert(1);
    margin: 0;
}

.modal-title { font-weight: 800; }
