/*
Theme Name: ADOVEEB
Theme URI: https://adoveeb.com
Author: ADOVEEB
Author URI: https://adoveeb.com
Description: Professionaalne kodulehe tegemine WordPressil — ADOVEEB teema. Mobiilisõbralik, kiire ja SEO-optimeeritud.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adoveeb
Tags: one-page, custom-logo, responsive-layout
*/

/* ===== CSS Variables ===== */
:root {
  --background: 0 0% 98%;
  --foreground: 220 15% 15%;
  --card: 0 0% 100%;
  --card-foreground: 220 15% 15%;
  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 10% 94%;
  --secondary-foreground: 220 15% 25%;
  --muted: 220 10% 94%;
  --muted-foreground: 220 8% 46%;
  --accent: 24 95% 53%;
  --accent-foreground: 0 0% 100%;
  --border: 220 10% 90%;
  --ring: 24 95% 53%;
  --radius: 0.75rem;
  --hero-overlay: 220 15% 12%;
  --footer-bg: 220 15% 12%;
  --footer-foreground: 220 10% 65%;
  --section-alt: 220 10% 96%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== Utilities ===== */
.section-padding { padding: 5rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 7rem 1rem; } }
.section-label {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.text-primary { color: hsl(var(--primary)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-white { color: #fff; }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-section-alt { background-color: hsl(var(--section-alt)); }
.bg-footer { background-color: hsl(var(--footer-bg)); }
.text-footer { color: hsl(var(--footer-foreground)); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s;
}
.site-header.scrolled {
  background: hsl(var(--secondary));
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.site-logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.site-logo span { color: hsl(var(--primary)); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: hsl(var(--muted-foreground)); font-weight: 500; font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: hsl(var(--foreground)); }
/* Active page highlight in desktop nav */
.nav-links a[aria-current="page"] {
  color: hsl(var(--foreground));
  font-weight: 600;
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 1px;
}
.nav-links a.nav-cta {
  background: hsl(var(--primary)); color: #ffffff;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.875rem; transition: filter 0.2s;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); color: #ffffff; }
/* Mobile nav: hidden by default at ALL sizes — JS toggles .is-open */
.mobile-nav { display: none; }
.mobile-nav a.nav-cta { color: #1a1a1a; font-weight: 700; }
.mobile-nav a.nav-cta:hover { color: hsl(var(--primary)); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: hsl(var(--foreground)); }

/* ≤ 1023px: hide desktop nav, show hamburger */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav.is-open {
    display: block;
    background: hsl(var(--background));
    backdrop-filter: blur(16px);
    border-top: 1px solid hsl(var(--border));
    padding: 1.5rem 0;
  }
  .mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  .mobile-nav a { color: hsl(var(--muted-foreground)); font-weight: 500; font-size: 0.875rem; }
  .mobile-nav a:hover { color: hsl(var(--foreground)); }
  .mobile-nav a[aria-current="page"] { color: hsl(var(--primary)); font-weight: 600; }
}

/* ≥ 1024px: always show desktop nav, always hide mobile elements */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-nav { display: none !important; }
  .mobile-toggle { display: none; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay { position: absolute; inset: 0; background: hsla(var(--background), 0.4); }
.hero-orb {
  position: absolute; top: 25%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: hsla(var(--primary), 0.05);
  border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero-content { position: relative; z-index: 10; max-width: 48rem; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsla(var(--primary), 0.1); border: 1px solid hsla(var(--primary), 0.2);
  border-radius: 9999px; padding: 0.375rem 1rem; margin-bottom: 2rem;
}
.hero-badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: hsl(var(--primary)); }
.hero-badge span { color: hsl(var(--primary)); font-weight: 500; font-size: 0.875rem; }
.hero h1 {
  font-size: 2.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero h1 span { color:hsl(var(--primary)); }
.hero p.subtitle {
  color: hsl(var(--muted-foreground)); font-size: 1.125rem; max-width: 42rem;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
@media (min-width: 768px) { .hero p.subtitle { font-size: 1.25rem; } }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; font-size: 1.125rem;
  transition: all 0.2s; box-shadow: 0 10px 25px hsla(var(--primary), 0.25);
  display: inline-block; text-align: center; border: none; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.1); transform: scale(1.02); color: hsl(var(--primary-foreground)); }
.btn-outline {
  border: 1px solid hsl(var(--border)); color: hsl(var(--foreground));
  padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; font-size: 1.125rem;
  transition: all 0.2s; display: inline-block; text-align: center; background: transparent;
}
.btn-outline:hover { border-color: hsla(var(--primary), 0.5); color: hsl(var(--primary)); }
.trust-indicators {
  margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .trust-indicators { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: hsl(var(--muted-foreground)); }
.trust-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.trust-item span { font-size: 0.75rem; font-weight: 500; text-align: center; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: hsl(var(--card)); border-radius: 0.75rem; padding: 2rem;
  border: 1px solid hsl(var(--border)); transition: all 0.3s;
}
.service-card:hover {
  border-color: hsla(var(--primary), 0.3);
  box-shadow: 0 10px 30px hsla(var(--primary), 0.05);
  transform: translateY(-4px);
}
.service-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: hsla(var(--primary), 0.1); border: 1px solid hsla(var(--primary), 0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.service-card h3 {
  font-size: 1.125rem; font-weight: 600; color: hsl(var(--card-foreground)); margin-bottom: 0.75rem;
}
.service-card p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.service-card .service-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 500; transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 0.5rem; }

/* ===== Process ===== */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; position: relative; }
.process-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
  transition: border-color 0.2s;
}
.process-step:hover .process-icon { border-color: hsla(var(--primary), 0.3); }
.process-icon svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); }
.process-step .step-num {
  color: hsl(var(--primary)); font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block;
}
.process-step h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.6; max-width: 20rem; margin: 0 auto; }

/* ===== Portfolio ===== */
.portfolio-filters { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.portfolio-filters button {
  padding: 0.5rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 500; border: none; cursor: pointer; transition: all 0.2s;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
}
.portfolio-filters button:hover { color: hsl(var(--foreground)); }
.portfolio-filters button.active {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
.portfolio-card {
  border-radius: 0.75rem; overflow: hidden; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); transition: all 0.3s; cursor: pointer;
}
.portfolio-card:hover { box-shadow: 0 10px 30px hsla(var(--primary), 0.05); transform: translateY(-4px); }
.portfolio-card .image-wrap { overflow: hidden; aspect-ratio: 16/10; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card .card-body { padding: 1.5rem; }
.portfolio-card .category {
  color: hsl(var(--primary)); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.portfolio-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0.25rem 0 0.5rem; }
.portfolio-card p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ===== Portfolio Lightbox ===== */
.portfolio-lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: hsla(var(--foreground), 0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: none; cursor: pointer; font-size: 1.25rem; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox-close:hover { background: hsl(var(--muted)); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.lightbox-nav:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.lightbox-nav svg { width: 1.25rem; height: 1.25rem; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-content {
  max-width: 56rem; width: 100%; background: hsl(var(--card));
  border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: lightboxFadeIn 0.3s ease-out;
}
.lightbox-content img { width: 100%; max-height: 70vh; object-fit: contain; }
.lightbox-info { padding: 1.5rem; }
.lightbox-info .category {
  color: hsl(var(--primary)); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.lightbox-info h3 { font-size: 1.25rem; font-weight: 600; margin: 0.25rem 0 0.5rem; }
.lightbox-info p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.pricing-card:not(.highlighted) {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pricing-card.highlighted {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  box-shadow: 0 20px 40px hsla(var(--primary), 0.2);
  transform: scale(1.03); ring: 1px solid hsla(var(--primary), 0.5);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.highlighted:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card .popular-badge {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.75rem; opacity: 0.8;
}
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-card .price-desc { font-size: 0.875rem; margin-bottom: 1.5rem; }
.pricing-card:not(.highlighted) .price-desc { color: hsl(var(--muted-foreground)); }
.pricing-card.highlighted .price-desc { opacity: 0.8; }
.pricing-card .price-note {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.25rem; display: block;
}
.pricing-card:not(.highlighted) .price-note { color: hsl(var(--muted-foreground)); }
.pricing-card.highlighted .price-note { opacity: 0.8; }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; font-family: 'Space Grotesk', system-ui, sans-serif; }
.pricing-card .features { flex: 1; margin-bottom: 2rem; }
.pricing-card .features li {
  display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.pricing-card .features svg { flex-shrink: 0; margin-top: 2px; }
.pricing-card:not(.highlighted) .features svg { color: hsl(var(--primary)); }
.pricing-card.highlighted .features svg { color: hsl(var(--primary-foreground)); }
.pricing-card .pricing-cta {
  display: block; width: 100%; text-align: center; padding: 0.75rem;
  border-radius: 0.75rem; font-weight: 600; font-size: 0.875rem; transition: all 0.2s;
  border: none; cursor: pointer;
}
.pricing-card:not(.highlighted) .pricing-cta {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.pricing-card:not(.highlighted) .pricing-cta:hover { filter: brightness(1.1); }
.pricing-card.highlighted .pricing-cta {
  background: hsl(var(--primary-foreground)); color: hsl(var(--primary));
}
.pricing-card.highlighted .pricing-cta:hover { filter: brightness(0.95); }

/* ===== Testimonials ===== */
.testimonials { text-align: center; }
.testimonials blockquote {
  font-size: 1.25rem; color: hsla(var(--foreground), 0.8);
  font-weight: 300; line-height: 1.7; margin: 0 0 2rem; min-height: 120px;
}
@media (min-width: 768px) { .testimonials blockquote { font-size: 1.5rem; } }
.testimonials .author { font-weight: 600; font-size: 1.125rem; color: hsl(var(--foreground)); }
.testimonials .role { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.testimonial-stars { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 1.5rem; }
.testimonial-stars svg { color: hsl(var(--primary)); fill: hsl(var(--primary)); width: 1.125rem; height: 1.125rem; }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.testimonial-nav button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid hsl(var(--border));
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.testimonial-nav button:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dots button {
  height: 0.625rem; border-radius: 9999px; border: none; cursor: pointer; transition: all 0.2s;
  background: hsl(var(--border)); width: 0.625rem;
}
.testimonial-dots button.active { background: hsl(var(--primary)); width: 2rem; }

/* ===== Utility: Image Shadow Frame ===== */
.lovable-shadow-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lovable-shadow-frame:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.lovable-shadow-frame img {
  width: 100%; height: auto; display: block;
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-image { border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.about-image img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.about-stats .stat-num { font-size: 1.875rem; font-weight: 700; color: hsl(var(--primary)); font-family: 'Space Grotesk', system-ui, sans-serif; }
.about-stats .stat-label { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: hsl(var(--card)); border-radius: 0.75rem; border: 1px solid hsl(var(--border));
  padding: 1.5rem; cursor: pointer; transition: all 0.3s;
}
.blog-card:hover { box-shadow: 0 10px 30px hsla(var(--primary), 0.05); transform: translateY(-4px); }
.blog-card .blog-cat { color: hsl(var(--primary)); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0.5rem 0 0.75rem; transition: color 0.2s; }
.blog-card:hover h3 { color: hsl(var(--primary)); }
.blog-card p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-card .blog-meta { display: flex; align-items: center; justify-content: space-between; }
.blog-card .blog-date { display: flex; align-items: center; gap: 0.375rem; color: hsl(var(--muted-foreground)); font-size: 0.75rem; }
.blog-card .blog-link { display: flex; align-items: center; gap: 0.25rem; color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 500; }

/* ===== Blog Reader ===== */
.blog-reader {
  position: fixed; inset: 0; z-index: 50;
  background: hsl(var(--background)); overflow-y: auto;
  animation: lightboxFadeIn 0.3s ease-out;
}
.blog-reader-header {
  position: sticky; top: 0; z-index: 10;
  background: hsla(var(--background), 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border)); padding: 1rem 2rem;
}
.blog-reader-back {
  display: flex; align-items: center; gap: 0.5rem;
  color: hsl(var(--muted-foreground)); font-weight: 500; font-size: 0.875rem;
  background: none; border: none; cursor: pointer; transition: color 0.2s;
}
.blog-reader-back:hover { color: hsl(var(--foreground)); }
.blog-reader-close-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 1.125rem; transition: background 0.2s;
}
.blog-reader-close-btn:hover { background: hsl(var(--border)); }
.blog-reader-cat {
  color: hsl(var(--primary)); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-reader-title {
  font-size: 1.875rem; font-weight: 700; line-height: 1.2;
  margin: 0.75rem 0 1rem;
}
@media (min-width: 768px) { .blog-reader-title { font-size: 2.25rem; } }
.blog-reader-date {
  display: flex; align-items: center; gap: 0.375rem;
  color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin-bottom: 2.5rem;
}
.blog-reader-content h2 {
  font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem;
}
.blog-reader-content p {
  color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.8; margin-bottom: 0.75rem;
}
.blog-reader-content ul { margin: 0.75rem 0 0.75rem 1rem; }
.blog-reader-content li {
  color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.8;
  list-style: disc; margin-bottom: 0.5rem;
}
.blog-reader-content li strong { color: hsl(var(--card-foreground)); }
.blog-reader-cta {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border));
  text-align: center;
}
.blog-reader-cta p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 42rem; margin: 0 auto; }
.faq-item {
  border: 1px solid hsl(var(--border)); border-radius: 0.75rem;
  overflow: hidden; background: hsl(var(--card)); margin-bottom: 0.75rem;
}
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; text-align: left; background: none; border: none; cursor: pointer;
  transition: background 0.2s;
}
.faq-item button:hover { background: hsla(var(--muted), 0.5); }
.faq-item button span {
  font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600;
  color: hsl(var(--card-foreground)); padding-right: 1rem;
}
.faq-item .chevron { flex-shrink: 0; color: hsl(var(--muted-foreground)); transition: transform 0.2s; width: 1.25rem; height: 1.25rem; }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-item .faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 12rem; padding-bottom: 1.25rem; }
.faq-item .faq-answer p { padding: 0 1.25rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.6; }

/* ===== Contact ===== */
#kontakt .contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 56rem; margin: 0 auto;
}
@media (min-width: 1024px) { #kontakt .contact-grid { grid-template-columns: 2fr 3fr; } }
#kontakt .contact-info {
  background: hsl(var(--card)); border-radius: 0.75rem; border: 1px solid hsl(var(--border)); padding: 2rem;
}
#kontakt .contact-info h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; }
#kontakt .contact-info .contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
#kontakt .contact-info .contact-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: hsla(var(--primary), 0.1); display: flex; align-items: center; justify-content: center;
}
#kontakt .contact-info .contact-icon svg { width: 1.125rem; height: 1.125rem; color: hsl(var(--primary)); }
#kontakt .contact-info .contact-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
#kontakt .contact-info .contact-value { font-size: 0.875rem; font-weight: 500; }
#kontakt .contact-form .form-note {
  color: hsl(var(--muted-foreground)); font-size: 0.75rem; text-align: center; margin-top: 0.5rem;
}

/* WPForms overrides scoped to #kontakt */
#kontakt .wpforms-container { margin: 0; padding: 0; }
#kontakt .wpforms-field-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem;
}
#kontakt .wpforms-field-container .wpforms-field:nth-child(1),
#kontakt .wpforms-field-container .wpforms-field:nth-child(2) { grid-column: span 1; }
#kontakt .wpforms-field-container .wpforms-field:nth-child(n+3) { grid-column: span 2; }
#kontakt .wpforms-field label,
#kontakt .wpforms-field .wpforms-field-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.5rem; color: hsl(var(--foreground));
}
#kontakt .wpforms-field input[type="text"],
#kontakt .wpforms-field input[type="email"],
#kontakt .wpforms-field input[type="tel"],
#kontakt .wpforms-field textarea {
  width: 100%; box-sizing: border-box; padding: 0.75rem 1rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; color: hsl(var(--card-foreground));
  font-family: inherit; font-size: 0.875rem; transition: all 0.2s; margin-bottom: 1.25rem;
}
#kontakt .wpforms-field input:focus,
#kontakt .wpforms-field textarea:focus {
  outline: none; border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.5);
}
#kontakt .wpforms-field textarea { resize: none; }
#kontakt .wpforms-submit-container { width: 100%; }
#kontakt .wpforms-submit-container button,
#kontakt .wpforms-submit-container .wpforms-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; background: #000000; color: #ffffff; border: none;
  border-radius: 0.75rem; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s, transform 0.15s; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
#kontakt .wpforms-submit-container button:hover,
#kontakt .wpforms-submit-container .wpforms-submit:hover {
  background: #1a1a1a; transform: translateY(-1px);
}
#kontakt .wpforms-submit-container button::after,
#kontakt .wpforms-submit-container .wpforms-submit::after {
  content: ' \2192'; font-size: 1.125rem;
}
#kontakt .wpforms-recaptcha-container,
#kontakt .wpforms-field-hp { display: none; }
@media (max-width: 639px) {
  #kontakt .wpforms-field-container { grid-template-columns: 1fr; }
  #kontakt .wpforms-field-container .wpforms-field:nth-child(1),
  #kontakt .wpforms-field-container .wpforms-field:nth-child(2),
  #kontakt .wpforms-field-container .wpforms-field:nth-child(n+3) { grid-column: span 1; }
}

