@import url("https://fonts.googleapis.com/css2?family=Lora:ital@0;1&family=Open+Sans:wght@300..800&display=swap");

:root {
  --background-color: #ffffff;
  --text-color: #2e2e33;
  --accent-color: #8c7a66;
  --accent-hover: #afa294;
  --button-bg: #ffffff;
  --light-text-color: #ffffff;
  --font-heading: "Open Sans", sans-serif;
  --font-body: "Lora", serif;
  /* Space used to separate header controls at large widths */
  --header-gap: clamp(1rem, 8vw, 7rem);
}

html[data-theme="dark"] {
  --background-color: #272727;
  --text-color: #ffffff;
  --accent-color: #c7b299;
  --accent-hover: #c7b299;
  --button-bg: transparent;
  --light-text-color: #faf7ec;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 300;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

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

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

body {
  overflow-x: hidden;
}

/* Header */
#main-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  z-index: 1000;
  transition: transform 0.3s ease;
}
#main-header.hide {
  transform: translateY(-100%);
}
#main-header .hamburger,
#main-header #lang-toggle {
  position: static;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#main-header .hamburger {
  margin-left: var(--header-gap);
}
#main-header #lang-toggle {
  margin-right: var(--header-gap);
}

html[data-theme="dark"] #main-header .hamburger,
html[data-theme="dark"] #main-header #lang-toggle {
  color: var(--accent-color);
}
#main-header .logo {
  height: 85px;
  transition: opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
}
.about-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 7rem;
}

.services-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 4rem;
  height: 60vh;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  margin-top: 1rem;
  z-index: 2;
}

.hero-tagline {
  font-variant: small-caps;
  letter-spacing: 2px;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.hero-content h1 {
  font-size: 2rem;
  color: var(--light-text-color);
  margin-bottom: 0.5rem;
}

.about-hero h1 {
  margin-bottom: 2rem;
}

.hero-content .subtitle {
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--button-bg);
  color: var(--accent-color);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 300;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.cta-button:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

#screen-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}
#screen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay menu */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 80vw;
  max-width: 400px;
  background: var(--background-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1100;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
#menu-overlay .top-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
#menu-overlay.open {
  transform: translateX(0);
  opacity: 1;
}
#menu-overlay .close-btn,
#menu-overlay #overlay-lang-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#menu-overlay .close-btn {
  left: 0;
}
#menu-overlay #overlay-lang-toggle {
  right: 0;
}

html[data-theme="dark"] #menu-overlay .close-btn,
html[data-theme="dark"] #menu-overlay #overlay-lang-toggle,
html[data-theme="dark"] #menu-overlay #theme-toggle {
  color: var(--accent-color);
}
#menu-overlay .logo {
  width: 150px;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}
#menu-overlay .nav-links {
  list-style: none;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}
#menu-overlay .nav-links a {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-size: 1.25rem;
}

#menu-overlay .nav-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
#menu-overlay .nav-bottom a,
#menu-overlay .nav-bottom button {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}
#menu-overlay .nav-bottom button:hover,
#menu-overlay .nav-bottom a:hover {
  color: var(--accent-hover);
}


/* Content Blocks */
.info-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  min-height: auto;
}

.info-block .block-image,
.info-block .text-frame {
  flex: 1 1 50%;
}

.block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fixed square frame for info-block images */
.image-frame {
  width: 100%;
  max-width: 588px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.image-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.5s ease;
  will-change: transform;
}

img[data-theme-light],
img[data-theme-dark] {
  transition: opacity 0.5s ease;
}

