/* ==========================================================
   Vibran Arc — style.css
   Warm & Friendly aesthetic: warm colors, rounded corners, friendly fonts, soft shadows
   Mobile-first, Flexbox-only layouts (no CSS Grid, no Columns)
   ========================================================== */

/* ------------------------------
   CSS Reset / Normalize
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; line-height: 1.6; background: #FFF8F3; color: #2B2A28; }
img { max-width: 100%; height: auto; display: block; }
a { color: #9A4D2E; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0 0 0 1rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(255, 153, 102, 0.6); outline-offset: 2px; border-radius: 10px; }

/* ------------------------------
   CSS Variables (with fallbacks)
------------------------------ */
:root {
  --color-primary: #121826; /* brand */
  --color-secondary: #5B8CFF; /* brand */
  --color-accent: #F6F7FB; /* brand light */
  --color-warm-1: #FFE8D6; /* peach */
  --color-warm-2: #FFD9C2; /* apricot */
  --color-warm-3: #FFF4EC; /* light peach */
  --color-ink: #2B2A28; /* warm dark text */
  --color-ink-2: #4A463F; /* secondary text */
  --color-success: #3BAA66;
  --shadow-soft: 0 4px 18px rgba(17, 17, 17, 0.08);
  --shadow-hover: 0 10px 24px rgba(17, 17, 17, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

/* ------------------------------
   Layout Helpers & Container
------------------------------ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; }
section { padding: 48px 0; }

/* Mandatory spacing class (also keep generic section) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.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; background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); color: var(--color-ink); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------------------------
   Typography
------------------------------ */
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--color-primary); margin: 0; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 20px; }
.lead, .hero p { font-size: 16px; color: var(--color-ink-2); }
p { margin: 0; color: var(--color-ink-2); }
strong, b { color: var(--color-ink); }

