/* ========================================
   ARBOR - Повністю перероблені стилі
======================================== */

/* Базові налаштування */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2D5016;
  --accent: #D4A574;
  --dark: #1A1A1A;
  --light: #FAFAFA;
  --gray: #6B6B6B;
  --border: #E5E5E5;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навігація */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo strong {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 900;
}

.logo span {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 400;
}

.desktop-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: relative;
  transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-nav {
  position: fixed;
  right: -100%;
  top: 0;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 5rem 2rem;
  transition: right 0.3s;
  z-index: 999;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* Hero секція */
.hero-section {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-button {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.secondary-button {
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.secondary-button:hover {
  background: var(--primary);
  color: white;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.floating-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.floating-card.delayed {
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-content {
  text-align: center;
}

.card-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.card-label {
  display: block;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Про нас */
.about-section {
  padding: 5rem 0;
  background: white;
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section-heading.centered {
  text-align: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feature-text span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Галерея */
.gallery-section {
  padding: 5rem 0;
  background: #F8F8F8;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item.vertical {
  grid-row: span 2;
}

.item-image {
  position: relative;
  height: 100%;
}

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

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.item-overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.item-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Матеріали */
.materials-section {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.materials-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.materials-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.material-badge img {
  border-radius: 8px;
  transition: transform 0.3s;
}

.material-badge:hover img {
  transform: scale(1.05);
}

/* Процес */
.process-section {
  padding: 5rem 0;
  background: white;
}

.timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-content p {
  color: var(--gray);
  line-height: 1.7;
}

/* Контакти */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #F8F8F8 0%, #EFEFEF 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--gray);
  font-size: 1.125rem;
  margin: 1rem 0 2rem;
  line-height: 1.8;
}

.contact-details {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-item {
  margin-bottom: 1.5rem;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-item span {
  color: var(--gray);
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.submit-button {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.submit-button:hover {
  background: #234012;
  transform: translateY(-2px);
}

/* Футер */
.footer {
  background: var(--dark);
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand strong {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* Адаптивність */
@media (max-width: 968px) {
  .desktop-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    flex-direction: column;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item.large {
    grid-column: span 1;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .primary-button,
  .secondary-button {
    width: 100%;
    text-align: center;
  }
  
  .materials-list {
    flex-direction: column;
    align-items: center;
  }
}