/* ==========================================================================
   Dans Decor — main stylesheet
   Faithful rebuild of the original Elementor design.
   ========================================================================== */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

/* ---- Design tokens (from the original Elementor kit) ---- */
:root {
  --color-accent: #e94f37;   /* global 5c60842 */
  --color-grey: #333333;     /* global a8fd4cc */
  --color-dark: #0d0d0d;     /* global c9800e7 */
  --color-white: #ffffff;    /* global 88ba886 */
  --color-text: #7a7a7a;     /* global text   */
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --container: 1184px;
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
}

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

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Visible only when focused via keyboard */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1210px) {
  .container {
    padding: 0 1rem;
  }
}

/* ---- Buttons (pill, Roboto 16px/600, spacing 1.2px) ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover,
.btn--accent:focus {
  background-color: var(--color-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 3px solid var(--color-white);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   Header — white email strip + dark grey nav bar, logo overlapping both
   ========================================================================== */
.site-header {
  position: relative;
}

.site-header__logo {
  position: absolute;
  top: 0;
  left: max(calc((100% - 1184px) / 2), 0px);
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 120px;
  padding-top: 0.75rem;
}

.site-header__logo img {
  width: 101px;
}

@media (max-width: 1210px) {
  .site-header__logo {
    left: 0;
    padding-left: 1rem;
  }
}

.header-top {
  background: var(--color-white);
  min-height: 2rem;
}

.header-top__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  min-height: 2rem;
}

.header-top__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color-dark);
  transition: color 0.3s;
}

.header-top__link img {
  width: 16px;
  height: 16px;
}

.header-top__link:hover {
  color: var(--color-accent);
}

.header-main {
  background: var(--color-grey);
}

.header-main__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  min-height: 6rem;
  padding: 1rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.site-nav li:not(:first-child) {
  margin-left: 0.5rem;
}

.site-nav li:not(:last-child) {
  margin-right: 0.5rem;
}

.site-nav a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-white);
  padding: 13px 20px;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-accent);
}

.header-main .btn {
  font-size: 14px;
  letter-spacing: 1.5px;
  border-radius: 1000px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px 0;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: 8rem 0;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.5;
}

.hero--page {
  min-height: calc(50vh - 8rem);
  background-position: 0% 80%;
}

.hero--page::before {
  opacity: 0.4;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__kicker img {
  width: 43px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  max-width: 45rem;
}

.hero__title span {
  color: var(--color-accent);
}

.hero .btn {
  margin-top: 1rem;
}

/* ==========================================================================
   Section basics
   ========================================================================== */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8rem 0;
}

.section--grey {
  background: var(--color-grey);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-grey);
  text-align: left;
}

.section-title span {
  color: var(--color-accent);
}

.section-title--center {
  text-align: center;
}

.section--grey .section-title {
  color: var(--color-white);
}

.section--grey .section-intro {
  color: var(--color-white);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gap-64 {
  gap: 64px;
}

/* Lazy-loadable cover image inside a fixed-shape container
   (replaces CSS background-image so the browser can defer it) */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-intro {
  max-width: 574px;
  margin: 1rem 0 0;
  padding-bottom: 1rem;
  color: var(--color-dark);
}

/* ==========================================================================
   Services grid (home) — bg-image cards, dark gradient from the top
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  border-radius: 8px;
  padding: 32px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  aspect-ratio: 373 / 320;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image: linear-gradient(180deg, var(--color-dark) 0%, transparent 100%);
}

.service-card h4 {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-white);
}

/* ==========================================================================
   Recent work carousel (home)
   ========================================================================== */
.carousel {
  position: relative;
  width: 100%;
  padding: 0 62px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 calc((100% - 48px) / 4);
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.carousel__prev,
.carousel__next,
.slider__prev,
.slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
  padding: 0;
}

.carousel__prev,
.slider__prev {
  left: 0;
}

.carousel__next,
.slider__next {
  right: 0;
}

.carousel__prev img,
.carousel__next img,
.slider__prev img,
.slider__next img {
  width: 38px;
}

.slider__prev {
  left: 10px;
}

.slider__next {
  right: 10px;
}

/* ==========================================================================
   About split (home + about page)
   ========================================================================== */
.about-row {
  display: flex;
  justify-content: space-between;
  gap: 8rem;
  width: 100%;
}

.about-row__image {
  position: relative;
  overflow: hidden;
  width: 33.45%;
  flex-shrink: 0;
  aspect-ratio: 29 / 37;
  align-self: flex-start;
  border-radius: 8px;
}

.about-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4rem;
  flex: 1;
}

.about-row__content .section-title {
  text-align: left;
}

.about-row__content p {
  max-width: 574px;
  color: var(--color-dark);
  padding-bottom: 1rem;
}

/* About page: background video + two stacked image cards, content below */
.about-media {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.about-media__video {
  width: 50.5%;
  flex-shrink: 0;
  aspect-ratio: 29 / 37;
  overflow: hidden;
  border-radius: 8px;
}

.about-media__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-media__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-media__images > div {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex: 1;
}

.about-media__images > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.1;
}

.about-page-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4rem;
  width: 100%;
}

.about-page-content p {
  max-width: 574px;
  color: var(--color-dark);
  padding-bottom: 1rem;
}

/* ==========================================================================
   Service rows (services page) — alternating image/content
   ========================================================================== */
.service-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 2rem;
}

.hero--page + .service-section {
  padding-top: 8rem;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8rem;
  width: 100%;
}

