/* ==========================================================================
   DAMANET – nábytek / interiéry / realizace / stavby
   Corporate, clean, premium, warm
   ========================================================================== */

/* --------------------------------------------------------------------------
   0) Project palette
   -------------------------------------------------------------------------- */

:root {
  --project: #1E63B6;
  --project-dark: #164C8F;
  --project-deep: #0F2F57;

  --accent-wood: #B98A55;
  --accent-wood-dark: #8F6538;

  --bg-body: #FAFAFA;
  --bg-soft: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-dark: #1F2937;
  --bg-deep: #111827;

  --text-body: #1F2937;
  --text-muted: #6B7280;
  --text-light: #FFFFFF;

  --border-base: rgba(31,41,55,.10);
  --border-soft: rgba(31,41,55,.07);

  --shadow-soft: 0 18px 50px rgba(15,47,87,.10);
  --shadow-card: 0 22px 65px rgba(15,47,87,.14);

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --header-height: 88px;
}

/* --------------------------------------------------------------------------
   1) Base
   -------------------------------------------------------------------------- */

html,
body {
  background: var(--bg-body);
  color: var(--text-body);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--project);
}

img {
  max-width: 100%;
}

.text-muted {
  color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4 {
  color: var(--text-body);
  letter-spacing: -0.035em;
}

.section,
.home-section {
  position: relative;
  padding: 5.5rem 0;
}

.home-section--soft,
.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 950;
  line-height: 1.08;
}

.section-head p:not(.section-kicker) {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-kicker,
.kicker {
  color: var(--project);
  font-size: .88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: .65rem;
  border-radius: 999px;
  background: var(--accent-wood);
}

.text-center .section-kicker::after,
.section-head .section-kicker::after {
  margin-left: auto;
  margin-right: auto;
}

.link-more {
  color: var(--project);
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.link-more:hover {
  color: var(--accent-wood-dark);
}

/* --------------------------------------------------------------------------
   2) Header / navigation
   -------------------------------------------------------------------------- */

#site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
}

.site-nav,
#site-header .navbar {
  min-height: var(--header-height);
}

.navbar-brand img {
  max-height: 58px;
  width: auto;
}

.nav-link {
  position: relative;
  color: var(--text-body) !important;
  font-weight: 800;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .035em;
  padding-inline: .85rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--project) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 3px;
  border-radius: 999px;
  background: var(--project);
}

.navbar-toggler {
  border-color: var(--border-base);
  background: #fff;
  border-radius: 12px;
}

.header-phone {
  font-weight: 800;
  color: var(--project);
}

/* --------------------------------------------------------------------------
   3) Buttons
   -------------------------------------------------------------------------- */

.btn {
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: .015em;
}

.btn-project,
.bg-project {
  background: var(--project) !important;
  border: 1px solid var(--project) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(30,99,182,.24);
}