/* ===== Footer ===== */
.site-footer { background: hsl(var(--footer-bg)); color: hsl(var(--footer-foreground)); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.025em;
  display: inline-block; margin-bottom: 1rem;
}
.footer-logo span { color: hsl(var(--primary)); }
.site-footer h4 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: hsla(var(--footer-foreground), 0.7); font-size: 0.875rem; transition: color 0.2s; }
.site-footer a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .copyright { color: hsla(var(--footer-foreground), 0.5); font-size: 0.875rem; }
.footer-bottom .tags { color: hsla(var(--footer-foreground), 0.4); font-size: 0.75rem; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: none; cursor: pointer;
  opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: hsla(var(--primary), 0.9); transform: translateY(-2px); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { color: hsl(var(--muted-foreground)); max-width: 32rem; margin: 0 auto; }

/* ==========================================================================
   PORTFOLIO TEASER (front-page.php) & PORTFOLIO PAGE (template-portfolio.php)
   ========================================================================== */

/* "View all" CTA buttons below teaser grids */
.portfolio-teaser-cta,
.blog-teaser-cta { text-align: center; margin-top: 3rem; }
.portfolio-teaser-cta .btn-outline,
.blog-teaser-cta .btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; }
.portfolio-teaser-cta .btn-outline svg,
.blog-teaser-cta .btn-outline svg { transition: transform 0.2s; }
.portfolio-teaser-cta .btn-outline:hover svg,
.blog-teaser-cta .btn-outline:hover svg { transform: translateX(4px); }

