@import url("reset.css");
@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

/* Custom Font */
@font-face {
  font-family: 'Merriweather-VariableFont';
  src: url('../typo/Merriweather-VariableFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title,
.main__title,
.about__title,
.services__title {
  font-family: 'Merriweather-VariableFont', 'Inter', sans-serif;
  letter-spacing: 0.06em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  color: #303a4d;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

body.menu-open {
  overflow: hidden;
}

/* Container */
[class*="__container"] {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  [class*="__container"] {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  [class*="__container"] {
    padding: 0 2rem;
  }
}

/* Buttons */
.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #303a4d;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
}

@media (min-width: 768px) {
  .button {
    padding: 1rem 2.5rem;
  }
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Typography Utilities */
.title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.about__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
}

.about__text {
  max-width: 100%;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .about__text {
    max-width: 30rem;
  }
}

.about__text p:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* Wrapper */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: #ffffff;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  border-bottom: 1px solid #f0f0f0;
}

.top-bar__container {
  max-width: 74.624rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .top-bar__container {
    padding: 0 1.5rem;
  }
}

.top-bar__email {
  color: #006400;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-bar__phone {
  color: #006400;
  transition: color 0.3s;
  white-space: nowrap;
}

.top-bar__phone:hover,
.top-bar__phone:focus {
  color: #90EE90;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .top-bar__right {
    gap: 0.8rem;
  }
}

.top-bar__divider {
  color: #006400;
  font-weight: 300;
  display: none;
}

@media (min-width: 480px) {
  .top-bar__divider {
    display: inline;
  }
}

.top-bar__contact-link {
  color: #006400;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9rem);
}

@media (max-width: 479px) {
  .top-bar__contact-link {
    display: none;
  }
}

.top-bar__contact-link:hover,
.top-bar__contact-link:focus {
  color: #90EE90;
}

.top-bar__social {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}

.top-bar__social:hover,
.top-bar__social:focus {
  opacity: 0.7;
}

.top-bar__icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .top-bar__icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 2.3rem;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .header {
    top: 2rem;
  }
}

.header__container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  max-width: 74.624rem;
  margin: 0 auto;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header__container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 4rem;
  }
}

.header__logo {
  position: static;
  z-index: 2;
  color: #303a4d;
  margin: 0;
  justify-self: center;
  display: flex;
  align-items: center;
}

.header__logo img {
  max-height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo img {
    max-height: 70px;
  }
}

@media (min-width: 1024px) {
  .header__logo img {
    max-height: 80px;
  }
}

.logo {
  font-weight: 700;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
}

.header__navigation {
  display: flex;
  align-items: center;
}

.header__navigation--left {
  justify-content: flex-start;
}

.header__navigation--right {
  justify-content: flex-end;
}

/* Mobile Menu Toggle */
.menu__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .menu__toggle {
    display: none;
  }
}

.menu__hamburger,
.menu__hamburger::before,
.menu__hamburger::after {
  width: 1.5rem;
  height: 2px;
  background-color: #303a4d;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu__hamburger {
  position: relative;
  display: block;
}

.menu__hamburger::before,
.menu__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu__hamburger::before {
  top: -0.5rem;
}

.menu__hamburger::after {
  top: 0.5rem;
}

.menu__toggle.active .menu__hamburger {
  background-color: transparent;
}

.menu__toggle.active .menu__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu__toggle.active .menu__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Menu */
.menu {
  display: none;
}

@media (min-width: 768px) {
  .menu {
    display: block;
  }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 5rem;
  }

  .menu.active {
    right: 0;
    display: block;
  }

  .menu__body {
    padding: 2rem 1.5rem;
  }

  .menu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menu__item {
    border-bottom: 1px solid #f0f0f0;
  }

  .menu__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #303a4d;
    transition: color 0.3s;
  }

  .menu__link:hover,
  .menu__link:focus {
    color: #006400;
  }
}

/* Desktop Menu Styles */
@media (min-width: 768px) {
  .menu__body {
    display: flex;
    align-items: center;
  }

  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
  }

  .menu__link {
    font-weight: 600;
    position: relative;
    color: #303a4d;
    transition: color 0.3s;
    padding: 0.5rem 0;
  }

  .menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #006400;
    transition: width 0.3s ease;
  }

  .menu__link:hover::after,
  .menu__link:focus::after {
    width: 100%;
  }

  .menu__link:hover,
  .menu__link:focus {
    color: #006400;
  }
}

@media (min-width: 1024px) {
  .menu__list {
    gap: 2rem;
  }
}

/* ===== MAIN CONTENT ===== */
.page {
  flex: 1 1 auto;
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .page {
    padding-top: 7rem;
  }
}

.page__main {
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .page__main {
    padding-bottom: 3rem;
  }
}

/* Services Intro Section */
.main_services {
  background: none;
}

.main_pages {
  min-height: auto !important;
}

.main__container_services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .main__container_services {
    padding: 0 1.5rem;
  }
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 1rem;
}

@media (min-width: 768px) {
  .services-intro {
    gap: 3rem;
    padding: 5rem 0 2rem;
  }
}

@media (min-width: 968px) {
  .services-intro {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 0 3rem;
  }
}

.services-intro__content {
  max-width: 100%;
}

