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

:root {
  --bg: #faf9f7;
  --bg-alt: #f1efec;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --red: #c8102e;
  --red-dark: #9c0c23;
  --white: #ffffff;
  --line: #e6e3dd;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  --shadow-hover: 0 16px 40px rgba(20, 20, 20, 0.14);
  --radius: 14px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); margin: 0 0 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-heading.left { margin: 0 0 40px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.32);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(200, 16, 46, 0.4);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--ink); }

/* ---------- Animated background blobs ---------- */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.blob.red { background: var(--red); }
.blob.ink { background: var(--ink); opacity: 0.14; }
.blob-a { width: 380px; height: 380px; top: -120px; left: -80px; animation-duration: 22s; }
.blob-b { width: 300px; height: 300px; bottom: -100px; right: -60px; animation-duration: 26s; animation-delay: -6s; }
.blob-c { width: 220px; height: 220px; top: 40%; right: 20%; animation-duration: 20s; animation-delay: -10s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 25px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

/* diagonal stripe accent */
.stripe-accent {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0px, var(--ink) 2px,
    transparent 2px, transparent 26px
  );
  background-size: 200% 200%;
  animation: stripeDrift 30s linear infinite;
}
@keyframes stripeDrift {
  0% { background-position: 0 0; }
  100% { background-position: 400px 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* backdrop-filter lives on a pseudo-element (not on .site-header itself) so it
   doesn't turn the header into a containing block for the fixed mobile nav panel */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }

.main-nav { min-width: 0; }
.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone svg { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--bg));
}
.hero.page-hero { padding: 70px 0 60px; text-align: center; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.page-hero .hero-inner { grid-template-columns: 1fr; }
.hero-copy p.lead { font-size: 1.12rem; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.page-hero .hero-copy p.lead { margin: 0 auto 20px; }
.page-hero .hero-cta { justify-content: center; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.8rem; color: var(--red); }
.hero-stats div span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}

/* ---------- Sections ---------- */
section { position: relative; padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark h2 { color: var(--white); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.35s ease, background 0.35s ease;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--red); color: var(--white); }

.card a.card-link { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.card a.card-link svg { transition: transform 0.3s ease; }
.card a.card-link:hover svg { transform: translateX(5px); }

/* compact services grid (7 obory on homepage)
   Built with flexbox-wrap + margin spacing instead of CSS Grid/gap on
   purpose -- more conservative/widely-supported than auto-fit+minmax+gap,
   used here while tracking down a rendering report on one desktop Mac. */
.service-mini-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -9px;
}
.service-mini-card {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  margin: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(200,16,46,0.3); }
.service-mini-card .mini-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.service-mini-card:hover .mini-icon { background: var(--red); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.service-mini-card .mini-text { flex: 1; min-width: 0; margin-right: 16px; }
.service-mini-card .mini-text strong { display: block; font-size: 0.98rem; }
.service-mini-card .mini-arrow { flex-shrink: 0; color: var(--red); transition: transform 0.3s ease; }
.service-mini-card:hover .mini-arrow { transform: translateX(4px); }

/* feature list */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .dot {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-media { order: 2; }
.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.service-list { margin-top: 22px; display: grid; gap: 12px; }
.service-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px; height: 9px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ink), #2a2a2a);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Placeholder media (used until real photos are added) ---------- */
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ece9e4, #f6f4f1);
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}
.media-placeholder svg { color: var(--red); opacity: 0.7; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 2px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 26px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Team / About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}
.values-list { display: grid; gap: 20px; margin-top: 10px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  opacity: 0.5;
  flex-shrink: 0;
  width: 44px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(200,16,46,0.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row a, .contact-row span.value { font-weight: 700; }
.contact-row .label { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 2px; font-weight: 500; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--red); color: var(--white); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .blob, .stripe-accent { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .main-nav ul { gap: 22px; }
  .header-actions { gap: 12px; }
  .header-phone span { display: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; padding: 44px 0; }
  .service-block.reverse .service-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; width: 100vw; height: calc(100vh - var(--header-h)); background: var(--bg); padding: 30px 24px; transform: translateX(100%); transition: transform 0.35s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.1rem; width: 100%; border-bottom: 1px solid var(--line); }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2, .feature-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
