/* ============================== */
/* Landura UCI - style.css         */
/* Geometric Structured Aesthetic  */
/* Mobile-first, Flex-only Layouts */
/* ============================== */

/* ------------------------------ */
/* 1) Reset & Normalize           */
/* ------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #0B1F33; background: #FFFFFF; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0E3A66; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 3px solid #1E9E8E; outline-offset: 2px; }

/* ------------------------------ */
/* 2) Theme Tokens (fallbacks)    */
/* ------------------------------ */
:root {
  --primary: #0E3A66;
  --secondary: #1E9E8E;
  --accent: #F5F7FA;
  --ink: #0B1F33;
  --muted: #50657C;
  --line: #DBE2EA;
  --surface: #FFFFFF;
  --shadow-sm: 0 1px 0 rgba(14,58,102,0.04), 0 2px 6px rgba(14,58,102,0.06);
  --shadow-md: 0 2px 0 rgba(14,58,102,0.06), 0 6px 18px rgba(14,58,102,0.10);
}

/* ------------------------------ */
/* 3) Typography                  */
/* ------------------------------ */
h1, h2, h3, h4, h5 { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; color: var(--primary, #0E3A66); margin: 0 0 12px; line-height: 1.2; letter-spacing: 0.2px; }
.subheadline { color: var(--muted, #50657C); margin: 8px 0 0; }

/* Mobile-first sizes */
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p, li { font-size: 16px; }
small { font-size: 14px; color: var(--muted, #50657C); }

/* Geometric underline accent for h1 */
.hero h1 { position: relative; padding-bottom: 6px; }
.hero h1:after { content: ""; display: block; width: 64px; height: 4px; background: var(--secondary, #1E9E8E); }

/* ------------------------------ */
/* 4) Core Layout Containers      */
/* Use ONLY Flexbox for layouts   */
/* ------------------------------ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }

/* Global section rhythm */
section { padding: 32px 0; border-bottom: 1px solid var(--line, #DBE2EA); }
section:last-of-type { border-bottom: none; }

/* Hero section styling */
.hero { background: var(--accent, #F5F7FA); border-bottom: 4px solid var(--secondary, #1E9E8E); }
.hero .container { padding-top: 24px; padding-bottom: 24px; }

/* Text blocks */
.text-section { display: flex; flex-direction: column; gap: 10px; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #DBE2EA); box-shadow: var(--shadow-sm); padding: 16px; border-radius: 4px; }

/* Geometric bullets inside text sections */
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { position: relative; padding-left: 18px; }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--secondary, #1E9E8E); transform: rotate(45deg); }
.text-section ol { padding-left: 20px; }

/* Content group for CTAs */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Contact inline small icons */
.contact-inline img { display: inline-block; vertical-align: middle; width: 16px; height: 16px; margin-right: 6px; }
.contact-inline a { text-decoration: underline; }

/* ------------------------------ */
/* 5) Header & Navigation         */
/* ------------------------------ */
header { position: sticky; top: 0; z-index: 1000; background: var(--surface, #FFFFFF); border-bottom: 1px solid var(--line, #DBE2EA); }
header > .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a { color: var(--ink, #0B1F33); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-size: 14px; padding: 10px 8px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--secondary, #1E9E8E); color: var(--primary, #0E3A66); }

.header-ctas { display: none; gap: 10px; align-items: center; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 22px; color: var(--surface, #FFFFFF); background: var(--primary, #0E3A66); border-radius: 4px; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #0B3054; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(11,31,51,0.5); display: flex; align-items: stretch; justify-content: flex-end; transform: translateX(100%); transition: transform 0.35s ease; z-index: 1200; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav { background: var(--surface, #FFFFFF); width: 86%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-left: 4px solid var(--primary, #0E3A66); box-shadow: var(--shadow-md); }
.mobile-menu-close { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; font-size: 22px; color: var(--primary, #0E3A66); background: transparent; }
.mobile-nav a { padding: 12px 10px; border: 1px solid var(--line, #DBE2EA); border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink, #0B1F33); }
.mobile-nav a:hover { border-color: var(--secondary, #1E9E8E); color: var(--primary, #0E3A66); }

/* ------------------------------ */
/* 6) Buttons                     */
/* ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 4px; border: 2px solid var(--primary, #0E3A66); background: transparent; color: var(--primary, #0E3A66); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.primary { background: var(--primary, #0E3A66); color: #FFFFFF; border-color: var(--primary, #0E3A66); }
.btn.primary:hover { background: #0B3054; }
.btn.secondary { background: #FFFFFF; color: var(--primary, #0E3A66); border-color: var(--secondary, #1E9E8E); }
.btn.secondary:hover { background: var(--accent, #F5F7FA); }
.btn:active { transform: translateY(0); }

/* ------------------------------ */
/* 7) Cards & Testimonials        */
/* ------------------------------ */
/* MANDATORY spacing pattern classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Enhance visuals while preserving mandatory props */
.card, .testimonial-card, .feature-item { background: var(--surface, #FFFFFF); border: 1px solid var(--line, #DBE2EA); border-radius: 6px; box-shadow: var(--shadow-sm); }
.testimonial-card { background: var(--accent, #F5F7FA); color: var(--ink, #0B1F33); border-left: 4px solid var(--primary, #0E3A66); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--muted, #50657C); }

/* Hover micro-interaction for cards */
.card:hover, .testimonial-card:hover, .feature-item:hover, .text-section:hover { box-shadow: var(--shadow-md); }

/* ------------------------------ */
/* 8) Footer                      */
/* ------------------------------ */
footer { background: #FFFFFF; border-top: 1px solid var(--line, #DBE2EA); }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: var(--muted, #50657C); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 6px; border-bottom: 2px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--secondary, #1E9E8E); color: var(--primary, #0E3A66); }

/* ------------------------------ */
/* 9) Links & Misc                */
/* ------------------------------ */
a { border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.text-section a { border-bottom-color: var(--line, #DBE2EA); }
.text-section a:hover { border-bottom-color: var(--secondary, #1E9E8E); color: var(--primary, #0E3A66); }

/* ------------------------------ */
/* 10) Responsive Flex Behaviors  */
/* ------------------------------ */
@media (min-width: 640px) {
  .content-wrapper { gap: 24px; }
  .cta-group { gap: 16px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  /* Show desktop nav and header CTAs */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Two-column structured content using flex-wrap */
  .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  .content-wrapper > .text-section { flex: 1 1 320px; max-width: 560px; }

  /* Text-image sections align center vertically */
  .text-image-section { flex-direction: row; align-items: center; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }

  header > .container { gap: 16px; }

  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  footer .content-wrapper > * { flex: 1 1 280px; }
}

/* ------------------------------ */
/* 11) Mobile Navigation Anim     */
/* ------------------------------ */
@media (max-width: 767px) {
  /* Hide desktop nav and ctas on mobile */
  .main-nav, .header-ctas { display: none !important; }
}

/* ------------------------------ */
/* 12) Cookie Consent UI          */
/* ------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface, #FFFFFF); border-top: 3px solid var(--primary, #0E3A66); box-shadow: 0 -2px 16px rgba(14,58,102,0.12); z-index: 1400; transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.cookie-text { color: var(--ink, #0B1F33); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 4px; border: 2px solid var(--primary, #0E3A66); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.cookie-btn.accept { background: var(--primary, #0E3A66); color: #FFFFFF; }
.cookie-btn.reject { background: #FFFFFF; color: var(--primary, #0E3A66); border-color: #0E3A66; }
.cookie-btn.settings { background: var(--accent, #F5F7FA); color: var(--ink, #0B1F33); border-color: var(--secondary, #1E9E8E); }
.cookie-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Cookie Preferences Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(11,31,51,0.5); z-index: 1500; display: none; }
.cookie-backdrop.open { display: flex; align-items: center; justify-content: center; }
.cookie-modal { width: 92%; max-width: 640px; background: var(--surface, #FFFFFF); border: 1px solid var(--line, #DBE2EA); border-left: 6px solid var(--secondary, #1E9E8E); border-radius: 6px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px; padding: 18px; transform: translateY(16px); transition: transform 0.25s ease; }
.cookie-backdrop.open .cookie-modal { transform: translateY(0); }
.cookie-modal h3 { margin: 0; }
.cookie-category { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line, #DBE2EA); border-radius: 4px; background: var(--accent, #F5F7FA); }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink, #0B1F33); }
/* Simple toggle visual */
.toggle { width: 42px; height: 24px; background: #C7D4DF; border-radius: 24px; position: relative; transition: background 0.2s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #FFFFFF; border: 1px solid var(--line, #DBE2EA); border-radius: 50%; transition: transform 0.2s ease; }
.toggle.on { background: var(--secondary, #1E9E8E); }
.toggle.on::after { transform: translateX(18px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ------------------------------ */
/* 13) Utility & Helper Classes   */
/* ------------------------------ */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.wrap { display: flex; flex-wrap: wrap; gap: 20px; }

/* Ensure alignment rules per requirements */
.card-content { display: flex; flex-direction: column; justify-content: center; }

/* ------------------------------ */
/* 14) Visual Consistency         */
/* ------------------------------ */
/* Angular dividers for strong geometry */
hr { border: 0; height: 3px; background: var(--accent, #F5F7FA); }

/* Stronger contrast in review/testimonial sections */
section .testimonial-card { color: var(--ink, #0B1F33); background: var(--accent, #F5F7FA); }

/* Prevent overlapping by spacing */
.content-wrapper > * + * { margin-top: 0; }

/* ------------------------------ */
/* 15) Page-specific minor tweaks */
/* ------------------------------ */
/* Highlight KPI lists with stronger bullets */
.text-section h3 + ul li::before { background: var(--primary, #0E3A66); }

/* Index hero CTA spacing */
.hero .cta-group .btn { min-width: 180px; }

/* Footer logo sizing */
footer .logo img { height: 32px; }

/* ------------------------------ */
/* 16) Accessibility States       */
/* ------------------------------ */
.btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible, .footer-nav a:focus-visible, .main-nav a:focus-visible { outline: 3px solid var(--secondary, #1E9E8E); outline-offset: 2px; }

/* ------------------------------ */
/* 17) Strict Flex-only Enforcement */
/* ------------------------------ */
/* All layout containers use flex already. No CSS Grid or Columns used. */

/* ------------------------------ */
/* 18) Print basics               */
/* ------------------------------ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-backdrop { display: none !important; }
  a { color: #000; border-bottom: none; }
}