.services-intro__slider {
  width: 100%;
}

/* Before After Slider */
.before-after-slider {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image-before,
.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.image-after {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 100, 0, 0.5);
  z-index: 3;
  pointer-events: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 3px solid #006400;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .slider-button {
    width: 60px;
    height: 60px;
  }
}

.slider-button::before {
  content: '⟷';
  font-size: 20px;
  color: #006400;
  font-weight: bold;
}

@media (min-width: 768px) {
  .slider-button::before {
    font-size: 24px;
  }
}

/* Slider Labels */
.slider-label {
  position: absolute;
  top: 12px;
  padding: 6px 14px;
  background: rgba(0, 100, 0, 0.85);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  z-index: 4;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .slider-label {
    top: 16px;
    padding: 8px 16px;
    font-size: 1rem;
  }
}

.slider-label-before {
  left: 12px;
}

@media (min-width: 768px) {
  .slider-label-before {
    left: 16px;
  }
}

.slider-label-after {
  right: 12px;
}

@media (min-width: 768px) {
  .slider-label-after {
    right: 16px;
  }
}

/* Services List */
.services-accordion {
  padding: 2rem 0;
  background: #f9f9f9;
}

.services-list {
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.service-item:hover {
  box-shadow: 0 4px 12px rgba(0, 100, 0, 0.15);
}

.service-title {
  padding: 1rem 1.25rem;
  background: #f0f9f0;
  border-left: 4px solid #006400;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 600;
  color: #303a4d;
  margin: 0;
  font-family: 'Merriweather-VariableFont', 'Inter', sans-serif;
}

@media (min-width: 768px) {
  .service-title {
    padding: 1.25rem 1.875rem;
  }
}

.service-content {
  padding: 1.5rem 1.25rem;
  background: #ffffff;
}

@media (min-width: 768px) {
  .service-content {
    padding: 1.875rem;
  }
}

@media (min-width: 768px) {
  .services-accordion {
    padding: 3rem 0;
  }
}

.services-accordion__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

@media (min-width: 768px) {
  .services-accordion__container {
    padding: 0 1.5rem 5rem;
  }
}

.services-accordion__main-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #303a4d;
}

@media (min-width: 768px) {
  .services-accordion__main-title {
    margin-bottom: 3.5rem;
  }
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion__item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.accordion__item:hover {
  box-shadow: 0 4px 12px rgba(0, 100, 0, 0.15);
}

.accordion__button {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  text-align: left;
}

@media (min-width: 768px) {
  .accordion__button {
    padding: 1.25rem 1.875rem;
  }
}

.accordion__button:hover {
  background: #f0f9f0;
  border-left-color: #006400;
  transform: translateX(5px);
}

.accordion__button:hover .accordion__title {
  color: #006400;
}

.accordion__button:hover .accordion__icon {
  transform: scale(1.2);
}

.accordion__item.active .accordion__button {
  background: #006400;
  color: #ffffff;
  border-left-color: #90EE90;
  transform: none;
}

.accordion__item.active .accordion__button:hover {
  background: #005500;
  transform: none;
}

.accordion__title {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 600;
  color: #303a4d;
  text-align: left;
}

.accordion__item.active .accordion__title {
  color: #ffffff;
}

.accordion__icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #006400;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
  flex-shrink: 0;
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg);
  color: #ffffff;
}

.accordion__item.active .accordion__button:hover .accordion__icon {
  transform: rotate(45deg) scale(1.1);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.25rem;
  background: #ffffff;
}

@media (min-width: 768px) {
  .accordion__content {
    padding: 0 1.875rem;
  }
}

.accordion__item.active .accordion__content {
  padding: 1.5rem 1.25rem;
  max-height: 2000px;
}

@media (min-width: 768px) {
  .accordion__item.active .accordion__content {
    padding: 1.875rem;
  }
}

/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery img {
    height: 250px;
  }
}

.gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 40px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10000;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
}

@media (min-width: 768px) {
  .lightbox__close {
    top: 20px;
    right: 40px;
    font-size: 50px;
  }
}

.lightbox__close:hover {
  color: #90EE90;
  transform: rotate(90deg);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #ffffff;
  background: rgba(0, 100, 0, 0.7);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  transition: background 0.3s;
  z-index: 10000;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .lightbox__prev,
  .lightbox__next {
    font-size: 40px;
    padding: 15px 20px;
  }
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(0, 100, 0, 0.9);
}

.lightbox__prev {
  left: 10px;
}

@media (min-width: 768px) {
  .lightbox__prev {
    left: 20px;
  }
}

.lightbox__next {
  right: 10px;
}

@media (min-width: 768px) {
  .lightbox__next {
    right: 20px;
  }
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 16px;
  background: rgba(0, 100, 0, 0.8);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 10000;
}

@media (min-width: 768px) {
  .lightbox__counter {
    bottom: 30px;
    font-size: 18px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #303a4d;
  padding: 2rem 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  max-width: 74.624rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0 1.5rem;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  max-height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .footer__logo img {
    max-height: 60px;
  }
}

.footer__copyright {
  color: #fff;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #606d45;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .top-bar,
  .header,
  .menu__toggle,
  .footer,
  .lightbox {
    display: none;
  }

  .page {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
