/* ByteRevive - Geometric Structured Style (Flex-only) */
/* RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: transparent; border: none; color: inherit; }
input, button, textarea, select { font: inherit; }

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* THEME VARIABLES (with fallbacks) */
:root {
  --primary: #0A2E5C; /* deep confident blue */
  --secondary: #0EB59A; /* energetic teal */
  --accent: #F5F9FF; /* airy accent background */
  --ink: #0E223F; /* body text */
  --muted: #6A7990; /* secondary text */
  --line: #D9E3F3; /* separators */
  --surface: #FFFFFF; /* cards/surfaces */
  --shadow: 0 6px 20px rgba(10,46,92,0.10);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 14px;
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-30: 30px; --space-32: 32px; --space-40: 40px; --space-48: 48px; --space-60: 60px;
  --focus: 2px dotted var(--secondary);
}

/* BASE */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Montserrat, Inter, Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0.2px;
}

h1 { font-size: 34px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 800; margin-bottom: var(--space-20); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin-top: var(--space-16); margin-bottom: var(--space-8); }
p { font-size: 16px; color: var(--ink); }
small, .small { font-size: 14px; color: var(--muted); }

/* ACCESSIBILITY */
:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* LAYOUT CONTAINERS (Flex-only) */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex; /* flex-only */
  flex-direction: column;
}
.content-wrapper {
  display: flex; /* flex-only */
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
}

/* MANDATORY SPACING AND ALIGNMENT PATTERNS */
.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; }

/* GLOBAL SECTION STYLING (applied to all <section>) */
section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); position: relative; }
section .text-section { display: flex; flex-direction: column; gap: var(--space-12); }

/* GEOMETRIC LIST BULLETS */
.text-section ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.text-section ul li { position: relative; padding-left: 20px; }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--secondary); transform: rotate(45deg); border: 2px solid var(--primary); }
.text-section ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }

/* HEADER */
header { border-bottom: 2px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 800; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 64px; }
.logo img { height: 34px; width: auto; }

/* DESKTOP NAV */
.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { padding: 10px 12px; border-radius: var(--radius-s); color: var(--primary); font-weight: 600; letter-spacing: 0.2px; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--accent); color: var(--primary); transform: translateY(-1px); }
.main-nav a:active { transform: translateY(0); }

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 2px solid var(--primary); border-radius: 10px; color: var(--primary); background: var(--surface); transition: background-color .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: var(--accent); transform: translateY(-1px); }
.mobile-menu-toggle:active { transform: translateY(0); }

/* MOBILE MENU PANEL */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right side panel */
  width: min(90%, 340px);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1000;
  display: flex; /* flex-only */
  flex-direction: column;
  padding: var(--space-20);
  gap: var(--space-20);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; font-size: 22px; width: 36px; height: 36px; border: 2px solid var(--primary); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--primary); }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { padding: 12px 10px; border: 2px solid var(--line); border-radius: 10px; color: var(--primary); font-weight: 600; }
.mobile-nav a:hover { border-color: var(--primary); background: var(--accent); }

/* HERO (structured + geometric accents) */
section[aria-label="Hero"] { background: var(--accent); border-top: 4px solid var(--primary); border-bottom: 2px solid var(--line); }
section[aria-label="Hero"]::after { content: ""; position: absolute; right: 18px; top: 18px; width: 18px; height: 18px; background: var(--secondary); transform: rotate(45deg); border: 2px solid var(--primary); opacity: .75; }
section[aria-label="Hero"] h1 { max-width: 22ch; }

