/* ===== ALMACREDI — Shared Styles ===== */

/* Arboria — hosted locally */
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Book.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* weight 600 and 800 map to Bold */
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Bold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arboria'; src: url('../fonts/Arboria-Bold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Arboria', sans-serif; background: #FFFFFF; color: #1A2340; }
a { color: #4A72B5; text-decoration: none; transition: color 0.2s; }
a:hover { color: #9B1C3E; }

:root {
  /* ── Dark (architecture: hero, navbar, footer) ── */
  --dark:       #0C1428;   /* charcoal premium */
  --navy:       #1E3A8A;   /* brand navy (blue-800) */
  --navy-deep:  #1E3A8A;

  /* ── Interactive blue ── */
  --blue:       #2563EB;   /* blue-600 — links, icons, accents */
  --blue-light: #60A5FA;   /* blue-400 — on dark backgrounds */
  --blue-sky:   #8BA8D4;   /* secondary text on dark */

  /* ── Crimson (CTA buttons only) ── */
  --crimson:    #9B1C3E;
  --crimson-dk: #7A1530;
  --crimson-lt: #C43458;

  /* ── Backgrounds ── */
  --white:      #FFFFFF;
  --surface:    #F8FAFC;   /* section alt (slate-50) */
  --surface-2:  #F1F5F9;   /* slightly deeper alt (slate-100) */

  /* ── Text ── */
  --text:       #0F172A;   /* slate-950 — headings */
  --muted:      #475569;   /* slate-600 — body */
  --muted-lt:   #94A3B8;   /* slate-400 — captions */

  /* ── Borders ── */
  --border:     #E2E8F0;   /* slate-200 */
  --border-dk:  rgba(255,255,255,0.07);  /* on dark bg */

  /* ── Utility ── */
  --success:    #10B981;
}

/* NAVBAR */
#navbar { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 1000; background: rgba(12,20,40,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 0 28px; transition: all 0.3s ease; }
#navbar.scrolled { background: rgba(12,20,40,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; background: rgba(255,255,255,0.92); padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-logo img { height: 38px; width: auto; display: block; object-fit: contain; }
.nav-logo span { color: #9B1C3E; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-btn { background: none; border: none; color: rgba(255,255,255,0.85); font-family: 'Arboria', sans-serif; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-btn svg { transform: rotate(180deg); }
.nav-badge { font-size: 10px; color: #60A5FA; border: 1px solid rgba(96,165,250,0.3); border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.btn-cta-nav { background: linear-gradient(135deg, #9B1C3E, #C43458) !important; color: #FFFFFF !important; font-weight: 700 !important; padding: 10px 20px !important; border-radius: 10px !important; transition: all 0.2s !important; }
.btn-cta-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(155,28,62,0.4); background: linear-gradient(135deg, #7A1530, #9B1C3E) !important; }

/* MEGA MENU */
.nav-item { position: relative; }
.mega-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: #0C1428; border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 20px; min-width: 480px; opacity: 0; visibility: hidden; transition: all 0.25s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.mega-menu.wide { min-width: 300px; }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-grid.cols-1 { grid-template-columns: 1fr; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.mega-item:hover { background: rgba(255,255,255,0.06); }
.mega-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-icon svg { width: 18px; height: 18px; color: #60A5FA; }
.mega-text h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.mega-text p { font-size: 11px; color: #8BA8D4; }

/* HAMBURGER / MOBILE */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; inset: 0; background: #0C1428; z-index: 999; padding: 100px 24px 40px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mob-link { display: block; padding: 16px 0; color: #fff; font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; text-decoration: none; }
.mob-link:hover { color: #8BA8D4; }
.mob-cta { display: block; margin-top: 24px; background: linear-gradient(135deg, #9B1C3E, #C43458); color: #FFFFFF; font-weight: 700; padding: 16px; border-radius: 12px; text-align: center; font-size: 18px; text-decoration: none; }
.mob-accordion { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mob-accordion-btn { display: flex; justify-content: space-between; align-items: center; background: none; border: none; border-bottom: none; width: 100%; text-align: left; font-family: inherit; color: #fff; }
.mob-accordion-btn svg { transition: transform 0.25s; flex-shrink: 0; }
.mob-accordion-btn.open svg { transform: rotate(180deg); }
.mob-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.mob-sub-link { display: flex; flex-direction: column; padding: 12px 0 12px 14px; color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.mob-sub-link span { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 400; margin-top: 2px; }
.mob-sub-link:hover { color: #8BA8D4; }

/* CONTAINER */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; }

/* BUTTONS */
.btn-primary { background: linear-gradient(135deg, #9B1C3E, #C43458); color: #FFFFFF; font-weight: 700; padding: 14px 28px; border-radius: 12px; font-size: 15px; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(155,28,62,0.4); }
.btn-outline { background: transparent; color: #0F172A; border: 1.5px solid #E2E8F0; font-weight: 500; padding: 14px 28px; border-radius: 12px; font-size: 15px; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: #9B1C3E; color: #9B1C3E; }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.05); }

/* SECTION TITLES */
.section-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #2563EB; margin-bottom: 12px; }
.section-title { font-family: 'Arboria', sans-serif; font-size: clamp(26px,4vw,42px); font-weight: 700; color: #0F172A; line-height: 1.2; margin-bottom: 16px; }
.section-title.light { color: #fff; }
.highlight-box { background: #9B1C3E; color: #fff; padding: 6px 22px; display: inline-block; transform: rotate(-2deg); border-radius: 8px; font-style: normal; font-weight: 800; margin: 6px 0; box-shadow: 0 4px 15px rgba(155,28,62,0.3); line-height: 1.2; }
.section-sub { font-size: 16px; color: #4A5568; line-height: 1.7; max-width: 580px; }
.section-sub.light { color: rgba(255,255,255,0.6); }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* PAGE HERO (inner pages) */
.page-hero { background: linear-gradient(160deg, #0C1428 0%, #1E3A8A 100%); padding: 160px 0 90px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(37,99,235,0.06) 0%, transparent 70%); }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero .section-tag { color: #60A5FA; }
.page-hero h1 { font-family: 'Arboria', sans-serif; font-size: clamp(32px,5vw,54px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: #8BA8D4; line-height: 1.7; margin-bottom: 32px; }
.page-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.page-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.page-breadcrumb a:hover { color: #60A5FA; }
.page-breadcrumb svg { width: 14px; height: 14px; }

/* FORM STYLES */
.form-card { background: #fff; border-radius: 20px; padding: 36px; border: 1px solid #E2E8F0; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #0F172A; margin-bottom: 8px; }
.form-group label span { color: #E53E3E; margin-left: 2px; }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid #E8EEF8; border-radius: 10px; font-size: 15px; font-family: 'Arboria', sans-serif; color: #1A2340; background: #fff; outline: none; transition: all 0.2s; }
.form-input:focus { border-color: #9B1C3E; box-shadow: 0 0 0 3px rgba(155,28,62,0.12); }
.form-input::placeholder { color: #94A3B8; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234A5568' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: #9B1C3E; flex-shrink: 0; margin-top: 2px; }
.form-check label { font-size: 13px; color: #4A5568; line-height: 1.5; }
.form-check label a { color: #9B1C3E; }

/* RANGE SLIDER */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; background: #E8EEF8; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: linear-gradient(135deg, #9B1C3E, #C43458); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 10px rgba(155,28,62,0.5); }

/* CARDS */
.card { background: #fff; border-radius: 18px; padding: 28px; border: 1px solid #E2E8F0; transition: all 0.3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,23,42,0.08); }
.card-dark { background: linear-gradient(160deg, #0C1428, #1E3A8A); border-color: rgba(255,255,255,0.07); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* FOOTER */
footer { background: #0C1428; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-logo { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 12px; }
.footer-logo img { height: 40px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo span { color: #9B1C3E; }
.footer-slogan { font-size: 14px; color: #8BA8D4; margin-bottom: 20px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-size: 14px; color: #8BA8D4; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.footer-contact a:hover { color: #9B1C3E; }
.footer-contact a svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: #8BA8D4; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #9B1C3E; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.footer-legal { font-size: 12px; color: rgba(139,168,212,0.6); line-height: 1.7; max-width: 620px; }
.footer-reg { font-size: 12px; color: rgba(139,168,212,0.6); }

/* COOKIE */
#cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #162F60; border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 20px 28px; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
#cookie-banner p { font-size: 13px; color: rgba(255,255,255,0.7); flex: 1; min-width: 200px; }
#cookie-banner p a { color: #60A5FA; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie { padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.btn-cookie-reject { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.btn-cookie-accept { background: linear-gradient(135deg, #9B1C3E, #C43458); color: #FFFFFF; }

/* GLOBAL OVERFLOW PREVENTION */
html { overflow-x: hidden; max-width: 100vw; }
img, svg { max-width: 100%; }
img, video { max-width: 100%; height: auto; }

/* RESPONSIVE HELPERS */
.hide-mobile { display: block; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu { min-width: 280px; }
  .page-hero { padding: 130px 0 70px; }
}
@media (max-width: 768px) {
  #navbar { padding: 0 16px; top: 8px; left: 8px; right: 8px; border-radius: 12px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 100px 0 56px; }
  .page-hero p { font-size: 15px; }
  .page-hero-content { max-width: 100%; }
  .section-header { margin-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; }
  .hide-mobile { display: none !important; }
  .highlight-box { padding: 4px 14px; font-size: 0.9em; transform: none; }
  .section-title { overflow-wrap: break-word; word-break: break-word; }
  .section-sub { max-width: 100%; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 90px 0 44px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .btn-primary, .btn-outline { padding: 12px 18px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .form-card { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