/* ------------------------------
   Header & Navigation
------------------------------ */
header { background: #FFF6EE; border-bottom: 1px solid #FFE1CC; box-shadow: 0 1px 8px rgba(0,0,0,0.04); position: relative; z-index: 20; }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
header img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; flex-wrap: wrap; gap: 10px; }
.main-nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-primary); font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: #FFEFE2; text-decoration: none; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #FFB88A; color: #2B2A28; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform .2s ease, background .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #FFA974; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: #FFF3EA; transform: translateX(100%); transition: transform .35s ease; z-index: 9999; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-expanded="true"] { transform: translateX(0%); }
.mobile-menu-close { margin: 14px 16px 0 auto; width: 44px; height: 44px; border-radius: 50%; border: none; background: #FFD9C2; color: #2B2A28; cursor: pointer; box-shadow: var(--shadow-soft); }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-top: 8px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: var(--radius-md); background: #FFFFFF; color: var(--color-primary); font-weight: 600; box-shadow: var(--shadow-soft); }
.mobile-nav a:hover { background: #FFF0E6; text-decoration: none; }

/* Show desktop nav */
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------
   Buttons
------------------------------ */
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 24px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.primary-btn { background: #FF8F5E; color: #2B2A28; box-shadow: var(--shadow-soft); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); text-decoration: none; background: #FF7F46; }
.secondary-btn { background: #FFFFFF; color: #9A4D2E; border: 2px solid #FFC7A6; }
.secondary-btn:hover { background: #FFF0E6; text-decoration: none; }

.cta-buttons, .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-inline { display: flex; }

/* ------------------------------
   Hero Sections
------------------------------ */
.hero { background: #FFF4EC; }
.hero .container { display: flex; }
.hero .content-wrapper { padding: 8px 0; }
.hero h1 { font-size: 28px; }
.hero .cta-buttons { margin-top: 8px; }
.trust-badges { display: flex; align-items: center; gap: 10px; color: var(--color-ink-2); font-size: 14px; background: #FFFFFF; border: 1px solid #FFE1CC; border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-soft); }

@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero .content-wrapper { gap: 20px; }
}

/* ------------------------------
   Value Props / Services / Cards
------------------------------ */
.value-prop-grid, .service-modules-grid, .service-list, .price-cards, .case-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.value-prop-grid li, .service-modules-grid li, .price-cards li, .case-study { flex: 1 1 100%; background: #FFFFFF; border: 1px solid #FFE1CC; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px; }
.value-prop-grid li img, .service-modules-grid li img { width: 36px; height: 36px; }

.service-list { gap: 12px; }
.service-list li { flex: 1 1 100%; background: #FFFFFF; border-left: 6px solid #FFB88A; padding: 14px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }

.case-list { gap: 24px; }
.case-study h3 { margin-bottom: 6px; }
.industry-tag { align-self: flex-start; display: inline-flex; padding: 6px 10px; background: #FFF0E6; color: #8C3C1A; border-radius: 999px; border: 1px solid #FFD9C2; font-size: 12px; font-weight: 700; }

.price-cards li { border-top: 6px solid #FF9C6E; }
.price-cards li:hover, .value-prop-grid li:hover, .service-modules-grid li:hover, .case-study:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; }

/* Responsive columns via Flexbox */
@media (min-width: 640px) {
  .value-prop-grid li, .service-modules-grid li, .service-list li, .price-cards li, .case-study { flex: 1 1 calc(50% - 12px); }
}
@media (min-width: 992px) {
  .value-prop-grid li, .service-modules-grid li { flex: 1 1 calc(25% - 18px); }
  .price-cards li { flex: 1 1 calc(33.333% - 16px); }
  .case-study { flex: 1 1 calc(33.333% - 16px); }
}

/* ------------------------------
   Lists, Info blocks, FAQs
------------------------------ */
.metrics-kpi { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; background: #FFFFFF; border: 1px solid #FFD9C2; border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-soft); font-weight: 700; color: var(--color-primary); }
.process-teaser { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #FFF9F5; border: 1px dashed #FFC7A6; border-radius: var(--radius-md); }
.timeline-info, .response-times-info, .hours-info { background: #FFF9F5; border: 1px solid #FFE1CC; padding: 12px 14px; border-radius: var(--radius-md); color: var(--color-ink); }
.privacy-note, .notes-small-print, .process-overview { display: flex; flex-direction: column; gap: 8px; background: #FDF2E9; border: 1px solid #FFD9C2; padding: 14px; border-radius: var(--radius-md); color: var(--color-ink-2); }

.faq-list, .user-rights-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-list li, .user-rights-list li { background: #FFFFFF; border: 1px solid #FFE1CC; border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-soft); }

.contact-details-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; background: #FFFFFF; border: 1px solid #FFE1CC; padding: 10px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); color: var(--color-ink); }
.contact-details-inline img { width: 18px; height: 18px; }

.contact-details-full { display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; border: 1px solid #FFE1CC; padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.contact-details-full ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-details-full li { display: flex; align-items: center; gap: 10px; }
.contact-details-full img { width: 18px; height: 18px; }

/* ------------------------------
   Testimonials (light backgrounds, dark text)
------------------------------ */
.testimonials { background: #FFF4EC; color: var(--color-ink); }
.testimonials .content-wrapper { gap: 20px; }
.testimonial-card p { margin: 0; color: var(--color-ink); }
.testimonial-card span { color: #6B665E; font-size: 14px; font-weight: 700; }
.testimonial-card::before { content: "\201C"; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #FFE8D6; color: #8C3C1A; font-size: 22px; font-weight: 900; }

/* ------------------------------
   Tables (Package comparison)
------------------------------ */
.package-comparison { width: 100%; border-collapse: collapse; background: #FFFFFF; box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); overflow: hidden; }
.package-comparison thead th { background: #FFE8D6; color: #5A3A26; text-align: left; padding: 12px; font-weight: 800; border-bottom: 2px solid #FFD9C2; }
.package-comparison tbody td { padding: 12px; border-bottom: 1px solid #FFF0E6; color: var(--color-ink-2); }
.package-comparison tbody tr:nth-child(even) td { background: #FFF9F5; }

/* ------------------------------
   Footer
------------------------------ */
footer { background: #FFF6EE; border-top: 1px solid #FFE1CC; color: var(--color-ink-2); }
footer .container { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; }
.footer-navigation { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-navigation a { color: #7A4F3D; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.footer-navigation a:hover { background: #FFEFE2; text-decoration: none; }
.brand-contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.brand-contact img { height: 34px; width: auto; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact div { display: flex; align-items: center; gap: 8px; }
.footer-contact img { width: 18px; height: 18px; }
.copyright { text-align: center; font-size: 14px; color: #6B665E; }

@media (min-width: 900px) {
  .brand-contact { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ------------------------------
   Responsive rules for text-image sections
------------------------------ */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) {
  .text-image-section { flex-direction: row; }
}

/* ------------------------------
   Utilities
------------------------------ */
.hidden { display: none !important; }
.muted { color: var(--color-ink-2); }

/* ------------------------------
   Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFF0E6; border-top: 2px solid #FFD9C2; box-shadow: 0 -8px 18px rgba(0,0,0,0.08); z-index: 9998; transform: translateY(100%); transition: transform .35s ease; }
.cookie-banner.show, .cookie-banner.visible { transform: translateY(0%); }
.cookie-banner .cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; }
.cookie-banner p { margin: 0; color: var(--color-ink); }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: background .2s ease, transform .15s ease; }
.cookie-accept { background: #FF8F5E; color: #2B2A28; box-shadow: var(--shadow-soft); }
.cookie-accept:hover { background: #FF7F46; transform: translateY(-1px); }
.cookie-reject { background: #FFFFFF; color: #8C3C1A; border-color: #FFC7A6; }
.cookie-reject:hover { background: #FFF4EC; }
.cookie-settings { background: #FFD9C2; color: #5A3A26; }
.cookie-settings:hover { background: #FFC7A6; }

/* Cookie Preferences Modal */
.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); width: min(92%, 720px); background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,0.18); z-index: 10001; opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; display: flex; flex-direction: column; }
.cookie-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #F3E1D7; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.cookie-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF9F5; border: 1px solid #FFE1CC; padding: 10px 12px; border-radius: var(--radius-md); }
.cookie-modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #F3E1D7; }

/* Toggle switch (analytics/marketing) */
.toggle { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #E6E0DB; transition: background .2s ease; cursor: pointer; display: inline-flex; align-items: center; }
.toggle::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-soft); margin-left: 3px; transition: transform .2s ease; }
.toggle.on { background: #FF9C6E; }
.toggle.on::after { transform: translateX(18px); }

/* ------------------------------
   Accessibility helpers for links inside info blocks
------------------------------ */
.process-teaser a, .privacy-note a, .notes-small-print a, .process-overview a { color: #9A4D2E; text-decoration: underline; font-weight: 700; }

/* ------------------------------
   Additional layout polish
------------------------------ */
main { display: flex; flex-direction: column; gap: 10px; }
section + section { margin-top: 8px; }

/* Ensure spacing between content cards/sections */
.content-wrapper > * { margin-top: 0; }
.content-wrapper > * + * { margin-top: 8px; }

/* Prevent overlaps by generous spacing on larger viewports */
@media (min-width: 992px) {
  section { padding: 64px 0; }
  .content-wrapper { gap: 24px; }
}

/* ------------------------------
   Forms (basic aesthetics for potential forms)
------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #EED2C0; border-radius: var(--radius-md); background: #FFFFFF; box-shadow: inset 0 1px 0 rgba(0,0,0,0.02); color: var(--color-ink); }
input:focus, textarea:focus, select:focus { border-color: #FFB88A; outline: none; box-shadow: 0 0 0 3px rgba(255, 184, 138, 0.25); }
label { display: flex; margin-bottom: 6px; font-weight: 700; color: var(--color-ink); }

/* ------------------------------
   Alignment helpers requested
------------------------------ */
/* Flex alignment tuning for generic reusable blocks */
.align-center { display: flex; align-items: center; justify-content: center; }
.align-between { display: flex; align-items: center; justify-content: space-between; }

/* ------------------------------
   Specific page micro-styles
------------------------------ */
/* Index specific badges */
.trust-badges b { color: #7A4F3D; }

/* O nas, Proces, etc. list visuals */
.content-wrapper ul li b { color: #5A3A26; }

/* ------------------------------
   Enforce only Flexbox for layout containers
------------------------------ */
/* Convert common containers to flex where appropriate */
header .container, .hero .container, footer .container { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  header .container { flex-direction: row; }
  .hero .container { flex-direction: row; }
  footer .container { flex-direction: column; }
}

/* Ensure top alignment when needed */
.align-start { align-items: flex-start !important; }

/* ------------------------------
   Safe color contrast for testimonial/review texts
------------------------------ */
.testimonials, .testimonials p, .testimonials span { color: #1E1B16; }

/* ------------------------------
   Print adjustments (basic)
------------------------------ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
  a { text-decoration: underline; color: #000; }
  header, footer { box-shadow: none; }
}