/* ===== Blog page full grid ===== */
.blog-page-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .blog-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-page-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-page-card {
  border-radius: 0.75rem; overflow: hidden;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  transition: all 0.3s; display: flex; flex-direction: column;
}
.blog-page-card:hover { box-shadow: 0 10px 30px hsla(var(--foreground), 0.08); transform: translateY(-4px); }
.blog-page-card__img { display: block; overflow: hidden; aspect-ratio: 16/9; flex-shrink: 0; }
.blog-page-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-page-card:hover .blog-page-card__img img { transform: scale(1.05); }
.blog-page-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-page-card__body h2 { font-size: 1.125rem; font-weight: 600; margin: 0.35rem 0 0.75rem; line-height: 1.4; }
.blog-page-card__body h2 a { color: hsl(var(--foreground)); text-decoration: none; transition: color 0.2s; }
.blog-page-card__body h2 a:hover { color: hsl(var(--primary)); }
.blog-page-card__body > p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.blog-page-card__body .blog-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.blog-page-card__body .blog-link { display: flex; align-items: center; gap: 0.25rem; color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 500; text-decoration: none; }

/* Portfolio page hero */
.portfolio-page-hero { padding: 8rem 1rem 4rem; background: hsl(var(--section-alt)); border-bottom: 1px solid hsl(var(--border)); }