.btn-project:hover,
.bg-project:hover {
  background: var(--project-dark) !important;
  border-color: var(--project-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.hero-btn-light,
.btn-outline-secondary {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  color: #fff !important;
}

.hero-btn-light:hover,
.btn-outline-secondary:hover {
  background: #fff !important;
  color: var(--project-deep) !important;
}

/* --------------------------------------------------------------------------
   4) Hero
   -------------------------------------------------------------------------- */

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: var(--bg-deep);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slider .hero-slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroFade 18s infinite;
  will-change: opacity;
}

.hero-slider .slide-1 { animation-delay: 0s; opacity: 1; }
.hero-slider .slide-2 { animation-delay: 6s; }
.hero-slider .slide-3 { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(17,24,39,.92) 0%,
      rgba(17,24,39,.78) 34%,
      rgba(17,24,39,.45) 58%,
      rgba(17,24,39,.18) 78%,
      rgba(17,24,39,.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(17,24,39,.18) 0%,
      rgba(17,24,39,.38) 100%
    );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  margin-bottom: 1rem;
  color: var(--accent-wood);
  font-size: .86rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero-title {
  margin: 0;
  max-width: 13ch;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: .94;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
  color: #fff;
}

.hero-title .hero-accent {
  color: var(--accent-wood);
}

.hero-text {
  max-width: 44rem;
  font-size: 1.18rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
}

.hero-btn-main,
.hero-btn-light {
  min-height: 58px;
  padding-inline: 1.45rem;
}

/* --------------------------------------------------------------------------
   5) Services
   -------------------------------------------------------------------------- */

.home-services {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(800px 360px at 10% 0%, rgba(30,99,182,.07), transparent 62%),
    var(--bg-body);
}

.home-services .home-services-accent {
  color: var(--accent-wood);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  --service-color: var(--project);

  position: relative;
  min-height: 350px;
  padding: 2rem 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--service-color);
}

.service-card {
  min-height: auto;
  padding: 0 1.5rem 1.6rem;
}

.service-card{
  overflow:hidden;
  padding:0;
}

.service-card-image img{
  width:100%;
  display:block;
  aspect-ratio:16/10;
  object-fit:cover;
}

.service-card-body{
  padding:1.5rem;
}

.service-card a {
  position: static;
  display: inline-flex;
  margin-top: 1rem;
}

.service-card h3 {
  margin: 0 0 .8rem;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 900;
}

.service-card p {
  margin: 0 0 1.7rem;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.65;
}

.service-card a {
  position: absolute;
  left: 1.5rem;
  bottom: 1.45rem;
  color: var(--project);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover a {
  color: var(--text-body);
}

.service-card--furniture { --service-color: var(--project); }
.service-card--design    { --service-color: var(--accent-wood); }
.service-card--interior  { --service-color: var(--project-dark); }
.service-card--building  { --service-color: var(--bg-dark); }

/* --------------------------------------------------------------------------
   6) Numbers
   -------------------------------------------------------------------------- */

.home-numbers {
  padding: 4.5rem 0;
  background: var(--bg-deep);
  color: #fff;
}

.numbers-title {
  margin: 0 0 2.5rem;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
}

.number-item {
  padding: 1.7rem 1.5rem;
  text-align: center;
  background: var(--bg-deep);
}

.number-item strong {
  display: block;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.number-item span {
  display: block;
  margin-top: .55rem;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   7) References / realizace
   -------------------------------------------------------------------------- */

.home-references {
  padding: 5.5rem 0;
  background: var(--bg-soft);
}

.references-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.references-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 950;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.realization-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  box-shadow: var(--shadow-soft);
}

.realization-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform .22s ease;
}

.realization-card:hover img {
  transform: scale(1.035);
}

.realization-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(17,24,39,.92));
}

.realization-card-content {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2;
  color: #fff;
}

.realization-card-content strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
}

.realization-card-content span {
  display: block;
  margin-top: .35rem;
  color: rgba(255,255,255,.76);
  font-size: .92rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8) Process / timeline
   -------------------------------------------------------------------------- */

.home-process {
  padding: 5.5rem 0;
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(31,41,55,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.process-item {
  position: relative;
  min-height: 260px;
  padding: 2rem 1.4rem;
  background: #fff;
}

.process-item span {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: var(--project);
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.process-item h3 {
  margin: 0 0 .7rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.process-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.6;
}

.process-item::after {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 2rem;
  color: var(--accent-wood);
  font-size: 1.4rem;
  font-weight: 900;
}

.process-item:last-child::after {
  content: "✓";
}

/* --------------------------------------------------------------------------
   9) About
   -------------------------------------------------------------------------- */

.home-about {
  padding: 6rem 0;
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}

.about-media img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.about-copy h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
  font-weight: 950;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   10) Benefits
   -------------------------------------------------------------------------- */

.home-benefits {
  padding: 3.8rem 0;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(31,41,55,.12);
  border-bottom: 1px solid rgba(31,41,55,.12);
}

.benefit-line {
  padding: 2rem;
  border-right: 1px solid rgba(31,41,55,.12);
}

.benefit-line:last-child {
  border-right: 0;
}

.benefit-line strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--text-body);
  font-size: 1.05rem;
  font-weight: 950;
}

.benefit-line strong::before {
  content: "✓";
  margin-right: .55rem;
  color: var(--project);
}

.benefit-line span {
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   11) Materials
   -------------------------------------------------------------------------- */

.home-materials {
  padding: 5rem 0;
  background: var(--bg-soft);
}

 .materials-grid{
     display:grid;
     grid-template-columns:repeat(6,1fr);
     gap:24px;
 }
 
 .material-card{
     background:#fff;
     border-radius:20px;
     overflow:hidden;
     box-shadow:0 12px 35px rgba(0,0,0,.08);
     transition:.35s;
 }
 
 .material-card:hover{
     transform:translateY(-8px);
     box-shadow:0 20px 45px rgba(0,0,0,.12);
 }
 
 .material-image{
     height:160px;
     background-size:cover;
     background-position:center;
 }
 
 .material-title{
     height:78px;
     display:flex;
     align-items:center;
     justify-content:center;
     font-size:1.45rem;
     font-weight:700;
     color:#1f2b44;
 }
 
 @media (max-width:1200px){
     .materials-grid{
         grid-template-columns:repeat(3,1fr);
     }
 }
 
 @media (max-width:768px){
     .materials-grid{
         grid-template-columns:repeat(2,1fr);
     }
     .material-image{
         height:150px;
     }
     .material-title{
         font-size:1.2rem;
     }
 }

