/* ============================================================
   Aityy.pl — Design Web Tier — style.css
   ============================================================ */

/* 1. OKLCH 12-token palette + custom properties */
:root {
  --primary:        oklch(0.52 0.22 258);
  --primary-light:  oklch(0.67 0.13 258);
  --primary-dark:   oklch(0.32 0.18 258);
  --accent:         oklch(0.62 0.24 288);
  --surface:        oklch(0.97 0.01 258);
  --surface-alt:    oklch(0.93 0.02 258);
  --dark:           oklch(0.15 0.02 258);
  --light:          oklch(0.97 0.005 258);
  --muted:          oklch(0.45 0.04 258);
  --gradient-hero:  linear-gradient(135deg, oklch(0.32 0.18 258) 0%, oklch(0.45 0.22 280) 100%);

  --font-display:   'Plus Jakarta Sans', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --max-width:      1200px;
  --header-height:  72px;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow-sm:      0 1px 3px oklch(0.15 0.02 258 / 0.12);
  --shadow-md:      0 4px 16px oklch(0.15 0.02 258 / 0.14);
  --shadow-lg:      0 8px 32px oklch(0.15 0.02 258 / 0.18);
  --transition:     0.2s ease;
}

/* 2. Reset + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 3. Selection & scrollbar */
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* 4. Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* 5. Fluid type scale */
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem); font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem); font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw + 0.3rem, 1.5rem); font-family: var(--font-display); font-weight: 600; line-height: 1.35; }
h4 { font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.2rem); font-family: var(--font-display); font-weight: 600; line-height: 1.4; }
p { max-width: 68ch; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* 6. Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* 7. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: oklch(0.97 0.01 258 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-color: oklch(0.15 0.02 258 / 0.08);
  background: oklch(0.97 0.01 258 / 0.96);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--surface-alt); color: var(--primary); }
.nav-links a.is-active { color: var(--primary); font-weight: 600; }

.nav-cta {
  display: none;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px oklch(0.52 0.22 258 / 0.35) !important;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-alt);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--surface-alt); color: var(--primary); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; align-items: center; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* 8. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px oklch(0.52 0.22 258 / 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--surface-alt);
  color: var(--primary-dark);
  border-color: var(--surface-alt);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: oklch(0.50 0.24 288);
  border-color: oklch(0.50 0.24 288);
  color: #fff;
  box-shadow: 0 6px 20px oklch(0.62 0.24 288 / 0.4);
}

/* 9. Sections — common */
section { padding: 5rem 1.5rem; }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.section-header p {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

/* 10. Hero */
#hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero.webp') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, oklch(0.62 0.24 288 / 0.25) 0%, transparent 60%);
  z-index: 0;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(1 0 0 / 0.12);
  border: 1px solid oklch(1 0 0 / 0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-inner h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.15s both;
}
.hero-subtitle {
  color: oklch(0.9 0.03 258);
  font-size: clamp(1rem, 2vw + 0.3rem, 1.3rem);
  margin: 0 auto 2.5rem;
  max-width: 52ch;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.45s both;
}

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

/* 11. Features grid */
#features_grid {
  background: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.93 0.02 258);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 26px; height: 26px; color: #fff; }
.feature-card h3 { color: var(--dark); }
.feature-card p { color: var(--muted); font-size: 0.95rem; max-width: 100%; }

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 12. Contact */
#contact {
  background: var(--surface-alt);
}
.contact-layout {
  display: grid;
  gap: 3rem;
}
.contact-info h3 { margin-bottom: 1rem; color: var(--dark); }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary); }
.contact-link svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid oklch(0.85 0.03 258);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.52 0.22 258 / 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { background: oklch(0.92 0.08 155); color: oklch(0.3 0.1 155); display: block; }
.form-status.error   { background: oklch(0.93 0.06 25);  color: oklch(0.35 0.12 25);  display: block; }

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.5fr; align-items: start; }
}

/* 13. CTA section */
#cta {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}
#cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, oklch(0.62 0.24 288 / 0.3) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
#cta h2 { color: #fff; margin-bottom: 1rem; }
#cta p  { color: oklch(0.9 0.03 258); margin: 0 auto 2rem; font-size: 1.1rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 14. Footer */
.site-footer {
  background: var(--dark);
  color: oklch(0.78 0.04 258);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 0.75rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; color: oklch(0.65 0.04 258); max-width: 38ch; }
.footer-links h4 { color: #fff; margin-bottom: 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: oklch(0.65 0.04 258); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid oklch(0.3 0.02 258);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: oklch(0.55 0.03 258);
}
.footer-bottom a { color: oklch(0.65 0.04 258); }

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* 15. Mobile CTA bar */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 58px;
  box-shadow: 0 -2px 16px oklch(0.15 0.02 258 / 0.18);
}
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}
.mobile-cta a:hover { opacity: 0.9; }
.mobile-cta__call    { background: var(--primary); color: #fff; }
.mobile-cta__contact { background: #fff; color: var(--primary); border: 2px solid var(--primary); }

@media (min-width: 768px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* add bottom padding for mobile CTA */
@media (max-width: 767px) {
  body { padding-bottom: 58px; }
}

/* 16. Print styles */
@media print {
  .site-header, .site-footer, .mobile-cta, .contact-form-wrap, #cta { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.75rem; color: #555; }
  section { padding: 1.5rem 0; }
  h1, h2, h3, h4 { page-break-after: avoid; }
}