/* Portfolio page filter buttons — dark active state (not orange) */
.portfolio-page-hero ~ section .portfolio-filters button {
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}
.portfolio-page-hero ~ section .portfolio-filters button:hover {
  border-color: hsl(var(--foreground));
  color: hsl(var(--foreground));
}
.portfolio-page-hero ~ section .portfolio-filters button.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

/* 3-column grid on large screens for the full portfolio page */
@media (min-width: 1024px) { .portfolio-page-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   SERVICES PAGE (template-services.php)
   ========================================================================== */

/* --- Hero --- */
.services-hero { position: relative; min-height: 70vh; display: flex; align-items: center; padding-top: 5rem; overflow: hidden; }
.services-hero__bg { position: absolute; inset: 0; z-index: 0; }
.services-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.services-hero__overlay { position: absolute; inset: 0; background: rgba(245, 245, 245, 0.75); backdrop-filter: blur(4px); }
.services-hero__orb { position: absolute; top: 33%; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: hsla(var(--primary), 0.08); border-radius: 50%; filter: blur(100px); pointer-events: none; }
.services-hero__content { position: relative; z-index: 1; padding: 5rem 0; }
.services-hero__buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .services-hero__buttons { flex-direction: row; } }
/* Solid white secondary button inside the hero — transparent looks invisible on the light overlay */
.services-hero__buttons .btn-outline {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.services-hero__buttons .btn-outline:hover {
  background: #f5f5f5;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: scale(1.02);
}

/* --- Trust bar --- */
.services-trust { padding: 2rem 0; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--section-alt)); }
.services-trust__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
@media (min-width: 768px) { .services-trust__grid { gap: 4rem; } }
.services-trust__item { display: flex; align-items: center; gap: 0.75rem; }
.services-trust__icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: hsla(var(--primary), 0.1); border: 1px solid hsla(var(--primary), 0.2); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.services-trust__icon svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.services-trust__item strong { display: block; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 0.875rem; font-weight: 700; }
.services-trust__item span { display: block; color: hsl(var(--muted-foreground)); font-size: 0.75rem; }

