/* ============================================
   PAULSERVIS s.r.o. - Modern Website 2026
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --primary: #1a1a5e;
  --primary-light: #2d2d8a;
  --accent: #f7941d;
  --accent-hover: #e5850f;
  --dark: #0f0f2e;
  --gray-900: #1a1a2e;
  --gray-700: #4a4a6a;
  --gray-500: #7a7a9a;
  --gray-300: #c5c5d5;
  --gray-100: #f0f0f8;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 26, 94, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 94, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 26, 94, 0.15);
  --shadow-xl: 0 16px 60px rgba(26, 26, 94, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--gray-700);
  font-size: 1.05rem;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* --- Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 26, 94, 0.05);
  padding: 0.75rem 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 100px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 72px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-900) !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background: rgba(247, 148, 29, 0.08);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --- Buttons --- */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 148, 29, 0.35);
}

.btn-outline-light-custom {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-light-custom:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247, 148, 29, 0.15);
  border: 1px solid rgba(247, 148, 29, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h3 {
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 800;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* --- Hero Image --- */
.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(247, 148, 29, 0.1), rgba(247, 148, 29, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--accent);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* --- Why Us / Features --- */
.bg-light-custom {
  background: var(--gray-100);
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--gray-500);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Contact Info Cards --- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(247, 148, 29, 0.1), rgba(247, 148, 29, 0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--accent);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent-hover);
}

/* --- Contact Form --- */
.form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 10rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* --- About Page --- */
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--gray-300);
}

.timeline-item:last-child {
  border-left: 2px solid var(--accent);
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

/* --- Service Detail (inner page) --- */
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.service-detail-card .service-icon {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 3rem;
  }

  .navbar-brand img {
    height: 72px;
  }

  .navbar.scrolled .navbar-brand img {
    height: 56px;
  }

  .hero-stats {
    gap: 2rem;
  }

  .navbar-collapse {
    background: var(--white);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-stat {
    width: calc(50% - 0.75rem);
  }

  .hero-stat h3 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-accent,
  .hero-buttons .btn-outline-light-custom {
    text-align: center;
    justify-content: center;
  }

  .page-header {
    padding: 9rem 0 2.5rem;
  }

  .footer {
    text-align: center;
  }
}

/* --- Utility --- */
.text-accent {
  color: var(--accent) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.fw-800 {
  font-weight: 800 !important;
}