/* CTA LINKS (buttons inside sections) */
section p a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; border: 2px solid var(--primary); color: var(--primary); font-weight: 700; margin-right: 12px; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
section p a:first-child { background: var(--primary); color: #FFFFFF; }
section p a:hover { transform: translateY(-2px); }
section p a:first-child:hover { background: #093053; border-color: #093053; }
section p a + a { background: transparent; color: var(--primary); }
.text-section a { padding: 0; border: none; border-radius: 0; text-decoration: underline; font-weight: 600; }

/* ICON ALIGNMENT */
.text-section img, p img { width: 18px; height: 18px; margin-left: 6px; vertical-align: middle; display: inline-block; }

/* TESTIMONIALS - light cards with strong contrast */
.testimonial-card { background: #FFFFFF; border: 2px solid var(--line); border-left: 6px solid var(--secondary); border-radius: 12px; box-shadow: var(--shadow); color: #0B1F3A; }
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: var(--space-16); }

/* FOOTER */
footer { background: var(--primary); color: #FFFFFF; border-top: 4px solid var(--secondary); }
footer .content-wrapper { flex-direction: column; gap: var(--space-20); padding: var(--space-24) 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #FFFFFF; opacity: 0.9; padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, opacity .2s ease; }
.footer-nav a:hover { background: rgba(255,255,255,0.08); opacity: 1; }
footer .text-section p { color: #E8F0FF; }

/* CARDS (generic) */
.card { background: #FFFFFF; border: 2px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); padding: var(--space-20); }

/* UTILITIES */
.muted { color: var(--muted); }
.divider { width: 100%; height: 2px; background: var(--line); }
.center { display: flex; justify-content: center; align-items: center; }

/* RESPONSIVE FLEX BEHAVIOR */
/* Text-image sections stack on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* DESKTOP ENHANCEMENTS */
@media (min-width: 769px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  header .content-wrapper { min-height: 76px; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  section { padding: var(--space-48) var(--space-20); }
  .content-wrapper { gap: var(--space-24); }
}

/* LINKS & STATES */
a { transition: color .2s ease; }
a:hover { color: var(--secondary); }
a:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* BUTTON UTILITY (optional in HTML) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 700; border: 2px solid var(--primary); color: var(--primary); background: transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #093053; }
.btn--secondary { border-color: var(--secondary); color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }

/* TABLES (if any in content) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { color: var(--primary); font-weight: 700; }

/* FORMS (generic if added later) */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,181,154,0.15); outline: none; }
label { font-weight: 600; color: var(--primary); margin-bottom: 6px; display: inline-block; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 12px; /* flex-only */
  background: #FFFFFF; color: var(--ink);
  border: 2px solid var(--primary); border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 900;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-actions .btn-accept { background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cookie-banner .cookie-actions .btn-reject { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cookie-banner .cookie-actions .btn-settings { background: var(--accent); color: var(--primary); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cookie-banner a { text-decoration: underline; }

/* COOKIE MODAL */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1100; display: none; /* flex-only when open */
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-surface {
  background: #FFFFFF; width: 100%; max-width: 720px;
  border: 3px solid var(--primary); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-header h3 { margin: 0; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 2px solid var(--line); border-radius: 10px; }
.cookie-modal .category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-modal .category .toggle { display: inline-flex; align-items: center; gap: 8px; }
/* Simple toggle style */
.cookie-toggle { width: 48px; height: 28px; background: #E6EEF9; border: 2px solid var(--primary); border-radius: 20px; position: relative; transition: background-color .2s ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 50%; left: 4px; width: 18px; height: 18px; background: #FFFFFF; border: 2px solid var(--primary); border-radius: 50%; transform: translateY(-50%); transition: left .2s ease; }
.cookie-toggle.is-on { background: var(--secondary); }
.cookie-toggle.is-on::after { left: 22px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn-save { background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cookie-modal .btn-cancel { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* ACCESSIBILITY & REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* PAGE-SPECIFIC NUANCES - Maintain structured, geometric cues */
/* Pricing and lists - emphasize clarity */
section[aria-label*="Pricing"] .text-section ul li strong,
section[aria-label="Transparent pricing"] .text-section ul li strong,
section[aria-label="Repair pricing"] .text-section ul li strong,
section[aria-label="Data recovery pricing"] .text-section ul li strong,
section[aria-label="Business IT support"] .text-section ul li strong {
  color: var(--primary);
}

/* FAQ headings spacing */
section[aria-label*="FAQ"] h3 { margin-top: var(--space-16); }

/* Contact details rows */
section[aria-label="Contact"], section[aria-label="Our details"], section[aria-label="Location"] { background: #FFFFFF; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

/* Ensuring minimum spacing between content cards */
.testimonial-card, .card { margin-bottom: 20px; }

/* CONTENT WRAPPER WIDTH CONTROL INSIDE CONTAINER */
/* Keep content centered and breathable */
main .container > .content-wrapper, header .container > .content-wrapper, footer .container > .content-wrapper {
  width: 100%;
}

/* QUICK LINKS NAV within text-section */
nav[aria-label="Quick links"] { display: flex; flex-wrap: wrap; gap: 12px; }
nav[aria-label="Quick links"] a { text-decoration: underline; font-weight: 600; color: var(--primary); }
nav[aria-label="Quick links"] a:hover { color: var(--secondary); }

/* ANGULAR SEPARATORS FOR GEOMETRIC FEEL */
section .content-wrapper::before {
  content: ""; display: block; width: 36px; height: 4px; background: var(--secondary); border: 2px solid var(--primary); transform: skewX(-20deg); margin-bottom: 4px; border-radius: 2px;
}

/* Ensure no element overlaps by keeping generous gaps */
.content-wrapper > * + * { margin-top: 0; }

/* MEDIA - Wider layouts can align items in rows when appropriate */
@media (min-width: 900px) {
  /* Example layout: two-column feel using flex only */
  .content-grid { justify-content: space-between; }
}

/* PRINT BASICS */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { padding: 16px 0; margin: 0 0 16px; }
}