/* --- Alternating service blocks --- */
.svc-alt { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .svc-alt { grid-template-columns: 1fr 1fr; gap: 5rem; } }
@media (min-width: 1024px) { .svc-alt--reverse .svc-alt__image { order: 2; } .svc-alt--reverse .svc-alt__content { order: 1; } }
.svc-alt__image { position: relative; }
.svc-alt__image-wrap { position: relative; border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); border: 1px solid hsl(var(--border)); }
.svc-alt__image-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.svc-alt__image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.2), transparent); }
.svc-alt__image-deco { position: absolute; z-index: -1; bottom: -1rem; right: -1rem; width: 100%; height: 100%; border-radius: 1rem; border: 2px solid hsla(var(--primary), 0.15); }
.svc-alt--reverse .svc-alt__image-deco { right: auto; left: -1rem; }
.svc-alt__features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; list-style: none; padding: 0; }
.svc-alt__features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--foreground)); }
.svc-alt__features svg { color: hsl(var(--primary)); flex-shrink: 0; }

/* --- Section intro description (centered, readable) --- */
.svc-section-desc {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 0 1rem;
}

/* --- Add-on grid --- */
.svc-addons { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .svc-addons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-addons { grid-template-columns: 1fr 1fr 1fr; } }
.svc-addon-card {
  background: hsl(var(--card)); border-radius: 0.75rem; padding: 2rem;
  border: 1px solid hsl(var(--border)); transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.svc-addon-card:hover { border-color: hsla(var(--primary), 0.3); box-shadow: 0 10px 25px -5px hsla(var(--primary), 0.05); transform: translateY(-4px); }
.svc-addon-card__icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: hsla(var(--primary), 0.1); border: 1px solid hsla(var(--primary), 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; }
.svc-addon-card__icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.svc-addon-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.svc-addon-card p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.7; flex: 1; margin: 0; }