.service-row--reverse {
  flex-direction: row-reverse;
}

.service-row__image {
  position: relative;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 1;
  border-radius: 8px;
}

.service-row__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.service-row__content .section-title {
  text-align: left;
}

.service-row__content p {
  max-width: 574px;
  color: var(--color-dark);
  padding-bottom: 1rem;
}

/* ==========================================================================
   Gallery grid + lightbox
   ========================================================================== */
/* Masonry: JS distributes items into .gallery-col columns (shortest first) */
.gallery-grid {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.gallery-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.gallery-grid a {
  position: relative;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-grid a:hover::after,
.gallery-grid a:focus::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .gallery-grid,
  .gallery-col {
    gap: 10px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.9);
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  line-height: 0;
}

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

.lightbox__prev img,
.lightbox__next img {
  width: 2rem;
}

/* ==========================================================================
   Testimonials — grey section, white quotes, stars below
   ========================================================================== */
.testimonials-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.slider {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider__viewport {
  display: grid;
  width: calc(75% - 40px);
  min-height: 150px;
}

.testimonial {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  visibility: hidden;
}

.testimonial.is-active {
  visibility: visible;
}

.testimonial blockquote {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  max-width: 808px;
  color: var(--color-white);
}

.testimonial .stars {
  padding-top: 2rem;
  width: 150px;
  box-sizing: content-box;
}

/* ==========================================================================
   Contact — "Get in Touch" + red rounded form card
   ========================================================================== */
.contact-row {
  display: flex;
  gap: 128px;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-grey);
  padding: 2rem 0 1rem;
  line-height: 1;
}

.contact-info__text {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-dark);
}

.contact-info ul {
  list-style: none;
  padding-top: 2rem;
}

.contact-info li:not(:first-child) {
  margin-top: 1rem;
}

.contact-info li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.3s;
}

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

.contact-info li img {
  width: 44px;
  height: 44px;
}

.contact-card {
  flex: 0 0 436px;
  max-width: 436px;
  background: var(--color-accent);
  border-radius: 24px;
  padding: 4rem 2rem;
}

.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-row > * {
  flex: 1;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-dark);
  background: var(--color-white);
  border: none;
  border-radius: 3px;
}

.contact-form input {
  height: 40px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-dark);
  opacity: 0.6;
}

.contact-form textarea {
  min-height: 94px;
  padding: 5px 14px;
  resize: vertical;
  display: block;
}

/* Honeypot — hidden from humans, bots fill it in */
.form-field--hp {
  position: absolute;
  left: -9999px;
}

#submit-button {
  display: block;
  width: 100%;
  max-width: 45%;
  margin-top: 2rem;
  margin-left: auto;
  background-color: var(--color-dark);
  color: var(--color-white);
  border-radius: 200px;
}

#submit-button:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.form-status {
  display: none;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--color-white);
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

/* ==========================================================================
   Footer — grey with logo/socials/menus + accent copyright strip
   ========================================================================== */
.site-footer {
  background: var(--color-grey);
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 0;
}

.site-footer__cols {
  display: flex;
  justify-content: flex-start;
  gap: 6rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand__logo {
  width: 101px;
  padding-bottom: 1rem;
}

.footer-brand__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-brand__social img {
  width: 2rem;
}

.footer-menu ul {
  list-style: none;
}

.footer-menu a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 20px;
  color: var(--color-white);
  transition: color 0.3s;
}

.footer-menu a:hover,
.footer-menu a[aria-current='page'] {
  color: var(--color-accent);
}

.site-footer__bottom {
  background: var(--color-accent);
  padding: 1rem 0;
}

.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__bottom p {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-grey);
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-grey);
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--color-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about-row {
    gap: 4rem;
  }

  .about-row__content {
    padding-top: 0;
  }

  .contact-row {
    gap: 64px;
  }

  .service-row {
    gap: 4rem;
  }

  .site-footer__cols {
    gap: 2rem;
  }

  .section--grey,
  #contact-section {
    padding: 4rem 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 1;
  }

  .header-main__inner {
    padding: 1rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-grey);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  .site-nav li,
  .site-nav li:not(:first-child),
  .site-nav li:not(:last-child) {
    margin: 0;
    text-align: center;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 767px) {
  /* Icon-only contact links; text is a bare text node so hide it via font-size */
  .header-top__link {
    font-size: 0;
    gap: 0;
    padding: 0.25rem;
  }

  .header-top__link img {
    width: 20px;
    height: 20px;
  }

  .hero {
    min-height: 0;
    padding: 4rem 1rem;
  }

  .hero__kicker {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 2rem;
    max-width: 20rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero--page + .service-section {
    padding-top: 4rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .carousel__slide {
    flex: 0 0 100%;
  }

  .carousel {
    padding: 0 32px;
  }

  .about-row,
  .about-media,
  .service-row,
  .service-row--reverse {
    flex-direction: column;
    gap: 2rem;
  }

  .about-row__image,
  .about-media__video,
  .service-row__image {
    width: 100%;
  }

  .about-row__content,
  .about-page-content {
    padding-top: 0;
  }

  .slider__viewport {
    width: calc(100% - 80px);
  }

  .contact-row {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info__title {
    font-size: 2rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row > * {
    margin-bottom: 2rem;
  }

  .form-row > *:last-child {
    margin-bottom: 0;
  }

  .form-row {
    margin-bottom: 2rem;
  }

  .site-footer__cols {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .site-footer__bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .carousel__slide {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}