/* --------------------------------------------------------------------------
   12) CTA photo
   -------------------------------------------------------------------------- */

.home-cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
}

.cta-media,
.cta-media img,
.cta-overlay {
  position: absolute;
  inset: 0;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  background:
    linear-gradient(90deg, rgba(15,47,87,.95), rgba(30,99,182,.78)),
    rgba(15,47,87,.75);
  z-index: 1;
}

.home-cta .container {
  position: relative;
  z-index: 2;
}

.cta-copy {
  max-width: 720px;
}

.cta-copy h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
  font-weight: 950;
}

.cta-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  line-height: 1.7;
}

.home-cta .section-kicker {
  color: var(--accent-wood);
}

.home-cta .section-kicker::after {
  background: rgba(255,255,255,.7);
}

/* --------------------------------------------------------------------------
   13) Footer compatibility
   -------------------------------------------------------------------------- */

#site-footer,
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,.76);
}

#site-footer a,
.site-footer a {
  color: rgba(255,255,255,.82);
}

#site-footer a:hover,
.site-footer a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   14) CMS content
   -------------------------------------------------------------------------- */

.cms-content {
  max-width: 780px;
  line-height: 1.7;
  color: var(--text-body);
}

.cms-content > * + * {
  margin-top: 1.2em;
}

.cms-content h2,
.cms-content h3 {
  margin-top: 1.8em;
  font-weight: 900;
}

.cms-content a {
  color: var(--project);
  text-decoration: underline;
}

.cms-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   15) Cookie/preferences button
   -------------------------------------------------------------------------- */

#open_preferences_center {
  position: fixed;
  right: 0;
  bottom: 75px;
  z-index: 1001;
  width: 70px;
  height: 62px;
  padding-top: 2px;
  border-radius: 30px 0 0 30px;
  background: var(--project);
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  box-shadow: 0 10px 30px rgba(30,99,182,.26);
}

#open_preferences_center:hover {
  background: var(--project-dark);
  color: #fff;
}

/* --------------------------------------------------------------------------
   16) Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .services-cards,
  .references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-item:last-child {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 78px;
  }

  #site-header {
    position: fixed;
  }

  .navbar-brand img {
    max-height: 50px;
  }

  .hero-stage {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero-slider {
    position: relative;
    height: clamp(360px, 74vw, 560px);
  }

  .hero-content {
    position: relative;
    padding: 2.5rem 0 3.5rem;
    background: var(--bg-deep);
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(17,24,39,.10) 0%,
        rgba(17,24,39,.62) 78%,
        rgba(17,24,39,1) 100%
      );
  }

  .hero-title {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }
}

@media (max-width: 767.98px) {
  .home-services,
  .home-references,
  .home-process,
  .home-about,
  .home-materials {
    padding: 3.5rem 0;
  }

  .services-cards,
  .references-grid,
  .process-grid,
  .benefits-grid,
  .materials-grid,
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .references-head {
    display: block;
  }

  .service-card {
    min-height: 300px;
  }

  .realization-card,
  .realization-card img {
    min-height: 340px;
  }

  .benefit-line {
    border-right: 0;
    border-bottom: 1px solid rgba(31,41,55,.12);
  }

  .benefit-line:last-child {
    border-bottom: 0;
  }

  .about-media img {
    min-height: 300px;
  }

  .home-cta {
    min-height: 460px;
  }
}

/* --------------------------------------------------------------------------
   17) Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide {
    animation: none;
    opacity: 0;
  }

  .hero-slider .slide-1 {
    opacity: 1;
  }

  .service-card,
  .realization-card img {
    transition: none;
  }

  .service-card:hover,
  .realization-card:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
 18) Gallery category
 -------------------------------------------------------------------------- */
 
.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-category-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  box-shadow: var(--shadow-soft);
}

.gallery-category-card a {
  display: block;
  height: 100%;
  color: #fff;
}

.gallery-category-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.gallery-category-card:hover img {
  transform: scale(1.04);
}

.gallery-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,24,39,.08), rgba(17,24,39,.88));
  pointer-events: none;
}

.gallery-category-card-content {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  z-index: 2;
}

.gallery-category-card-content h3 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.gallery-category-card-content span {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .gallery-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
 19) Soft background
 -------------------------------------------------------------------------- */
 
.section-soft-bg {
     background:
         url("../images/backgrounds/soft-wave.png") center center / cover no-repeat,
         #faf8f4;
 }