/* --- Process timeline --- */
.svc-timeline { position: relative; max-width: 48rem; margin: 0 auto; }
.svc-timeline__line { position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 2px; background: hsl(var(--border)); }
@media (min-width: 768px) { .svc-timeline__line { left: 50%; transform: translateX(-1px); } }
.svc-timeline__step { position: relative; display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .svc-timeline__step { gap: 3rem; } }
.svc-timeline__circle { position: relative; z-index: 1; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px hsla(var(--primary), 0.25); }
.svc-timeline__circle svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary-foreground)); }
@media (min-width: 768px) {
  .svc-timeline__circle { position: absolute; left: 50%; transform: translateX(-50%); }
  .svc-timeline__step .svc-timeline__card { margin-right: calc(50% + 2rem); }
  .svc-timeline__step--right .svc-timeline__card { margin-right: 0; margin-left: calc(50% + 2rem); }
}
.svc-timeline__card { flex: 1; background: hsl(var(--card)); border-radius: 0.75rem; padding: 1.5rem; border: 1px solid hsl(var(--border)); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* --- CTA section --- */
.svc-cta { position: relative; padding: 6rem 1rem 8rem; overflow: hidden; background: hsl(var(--footer-bg)); }
.svc-cta__orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: hsla(var(--primary), 0.1); border-radius: 50%; filter: blur(150px); pointer-events: none; }

