/*
  madinahdrain24.com — main stylesheet
  Preserves the original page's identity (colors, pill buttons, clipped hero,
  card style) while extending it into a full multi-page system.
  No external fonts/icon libraries — system font stack + local inline SVG icons.
*/

:root {
    --primary: #00428A;
    --primary-dark: #00305F;
    --secondary: #00A3FF;
    --accent: #FF6B00;
    --accent-dark: #E65A00;
    --whatsapp: #25D366;
    --whatsapp-dark: #1EBE55;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-gray: #555555;
    --border-color: #E7EAEE;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 15px;
    --max-width: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    --header-height: 76px;
    --sticky-bar-height: 62px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
}

img, svg { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.icon { width: 1em; height: 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    right: -9999px;
    top: auto;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
}
.skip-link:focus {
    right: 20px;
    top: 20px;
}

/* --- Section header --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}
.section-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}
section { padding: 70px 0; }
section.alt-bg { background-color: var(--white); }

h1, h2, h3, h4 { line-height: 1.4; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 9px 20px; font-size: 0.95rem; }

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover { background-color: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4); }

.btn-whatsapp-solid {
    background-color: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-solid:hover { background-color: var(--whatsapp-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* --- Header --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    inset-inline: 0;
    width: 100%;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.logo-icon { width: 1.3em; height: 1.3em; color: var(--secondary); }

.nav-main {
    flex: 0 1 auto;
    min-width: 0;
}
.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    font-size: 0.98rem;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--secondary); }

.header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    padding: 8px 4px;
    border-radius: 8px;
    transition: var(--transition);
}
.header-phone:hover { background: rgba(0, 163, 255, 0.08); }
.header-phone .icon { color: var(--secondary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.menu-toggle:hover { background: rgba(0, 163, 255, 0.08); }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-top: 0 solid var(--border-color);
    padding: 0 20px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu li a {
    display: block;
    padding: 12px 4px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-cta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mobile-menu-cta .btn { flex: 1; min-height: 46px; }
.site-header.menu-open .mobile-menu {
    max-height: 520px;
    padding: 10px 20px 20px;
    border-top: 1px solid var(--border-color);
}

main { display: block; padding-top: var(--header-height); }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-gray); }
.breadcrumbs a { color: var(--text-gray); font-weight: 600; }
.breadcrumbs a:hover { color: var(--secondary); }
.breadcrumbs .icon-sep { width: 0.8em; height: 0.8em; transform: scaleX(-1); opacity: .6; }
.breadcrumbs [aria-current="page"] { color: var(--primary); font-weight: 700; }

/* --- Hero --- */
.hero {
    padding: 70px 0 90px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero.hero-inner { padding: 55px 0 75px; text-align: right; }
.hero-inner .container { max-width: 900px; }
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.35;
}
.hero p {
    font-size: 1.15rem;
    max-width: 780px;
    margin: 0 auto 32px;
    opacity: 0.95;
}
.hero-inner p { margin: 0 0 28px; max-width: 100%; }
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-inner .hero-cta { justify-content: flex-start; }
.hero .breadcrumbs { text-align: right; margin-bottom: 10px; }
.hero .breadcrumbs ol, .hero .breadcrumbs a, .hero .breadcrumbs [aria-current="page"] { color: rgba(255,255,255,0.85); }
.hero .breadcrumbs a:hover { color: var(--white); }

/* --- Trust bar --- */
.trust-bar {
    background-color: var(--white);
    padding: 28px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    margin-top: -45px;
    border-radius: 14px;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.trust-item .icon { width: 2.3rem; height: 2.3rem; color: var(--secondary); margin-bottom: 8px; }
.trust-item h4 { font-size: 1.05rem; color: var(--primary); font-weight: 700; }

/* --- Services grid (cards) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    padding: 36px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-8px); border-bottom-color: var(--secondary); }
.service-icon {
    width: 74px; height: 74px;
    background-color: rgba(0, 163, 255, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    transition: var(--transition);
}
.service-icon .icon { width: 2rem; height: 2rem; }
.service-card:hover .service-icon { background-color: var(--secondary); color: var(--white); }
.service-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.service-card p { color: var(--text-gray); font-size: .98rem; }
.service-card .btn { margin-top: 18px; }

/* --- Two-column icon list (signs / causes / coverage) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.info-card .icon-wrap {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(0,66,138,0.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.info-card .icon-wrap .icon { width: 1.4rem; height: 1.4rem; }
.info-card h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { color: var(--text-gray); font-size: .95rem; }

.info-card.warning .icon-wrap { background: rgba(255,107,0,0.1); color: var(--accent); }

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 30px 22px 22px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.step-number {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    margin: 0 auto 14px;
    font-size: 1.1rem;
}
.step-card h4 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { color: var(--text-gray); font-size: .93rem; }

/* --- Pricing factors --- */
.factors-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.factor-item { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-radius: 10px; padding: 18px; border: 1px solid var(--border-color); }
.factor-item .icon { color: var(--secondary); width: 1.4rem; height: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.factor-item h4 { color: var(--primary); font-size: 1rem; margin-bottom: 4px; }
.factor-item p { color: var(--text-gray); font-size: .92rem; }

.price-note {
    background: rgba(0,163,255,0.08);
    border-inline-start: 4px solid var(--secondary);
    padding: 18px 20px;
    border-radius: 10px;
    margin-top: 24px;
    color: var(--dark);
}

/* --- Coverage list --- */
.coverage-list { display: flex; flex-wrap: wrap; gap: 12px; }
.coverage-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: .93rem;
    color: var(--primary);
}
.coverage-chip .icon { width: 1.1em; height: 1.1em; color: var(--secondary); }

/* --- Inline CTA (services / pricing / FAQ sections) --- */
.inline-cta {
    margin-top: 30px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 22px;
}
.inline-cta p { color: var(--primary); font-weight: 700; margin-bottom: 14px; font-size: 1.02rem; }
.inline-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-plus { width: 1.1em; height: 1.1em; color: var(--secondary); flex-shrink: 0; transition: var(--transition); }
.faq-item[open] summary .icon-plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--text-gray); }