/* Fixed square frame for text blocks */
.text-frame {
  width: 100%;
  max-width: 588px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.text-frame .block-text {
  transition: transform 0.3s ease;
  will-change: transform;
}

.block-text {
  padding: 3rem;
}

.block-text h2 {
  margin-bottom: 1rem;
}

.block-text p {
  margin-bottom: 1.5rem;
}

.block-services {
  flex-direction: row-reverse;
}


@media (max-width: 768px) {
  .info-block {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .info-block .block-image,
  .info-block .text-frame {
    flex: 1 1 100%;
    padding: 2rem;
  }

  .info-block .block-image {
    order: 1;
  }

  .info-block .text-frame {
    order: 2;
  }

  .block-services {
    flex-direction: column;
  }
}

.center-text-section {
  padding: 3rem 8vw;
  text-align: center;
}

.center-text-section p {
  max-width: 600px;
  margin: 0 auto;
}


.centered-text-section {
  max-width: 900px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1rem;
  color: var(--text-color);
}

.centered-text-section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.centered-text-section h2 {
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.centered-text-section .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Portfolio Block */
.portfolio-block {
  position: relative;
}
.portfolio-block img {
  width: 100%;
  display: block;
}
.portfolio-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 300px;
}
.portfolio-text h2 {
  margin-bottom: 0.5rem;
}
.portfolio-text p {
  margin-bottom: 1rem;
}

/* Company Policies Block */
.company-policies {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.company-policies .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
}


.company-policies-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.company-policies-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.company-policies-text {
  position: relative;
  z-index: 2;
  max-width: 300px;
  margin-left: 5%;
  color: var(--light-text-color);
}
.company-policies-text h2 {
  color: #ffffff;
}

@media (max-width: 768px) {
  .company-policies {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .company-policies-image {
    position: absolute;
    inset: 0;
  }
  .company-policies-text {
    margin: 0 auto;
  }
}

.full-width-image img {
  width: 100%;
  display: block;
}
.full-width-image {
  margin: 4rem 0;
}

/* Divider above footer */
.footer-divider {
  width: 80%;
  margin: 0 auto;
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.3;
}

/* Footer */
footer {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 4rem 2rem;
  text-align: center;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}
footer .logo {
  width: 150px;
  margin: 0 auto 1rem;
  display: block;
  transition: opacity 0.3s ease;
}
footer .footer-contact {
  margin-bottom: 1rem;
  line-height: 1.4;
}
footer .social-links a {
  margin: 0 0.5rem;
  color: var(--accent-color);
}

html {
  font-size: 18px;
}

.cta-button {
  border: 1px solid var(--accent-color);
}
section.info-block {
  padding-inline: clamp(2rem, 8vw, 1rem);
  margin: 4rem auto;
  max-width: 1200px;
}
section.portfolio-block {
  margin-block: 4rem;
  padding-inline: 0;
}
/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}
.parallax.visible {
  transform: scale(1.05);
}
/* Portfolio Page */
.portfolio-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  animation: heroZoom 20s ease-out forwards;
}

#portfolio-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 1px,
    transparent 2px
  );
  background-size: 4px 4px;
  animation: shimmer 15s linear infinite;
  opacity: 0.15;
}

@keyframes heroZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

@keyframes shimmer {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}

/* Portfolio Slider */
.portfolio-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.slider-wrapper {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  padding-inline: 2rem;
}

.slider-wrapper .slide {
  flex: 0 0 70%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(4px) brightness(0.7);
  transform: scale(0.95);
  transition:
    opacity 0.6s ease,
    filter 0.5s ease,
    transform 0.6s ease;
}

.slider-wrapper .slide.loaded {
  opacity: 0.5;
}

.slider-wrapper .slide.active {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
  z-index: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}
.slider-btn.prev {
  left: 1rem;
}
.slider-btn.next {
  right: 1rem;
}


@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
  .portfolio-slider {
    height: 50vh;
  }
}

/* Reviews Page */
.reviews-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 4rem;
  height: 65vh;
}

.testimonials {
  padding-inline: 16vw;
  margin-block: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.testimonial {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.testimonial img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial:hover {
  transform: translateY(-4px);
}

.testimonial:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.testimonial-text h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .testimonial,
  .testimonial:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
}

/* FAQ Page */
.faq-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 4rem;
  height: 55vh;
}