/* --- WP Editor Content --- */
.wp-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.wp-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.wp-content p { color: hsl(var(--muted-foreground)); line-height: 1.8; margin-bottom: 1rem; }
.wp-content ul, .wp-content ol { margin: 0 0 1rem 1.5rem; }
.wp-content li { color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 0.5rem; }
.wp-content strong { color: hsl(var(--foreground)); }
.wp-content a { color: hsl(var(--primary)); text-decoration: underline; }

/* --- Utilities --- */
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }
.text-center { text-align: center; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal-stagger.visible > *, .reveal-stagger > *.visible { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* --- Portfolio filters: wrap on small screens (global) --- */
.portfolio-filters { flex-wrap: wrap; }

/* --- Portfolio page grid: 2-col on tablet, 3-col on desktop --- */
@media (min-width: 640px) { .portfolio-page-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 767px) {
  /* Container: tighter side padding, no overflow */
  .container { padding: 0 1.25rem; }

  /* Typography: scale down headings and body text */
  .hero h1,
  .services-hero h1 { font-size: 2rem; }
  h2,
  .svc-cta h2 { font-size: 1.5rem; }
  .svc-section-desc,
  .hero p.subtitle,
  .services-hero p { font-size: 1rem; line-height: 1.7; }

  /* Hero sections: reduce padding so content is reachable sooner */
  .services-hero { min-height: auto; padding: 5rem 0 3rem; }
  .services-hero__content { padding: 2rem 0; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }

  /* Trust bar: stack items vertically, centered, with clear spacing */
  .services-trust { padding: 2rem 1.25rem; }
  .services-trust__grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }
  .services-trust__item {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
  }
  .services-trust__item strong { font-size: 1rem; }
  .services-trust__item span { font-size: 0.875rem; }

  /* Buttons: full-width and spaced when stacked */
  .hero-buttons a,
  .services-hero__buttons a {
    width: 100%;
    text-align: center;
  }
  .hero-buttons,
  .services-hero__buttons { gap: 0.75rem; }

  /* Service feature list: 1-col on mobile */
  .svc-alt__features { grid-template-columns: 1fr; }

  /* Service alternating blocks: reduce bottom spacing */
  .svc-alt[style*="margin-bottom:6rem"] { margin-bottom: 3rem !important; }

  /* Addon cards: ensure they don't clip */
  .svc-addon-card { padding: 1.5rem; }

  /* Timeline: ensure left-aligned line doesn't create overflow */
  .svc-timeline { padding-left: 0; }
  .svc-timeline__line { left: 1rem; }
  .svc-timeline__step { gap: 1rem; padding-left: 0.25rem; }
  .svc-timeline__circle { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }

  /* CTA section: reduce tall padding */
  .svc-cta { padding: 4rem 1rem 5rem; }

  /* Section padding: slightly tighter on mobile */
  .section-padding { padding: 3.5rem 0; }

  /* Single portfolio: stack sidebar below content */
  .sgl-layout { flex-direction: column; }
  .sgl-sidebar { width: 100%; }
  .sgl-title-section { padding: 5rem 0 2rem; }
  .sgl-title-section h1 { font-size: 1.75rem; }
  .sgl-back { flex-direction: column; }
  .sgl-back a { width: 100%; text-align: center; justify-content: center; }
  .sgl-meta-bar__inner { gap: 0 1.5rem; }
  .sgl-meta-item--cta { margin-left: 0; width: 100%; margin-top: 0.5rem; }
  .sgl-meta-item--cta a { width: 100%; text-align: center; justify-content: center; display: flex; }
  .sgl-showcase--two-col { grid-template-columns: 1fr; }
  .sgl-showcase__item--logo { min-height: 160px; }
}

/* ==========================================================================
   SINGLE PORTFOLIO PAGE
   ========================================================================== */

/* Portfolio card as a link */
a.portfolio-card { display: block; text-decoration: none; color: inherit; }
.portfolio-card__cta {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: hsl(var(--primary)); font-size: 0.875rem; font-weight: 600;
  margin-top: 0.75rem;
}
.portfolio-card__cta svg { transition: transform 0.2s; }
a.portfolio-card:hover .portfolio-card__cta svg { transform: translateX(3px); }

/* Clean title section (no background image) */
.sgl-title-section {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 6rem 0 2.5rem;
}
.sgl-title-inner {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sgl-breadcrumb {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  margin-bottom: 0.25rem;
}
.sgl-breadcrumb:hover { color: hsl(var(--foreground)); }
.sgl-breadcrumb svg { flex-shrink: 0; }
.sgl-title-section .section-label { margin-bottom: 0; }
.sgl-title-section h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15;
  color: #1a1a1a; margin: 0;
}
.sgl-subtitle {
  font-size: 1.125rem; color: hsl(var(--muted-foreground));
  line-height: 1.6; margin: 0; max-width: 48rem;
}

/* Horizontal meta bar */
.sgl-meta-bar {
  background: hsl(var(--section-alt));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 0;
}
.sgl-meta-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 2.5rem;
}
.sgl-meta-item {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.5rem 0;
}
.sgl-meta-item--cta { margin-left: auto; }
.sgl-meta-label {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: hsl(var(--muted-foreground));
}
.sgl-meta-label svg { color: hsl(var(--primary)); flex-shrink: 0; }
.sgl-meta-value {
  font-size: 0.9375rem; font-weight: 600; color: hsl(var(--foreground));
}

