/*   HERO   */
.hero {
  background-image: url('./../../img/home/hero/hero.jpg');
  background-attachment: fixed;
}
/* --HERO-- */











/* --- Services --- */
.services {
  padding: 80px 0;
}
.services .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.services .section-title {
  max-width: 812px;
  width: 100%;
  font-size: calc(var(--fs-xl) + 4px);
  color: transparent;
  background: linear-gradient(to right, #3B2D1F, #E7A456);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: block;
  height: 526px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}
.service-card.large {
  grid-column: span 2;
}

.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--t-delay) ease;
}

/* --- Overlay parādīšanās uz hover/focus --- */
.service-card .overlay{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 1rem;
  padding: 33px 22px;
  color: var(--clr-white);
  background-color: rgba(0,0,0,.78);
  opacity: 0; transform: translateY(10px);
  transition: all var(--t-delay) ease;
}
.service-card .overlay-1{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 1rem;
  padding: 44px 22px;
  color: var(--clr-white);
  opacity: 1; transform: translateY(10px);
  transition: all var(--t-delay) ease;
}

.service-card .cat { font-size: var(--fs-sm); }
.service-card h3 { font-size: var(--fs-lg); }
.service-card p  { font-size: var(--fs-sm); }
.service-card .btn-outline{
  display:inline-block;
  padding: 10.5px 36px;
  font-family: var(--font-second);
  font-weight: var(--w-regular);
  margin-top: 1rem;
  border-radius: 10px;
  border:1px solid var(--clr-primary-2);
  color: var(--clr-primary-2) !important;
  text-transform: uppercase;
  background:transparent !important;
  transition: all var(--t-delay) ease;
}
.service-card .btn-outline:hover {
  color:var(--clr-white) !important;
  background-color: var(--clr-primary-2) !important;
}

/* Hover/Focus stāvokļi */
.service-card:hover img,
.service-card:focus-visible img { transform: scale(1.06); }

.service-card:hover .overlay,
.service-card:focus-visible .overlay { opacity:1; transform: translateY(0); }

.service-card:hover .overlay-1,
.service-card:focus-visible .overlay-1 { opacity:0; transform: translateY(-10px); }

.service-card:hover .btn-outline,
.service-card:focus-visible .btn-outline { background:var(--clr-primary-2); color:#fff; }

/* CTA */
.services-cta {
  min-height: 262px;
  margin-top: 5rem;
  padding: 32px 22px;
  text-align: center;
  color:var(--clr-white);
  border-radius: 20px;
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    linear-gradient(45deg, rgba(6, 10, 17, 0.8) 30%, rgba(255, 107, 0, 0.8) 76%);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.services-cta h3 {
  max-width: 800px;
  width: 100%;
  font-size: calc(var(--fs-xl) + 4px);
  font-weight: var(--w-regular);
}

/* Responsīvs */
/* @media (max-width: 980px){
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card.large { grid-column: span 2; }
}
@media (max-width: 640px){
  .services-grid { grid-template-columns: 1fr; }
  .service-card.large { height: 280px; }
  .service-card { height: 220px; }
} */
/* --Services-- */











/* --- About --- */
.about {
  padding: 80px 0;
}
.about .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.about .section-title {
  max-width: 812px;
  width: 100%;
  font-size: calc(var(--fs-xl) + 4px);
  color: transparent;
  background: linear-gradient(to right, #3B2D1F, #E7A456);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about .about-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
}
.about .about-block div.about-block__image {
  width: calc(48% - 1rem);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.about .about-block div.about-block__image img {
  width: 100%;
  border-radius: 20px;
  height: auto;
}
.about .about-block div.about-block__text {
  width: calc(52% - 1rem - 3px);
  color: var(--clr-black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.about .about-block div.about-block__text h4 {
  font-size: var(--fs-lg);
  font-family: var(--font-second);
  text-transform: uppercase;
  color: var(--clr-bg);
}
.about .about-block div.about-block__text p {
  font-size: var(--fs-sm);
  line-height: 30px;
  text-align: justify;
  color: var(--clr-muted);
}
.about .section-subtitle {
  margin: 5rem auto 3rem;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  font-size: calc(var(--fs-xl) + 4px);
  color: transparent;
  background: linear-gradient(to right, #3B2D1F, #E7A456);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#about-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4rem;
}
#about-cards .card {
  width: calc(100% / 3 - (8rem / 3));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}





/* Анимирование иконок */
#about-cards .card svg {
  display: block;
  transform-origin: 50% 50%;
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}
/* Анимация покачивания */
@keyframes cta-wiggle {
  0%   { transform: rotate(0deg) translateY(0); }
  20%  { transform: rotate(-4deg) translateY(-2px); }
  40%  { transform: rotate(3deg) translateY(-1px); }
  60%  { transform: rotate(-2deg) translateY(-2px); }
  80%  { transform: rotate(1deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
/* Ключевые кадры: небольшой круг и пульсация */
@keyframes cta-orbit {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(2px,-2px) scale(1.02); }
  50%  { transform: translate(0,-3px) scale(1.04); }
  75%  { transform: translate(-2px,-2px) scale(1.02); }
  100% { transform: translate(0,0) scale(1); }
}

#about-cards .card:nth-child(3n+1):hover svg { transform: translateY(-4px) rotate(-3deg) scale(1.03); }
#about-cards .card:nth-child(3n+2):hover svg { animation: cta-wiggle .6s ease-in-out both; }
#about-cards .card:nth-child(3n+3):hover svg { animation: cta-orbit .8s ease-out both; }
/* --Анимирование иконок-- */






#about-cards .card svg path {
  fill: #FF6B00;
}
#about-cards .card h5 {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--clr-bg);
}
#about-cards .card p {
  font-size: var(--fs-sm);
  line-height: 2;
  text-align: justify;
  color: var(--clr-muted);
}
/* --About-- */











/* --- Contact --- */
.contact {
  padding: 80px 0;
  background:
    linear-gradient(rgba(240, 240, 240, .4), rgba(240, 240, 240, .4)),
    linear-gradient(200deg, rgba(240, 240, 240, .8) 37%, rgba(0, 0, 0, 0.8) 70%);
}
.contact .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.contact .section-title {
  width: 100%;
  font-size: calc(var(--fs-xl) + 4px);
  color: transparent;
  background: linear-gradient(to right, #3B2D1F, #E7A456);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#contact-block {
  border-radius: var(--radius-lg);
  padding: 3rem;
  background:
    linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
    linear-gradient(140deg, rgba(6, 10, 17, .8) 37%, rgba(255, 107, 0, .8) 70%);
}
#contact-block h4 {
  margin-bottom: 4rem;
  text-align: center;
  font-weight: var(--w-regular);
  font-size: var(--fs-lg);
  text-shadow: 0 4px 4px rgba(255, 255, 255, 0.15);
}
#contact-block p {
  margin: 1rem 0;
}
#contact-block p,
#contact-block p a {
  font-size: calc(var(--fs-sm) - 2px);
}
#contact-block p a {
  font-weight: var(--w-bold);
  color: var(--clr-primary);
  transition: color var(--t-delay) ease;
}
#contact-block p a:hover {
  color: var(--clr-white);
}
#contact-block__main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
}
#contact-block__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-block__left input {
  color: var(--clr-white);
  font-size: var(--fs-md);
}
#contact-block__left textarea {
  color: var(--clr-white);
  font-size: var(--fs-md);
  min-width: 100%;
  max-width: 100%;
  min-height: 200px;
  max-height: 500px;
}
/* #contact-block__right {

} */
#contact-block__left,
#contact-block__right {
  width: calc(100% / 2 - 1rem);
}
/* --Contact-- */