/* --- CTA section --- */
.cta-section {
    padding: 64px 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}
.cta-section h2 { font-size: 2.1rem; margin-bottom: 16px; font-weight: 800; }
.cta-section p { font-size: 1.1rem; margin-bottom: 32px; opacity: 0.92; }

/* --- Contact page --- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.contact-card .btn { width: 100%; margin-bottom: 14px; }
.contact-meta { color: var(--text-gray); margin: 18px 0; }
.contact-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-top: 30px; }

/* --- Legal pages --- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { color: var(--primary); margin: 32px 0 14px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-gray); margin-bottom: 12px; }
.legal-content ul { padding-inline-start: 20px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h3 { font-size: 1.25rem; color: var(--secondary); margin-bottom: 18px; }
.footer-col p, .footer-col li { color: #AAAAAA; margin-bottom: 10px; font-size: .95rem; }
.footer-links li { display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links .icon-sm { width: .8em; height: .8em; transform: scaleX(-1); }
.footer-links a:hover { color: var(--white); }
.footer-links li:hover { transform: translateX(-4px); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: .88rem;
}
.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: #888;
}
.footer-dev-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--whatsapp);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}
.footer-dev-whatsapp:hover { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); }

/* --- Mobile sticky bar --- */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    height: var(--sticky-bar-height);
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.12);
}
.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: var(--white);
    font-size: .98rem;
}
.sticky-call { background: var(--accent); }
.sticky-whatsapp { background: var(--whatsapp); }

/* --- 404 --- */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 4rem; color: var(--primary); }
.error-page p { color: var(--text-gray); margin: 16px 0 32px; font-size: 1.1rem; }

/* --- Animations (motion-safe) --- */
@media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: slideDown .7s ease; }
    .hero p { animation: fadeIn .9s ease .2s both; }
    .hero-cta { animation: slideUp .7s ease .4s both; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 1180px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.9rem; }
}

@media (max-width: 992px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .header-phone span { display: none; }
    .header-contact .btn-sm { display: none; }
    .menu-toggle { display: flex; }
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: var(--sticky-bar-height); }
}

@media (max-width: 768px) {
    :root { --sticky-bar-height: 58px; }
    section { padding: 50px 0; }
    .hero { padding: 46px 0 70px; }
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1.02rem; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 1.7rem; }
    .contact-card { padding: 28px 20px; }
}

@media (max-width: 430px) {
    .hero h1 { font-size: 1.6rem; }
    .btn { width: 100%; }
    .hero-cta, .cta-section .hero-cta { flex-direction: column; }
}