.faq-container {
  padding: 4rem 16vw;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-group {
  border-bottom: 1px solid #ddd;
}

.faq-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-header:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.faq-header .arrow {
  transition: transform 0.3s ease;
}

.faq-header[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-panel.open {
  max-height: 1000px;
  padding-bottom: 1rem;
}

.faq-panel .question h3 {
  margin: 1rem 0 0.5rem;
}

.faq-panel .question p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .faq-container {
    padding: 2rem;
  }
}

/* Contact Page */
.contact-hero {
  height: 40vh;
  padding-bottom: 1.5rem;
  background: none;
}

.contact-form-section {
  padding: 2rem 12vw 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-color);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 4px;
  background-color: var(--background-color);
  color: var(--text-color);
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-hover);
}

/* Company Policies */
.policies-hero {
  background-image: url("../assets/images/hero.jpg");
  align-items: flex-end;
  padding-bottom: 4rem;
  height: 55vh;
}

.policy-list {
  list-style: none;
  padding-left: 0;
}

.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Language toast */
.lang-toast {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--background-color);
  color: var(--text-color);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1200;
}
.lang-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Theme selection popup */
#theme-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--background-color);
  color: var(--text-color);
  padding: 2rem 2.5rem;
  text-align: center;
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#theme-popup.active {
  opacity: 1;
  visibility: visible;
}

#theme-popup h2 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

#theme-popup .options {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.theme-option {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-option.light {
  background: #ffffff;
}

.theme-option.dark {
  background: #272727;
}

.theme-option.light:hover {
  background: #eeeeee;
  transform: translateY(-6px);
}

.theme-option.dark:hover {
  background: #3a3a3a;
  transform: translateY(-6px);
}
#theme-popup.fade-out {
  opacity: 0;
}

#theme-popup .skip-btn {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#theme-popup .skip-btn:hover {
  opacity: 1;
}

/* Thank You Modal */
#thank-you-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1300;
}

html[data-theme='dark'] #thank-you-overlay {
  background: rgba(255, 255, 255, 0.6);
}

#thank-you-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.thank-you-modal {
  background: var(--background-color);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
  width: 420px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#thank-you-overlay.active .thank-you-modal {
  transform: scale(1);
  opacity: 1;
}

.thank-you-modal .close-modal {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-color);
  cursor: pointer;
}

/* ---------------------------------- */
/* Mobile Responsive Adjustments      */
/* ---------------------------------- */
@media (max-width: 768px) {
  /* Navbar / Menu */
  #menu-overlay .nav-links a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
  }

  /* Hero Sections */
  .hero {
    min-height: 60vh;
    padding: 4rem 1rem;
    background-attachment: scroll;
  }
  .about-hero,
  .services-hero,
  .policies-hero,
  .reviews-hero,
  .portfolio-hero,
  .faq-hero,
  .contact-hero {
    height: 50vh;
    padding-bottom: 2rem;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .cta-button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  /* Centered text section */
  .centered-text-section {
    max-width: 90%;
    padding: 2rem 1rem;
    margin: 3rem auto;
  }

  /* Info Blocks */
  .info-block {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .image-frame,
  .text-frame {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
  }
  .image-frame img {
    position: static;
    width: 100%;
    height: auto;
  }
  .block-text {
    padding: 2rem;
  }
  .block-text h2 {
    font-size: 1.5rem;
  }
    .block-text p {
      font-size: 1rem;
    }

    .info-block .block-image {
      order: 1;
    }

    .info-block .text-frame {
      order: 2;
    }

    /* Company Policies */
    .company-policies-text {
      padding: 2rem 1rem;
    }

  /* Reduce side padding on smaller screens */
  section.info-block,
  .testimonials,
  .faq-container,
  .contact-form-section {
    padding-inline: 8vw;
  }

  /* Contact Form */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
  .contact-form textarea {
    height: 150px;
  }
  .contact-form button[type="submit"] {
    align-self: flex-end;
    width: auto;
  }

}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .cta-button {
    padding: 0.5rem 1rem;
  }
}
