/* ════
   SABCOR Website – Main Stylesheet
   ════ */

/* ── Custom Properties ──── */
:root {
    --navy:      #0D2B5E;
    --blue:      #1A4E9B;
    --blue-mid:  #2563EB;
    --blue-light:#DBEAFE;
    --accent:    #F59E0B;
    --white:     #FFFF;
    --gray-50:   #F8FAFC;
    --gray-100:  #F1F5F9;
    --gray-200:  #E2E8F0;
    --gray-400:  #94A3B8;
    --gray-600:  #475569;
    --gray-800:  #1E293B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
    --radius:    10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --header-h:  128px;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif:'Merriweather', Georgia, serif;
}

/* ── Reset & Base ──── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-mid); }
ul { list-style: none; }

/* ── Typography ──── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.8; }

/* ── Layout Helpers ──── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt{ background: var(--gray-50); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #CBD5E1; }
.text-center { text-align: center; }
.section-tag {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.section-dark .section-tag {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.divider {
    width: 56px; height: 4px;
    background: var(--blue-mid);
    border-radius: 2px;
    margin: 16px auto 32px;
}
.divider-left { margin-left: 0; }

/* ── Buttons ──── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: .95rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue-mid);
    color: var(--white);
    border-color: var(--blue-mid);
}
.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}
.btn-accent {
    background: var(--accent);
    color: var(--navy);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: #D97706;
    border-color: #D97706;
    color: var(--white);
    transform: translateY(-2px);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Header / Navigation ──── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.logo-img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: .92rem; font-weight: 500;
    color: var(--gray-800);
    transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--blue-mid);
    background: var(--blue-light);
}
.main-nav .nav-cta {
    background: var(--blue-mid);
    color: var(--white) !important;
    padding: 9px 20px;
}
.main-nav .nav-cta:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}
.nav-toggle {
    display: none; flex-direction: column;
    gap: 5px; background: none; border: none;
    cursor: pointer; padding: 6px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2.5px;
    background: var(--navy); border-radius: 2px;
    transition: all var(--transition);
}

/* ── Hero Section ──── */
.hero {
    position: relative;
    min-height: 600px;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--navy);
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('headban04.png') center/cover no-repeat;
    opacity: .25;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(13,43,94,.97) 45%, rgba(26,78,155,.7) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    padding: 80px 0;
    max-width: 680px;
}
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: #93C5FD;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: #60A5FA; }
.hero .lead { color: #CBD5E1; margin-bottom: 36px; font-size: 1.1rem; }
.hero-stats {
    display: flex; gap: 36px; flex-wrap: wrap;
    margin-top: 44px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: #60A5FA; }
.hero-stat span { font-size: .85rem; color: #94A3B8; }

/* ── Cards ──── */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}
.card-icon {
    width: 56px; height: 56px;
    background: var(--blue-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem; color: var(--blue-mid);
    flex-shrink: 0;
}
.card-dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}
.card-dark:hover { border-color: rgba(255,255,255,.25); }
.card-dark h3 { color: var(--white); }
.card-dark p  { color: #94A3B8; }
.card-dark .card-icon { background: rgba(255,255,255,.12); color: #93C5FD; }

/* ── Feature Row (image + text) ──── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.feature-image img { width: 100%; height: 380px; object-fit: cover; }

/* ── Checklist ──── */
.checklist { padding: 0; }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 14px; font-size: .97rem;
}
.checklist li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--blue-mid); font-size: 1.1rem;
    margin-top: 2px; flex-shrink: 0;
}
.checklist-white li { color: #CBD5E1; }
.checklist-white li::before { color: #60A5FA; }

/* ── Highlight Banner ──── */
.highlight-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
}
.highlight-banner h2 { color: var(--white); margin-bottom: 12px; }
.highlight-banner p  { color: #CBD5E1; max-width: 560px; margin: 0 auto 32px; }

/* ── Page Banner ──── */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url('headban04.png') center/cover no-repeat;
    opacity: .08;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p  { color: #CBD5E1; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    justify-content: center;
    font-size: .85rem; color: #94A3B8;
    margin-bottom: 16px;
}
.breadcrumb a { color: #93C5FD; }
.breadcrumb a:hover { color: var(--white); }

/* ── About Page ──── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.value-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue-mid);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.value-card h4 { color: var(--blue-mid); margin-bottom: 6px; font-family: var(--font-sans); font-weight: 700; }

/* ── Services Page ──── */
.service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px; align-items: flex-start;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }

/* ── GR5 Page ──── */
.product-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--navy);
    font-weight: 700; font-size: .85rem;
    padding: 6px 16px; border-radius: 50px;
    margin-bottom: 16px;
}
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.use-case-card {
    text-align: center; padding: 28px 20px;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.use-case-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.use-case-card .icon { font-size: 2rem; color: var(--blue-mid); margin-bottom: 12px; }
.use-case-card p { font-size: .88rem; color: var(--gray-600); margin: 0; }

/* ── Contact Page ──── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-info-box {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-box p  { color: #94A3B8; font-size: .95rem; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #60A5FA; flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 2px; }
.contact-item-text a, .contact-item-text span { color: #94A3B8; font-size: .9rem; }
.contact-item-text a:hover { color: #60A5FA; }
.whatsapp-cta-link {
    display: flex; align-items: center; gap: 12px;
    background: #25D366;
    color: var(--white);
    padding: 14px 20px; border-radius: var(--radius);
    font-weight: 600; font-size: .95rem;
    margin-top: 24px;
    transition: all var(--transition);
}
.whatsapp-cta-link:hover { background: #128C7E; color: var(--white); transform: translateY(-2px); }
.whatsapp-cta-link i { font-size: 1.4rem; }

/* ── Contact Form ──── */
.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
    display: block;
    font-size: .88rem; font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: .95rem; font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { resize: vertical; min-height: 140px; }
.form-submit { width: 100%; font-size: 1rem; padding: 15px; justify-content: center; }

/* ── Honeypot (off-screen, visible only to bots) ──── */
.hp-field {
    position: absolute;
    left: -9999px; top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.hp-field input { width: 1px; height: 1px; }

/* ── Alert Messages ──── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: .95rem; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
}
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ── WhatsApp Float ──── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    z-index: 999;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--white);
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,.5);
    color: var(--white);
}
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--gray-800);
    color: var(--white);
    font-size: .8rem; font-weight: 600;
    padding: 6px 12px; border-radius: 6px;
    white-space: nowrap; opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--gray-800);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── Back to Top ──── */
.back-to-top {
    position: fixed; bottom: 28px; left: 28px;
    z-index: 999;
    width: 44px; height: 44px;
    background: var(--navy); color: var(--white);
    border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--blue-mid); transform: translateY(-3px); }

/* ── Footer ──── */
.site-footer {
    background: var(--gray-800);
    color: #94A3B8;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(10); opacity: .85; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
    color: var(--white); font-family: var(--font-sans);
    font-size: .95rem; font-weight: 700;
    margin-bottom: 16px; letter-spacing: .02em;
}
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .9rem; }
.footer-links a, .footer-contact a { color: #94A3B8; transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact i { color: #60A5FA; font-size: 1rem; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .85rem; }

/* ── Blocked Page ──── */
.blocked-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    background: var(--gray-50); text-align: center;
    padding: 40px 24px;
}
.blocked-box {
    max-width: 500px;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 56px 40px; box-shadow: var(--shadow-lg);
}
.blocked-icon { font-size: 4rem; color: #EF4444; margin-bottom: 24px; }
.blocked-box h1 { color: #991B1B; font-size: 1.8rem; margin-bottom: 12px; }
.blocked-box p  { color: var(--gray-600); }

/* ── Responsive ──── */
@media (max-width: 968px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--white); border-top: 1px solid var(--gray-200);
        padding: 16px 24px; display: none; box-shadow: var(--shadow);
    }
    .main-nav.open { display: block; }
    .main-nav ul   { flex-direction: column; gap: 4px; }
    .main-nav a    { display: block; padding: 12px 16px; font-size: 1rem; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
    .contact-grid  { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .form-row      { grid-template-columns: 1fr; }
    .hero-stats    { gap: 20px; }
}
@media (max-width: 640px) {
    :root { --header-h: 128px; }
    .section { padding: 56px 0; }
    .hero    { min-height: 520px; }
    .hero-content { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .highlight-banner { padding: 40px 24px; }
    .contact-form-box, .contact-info-box { padding: 28px 20px; }
    .feature-image img { height: 240px; }
}