/* ========================= */
/* <1280px tweaks (desktop+) */
/* ========================= */
@media (max-width: 1280px){
  .container {
    padding-inline: 2rem !important;
  }
}


/* ===================== */
/* ≤1024px (tablet wide) */
/* ===================== */
@media (max-width: 1024px){
  .hero {
    background-attachment: scroll; /* iOS/Safari fix */
    min-height: 500px;
    padding: 48px 0;
  }
}


/* ===================== */
/* ≤980px (small laptop) */
/* ===================== */
@media (max-width: 980px){
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card.large {
    grid-column: span 2;
    min-height: 420px;
  }
}


/* ===================== */
/* ≤900px (tablet / iPad)*/
/* ===================== */
@media (max-width: 900px){
  .about .about-block {
    flex-direction: column;
  }

  .about .about-block__text,
  .about .about-block__image {
    width: 100%;
  }

  .about .about-block:nth-child(2) {
    flex-direction: column;
  }
  .about .about-block div.about-block__image {
    width: 50%;
  }
  .about .about-block {
    align-items: center;
  }
  .about .about-block:nth-child(2) {
    display: flex;
    flex-direction: column-reverse;
  }
  .about .about-block div.about-block__text {
    width: 100%;
  }

  #about-cards {
    gap: 2rem;
  }
  #about-cards .card {
    flex: 1 1 calc(50% - 1rem);
  }

  #contact-block__main {
    flex-direction: column;
  }
  #contact-block__left,
  #contact-block__right {
    width: 100%;
  }

  #contact-block h4 {
    margin-bottom: 1rem;
    text-align: left;
  }

  #submit-btn.btn {
    margin-left: 0;
    margin-right: 0;
  }
}


/* ===================== */
/* ≤768px (classic tablet)*/
/* ===================== */
@media (min-width: 768px){
  .services-cta {
    margin-top: 0;
  }
  #contact-block {
    padding: 3rem;
  }
}


/* ===================== */
/* ≤640px (phones large) */
/* ===================== */
@media (max-width: 640px){
  .about .about-block div.about-block__image {
    width: 70%;
  }
  .services, .about, .contact {
    padding: 60px 0;
  }
  .about .section-subtitle {
    margin: 2rem auto 0;
  }
  .service-card.large {
    grid-column: span 1;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.large {
    min-height: 220px;
  }

  .service-card .overlay {
    opacity:1;
    transform: translateY(0);
    background-color: rgba(0,0,0,.6);
  }
  .service-card .overlay-1 {
    opacity:0;
    pointer-events:none;
  }
}


/* ===================== */
/* ≤600px (phones)       */
/* ===================== */
@media (max-width: 600px){
  .service-card {
    max-height: 400px;
  }
  
  #contact-block {
    padding: 1.5rem;
  }

  #contact-block__right iframe {
    min-height: 220px;
  }

  #about-cards .card {
    flex: 1 1 100%;
  }
}