/* SMOOTH SCROLLING */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 140px; /* Offset dla sticky header + nawigacji */
    }
}

/* GLOBAL VARIABLES */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
    --primary-color: #2b4570;
    --secondary-color: #ffffff;
    --accent-color: #1a2e4a;
    --text-color: #2b4570;
    --light-gray: #f5f5f5;
    --font-primary: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --focus-ring-color: #2B4570;
    --focus-ring-offset: 2px;
    --focus-ring-width: 2px;
}

/* MISSING TAILWIND CLASSES */
.-right-4 {
    right: -1rem;
}

/* BASE STYLES */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

/* RESPONSIVE IMAGES */
img {
    max-width: 100%;
    height: auto;
}

/* RESPONSIVE ICONS */
.fas, .far, .fab {
    font-size: inherit;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* FontAwesome specific styles to ensure visibility */
.fas::before,
.far::before,
.fab::before {
    display: inline-block;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-weight: 900;
}

.fab::before {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Footer social media icons styling */
footer .flex.space-x-4 span {
    display: inline-block !important;
    font-size: 1.125rem !important;
    text-align: center !important;
    transition: all 0.3s ease;
}

footer .flex.space-x-4 span:hover {
    opacity: 1 !important;
    transform: translateY(-1px);
}

/* TOUCH-FRIENDLY BUTTONS ON MOBILE */
@media (max-width: 768px) {
    button, .button, [role="button"] {
        min-height: 48px;
        min-width: 48px;
    }
    
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* CUSTOM BACKGROUND COLORS */
.bg-[#fcf9f4] { background-color: #fcf9f4; }
.bg-[#fbf9f4] { background-color: #fbf9f4; }
.bg-[#ede7d7] { background-color: #ede7d7; }
.bg-[#bfd0d7] { background-color: #bfd0d7; }
.bg-[#2b4570] { background-color: #2b4570; }
.bg-[#d1a85f] { background-color: #d1a85f; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }

/* CUSTOM TEXT COLORS */
.text-[#2b4570] { color: #2b4570; }
.text-[#d1a85f] { color: #d1a85f; }
.text-white { color: #ffffff; }
.text-[#2b4570]\/80 { color: rgba(43, 69, 112, 0.8); }
.text-[#2b4570]\/60 { color: rgba(43, 69, 112, 0.6); }

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--focus-ring-color);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FOCUS STYLES */
*:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 4px rgba(43, 69, 112, 0.2);
}

/* HIGH CONTRAST MODE */
.high-contrast {
    --background: #ffffff;
    --foreground: #000000;
    --card: #ffffff;
    --card-foreground: #000000;
    --popover: #ffffff;
    --popover-foreground: #000000;
    --primary: #000000;
    --primary-foreground: #ffffff;
    --secondary: #ffffff;
    --secondary-foreground: #000000;
    --muted: #ffffff;
    --muted-foreground: #000000;
    --accent: #ffffff;
    --accent-foreground: #000000;
    --destructive: #000000;
    --destructive-foreground: #ffffff;
    --border: #000000;
    --input: #000000;
    --ring: #000000;
}
.high-contrast * {
    border-color: #000000 !important;
}
.high-contrast a,
.high-contrast button {
    border: 2px solid #000000 !important;
}
.high-contrast a:hover,
.high-contrast button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.high-contrast img {
    border: 2px solid #000000 !important;
}
.high-contrast *:focus {
    outline: 3px solid #000000 !important;
    outline-offset: 2px !important;
}

/* SECTION STYLES */
.section {
    padding: 6rem 0;
}

.section-blue {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.section-white {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* SECTION MARGINS */
.section h2 {
    margin-bottom: 1.5rem !important;
}

.section .flex.justify-center {
    margin-bottom: 1.5rem !important;
}

.section .flex.justify-center > div {
    width: 600px !important;
}

.section .grid,
.section .flex.flex-wrap {
    margin-bottom: 4rem !important;
}

/* ANIMATIONS */
.animate {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* TYPOGRAPHY */
p, li {
    line-height: 1.7;
    max-width: 70ch;
}

/* TOUCH TARGETS */
button,
.button,
[role="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* CUSTOM UTILITY CLASSES */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* RESPONSIVE CONTAINER */
@media (max-width: 640px) {
    .container { 
        padding-left: 0.75rem; 
        padding-right: 0.75rem; 
    }
}

@media (max-width: 768px) {
    .container { 
        padding-left: 1rem; 
        padding-right: 1rem; 
    }
}

@media (max-width: 1024px) {
    .container { 
        padding-left: 1.5rem; 
        padding-right: 1.5rem; 
    }
}

@media (max-width: 1280px) {
    .container { 
        padding-left: 2rem; 
        padding-right: 2rem; 
    }
} 

/* ACCESSIBILITY PANEL DROPDOWN */
#accessibility-panel {
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 16px 24px 16px 16px;
  min-width: 280px;
  max-width: 340px;
  margin: 0 auto;
  position: static;
  z-index: 1000;
}
#accessibility-menu {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  margin-top: 8px;
} 