/* Visual showcase grid */
.sgl-showcase {
  margin-bottom: 2.5rem;
  display: grid; gap: 1.25rem;
}
.sgl-showcase--two-col { grid-template-columns: 2fr 1fr; }
.sgl-showcase--single { grid-template-columns: 1fr; }
.sgl-showcase__item {
  border-radius: 1rem; overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  background: hsl(var(--secondary));
}
.sgl-showcase__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgl-showcase__item--logo {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: #fff;
}
.sgl-showcase__item--logo img { width: auto; height: auto; max-height: 200px; object-fit: contain; }

/* Featured image below title, inside content column */
.sgl-featured-img {
  border-radius: 1rem; overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin-bottom: 2.5rem;
}
.sgl-featured-img img { width: 100%; height: auto; display: block; }

/* Two-column layout: content + sidebar */
.sgl-layout {
  display: flex; align-items: flex-start; gap: 4rem;
}
.sgl-content { flex: 1; min-width: 0; }

/* Body copy */
.sgl-body {
  font-size: 1.125rem; line-height: 1.75;
  color: hsl(var(--foreground));
  max-width: 800px;
}
.sgl-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.sgl-body h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.sgl-body p { color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.sgl-body ul, .sgl-body ol { margin: 0 0 1.25rem 1.5rem; }
.sgl-body li { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; line-height: 1.7; }
.sgl-body img { border-radius: 0.75rem; margin: 1.5rem 0; max-width: 100%; }

/* Back / CTA buttons row */
.sgl-back {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

/* Info sidebar */
.sgl-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 6rem; }
.sgl-info-box {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 1rem; padding: 1.75rem;
}
.sgl-info-box h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid hsl(var(--border));
}
.sgl-info-row {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.875rem 0; border-bottom: 1px solid hsl(var(--border));
}
.sgl-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.sgl-info-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: hsl(var(--muted-foreground));
}
.sgl-info-label svg { color: hsl(var(--primary)); flex-shrink: 0; }
.sgl-info-value { font-size: 0.9375rem; font-weight: 500; color: hsl(var(--foreground)); }
