/* ===== Drik Family — сімейний бренд ===== */
:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-text: #2c2825;
  --color-text-muted: #5c5650;
  --color-accent: #b85c38;
  --color-accent-light: #d4a574;
  --color-border: #e5dfd6;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --space: 1.25rem;
  --container: min(90vw, 1100px);
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 92, 56, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin: 0 0 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #9a4a2d;
  border-color: #9a4a2d;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.section:nth-child(even) .about-card {
  background: #fff;
}

.about-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 8px 24px rgba(44, 40, 37, 0.06);
}

.about-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ----- Team ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.section:nth-child(odd) .team-card {
  background: #fff;
}

.team-card:hover {
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  padding: 1.25rem 1.25rem 0.25rem;
  color: var(--color-text);
}

.team-card p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Projects ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.section:nth-child(even) .project-card {
  background: #fff;
}

.project-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 12px 32px rgba(44, 40, 37, 0.08);
}

.project-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.project-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex: 1;
}

.project-link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.project-link:hover {
  color: #9a4a2d;
}

/* ----- Products ----- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.section:nth-child(odd) .product-card {
  background: #fff;
}

.product-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 8px 24px rgba(44, 40, 37, 0.06);
}

.product-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.product-card p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.product-link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.product-link:hover {
  color: #9a4a2d;
}

/* ----- Contact ----- */
.contact {
  background: linear-gradient(135deg, var(--color-text) 0%, #3d3632 100%);
  color: #f0ebe3;
}

.contact .section-label {
  color: var(--color-accent-light);
}

.contact .section-title,
.contact .section-desc {
  color: #f0ebe3;
}

.contact .section-desc {
  opacity: 0.85;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

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

.contact .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact .btn-outline {
  color: #f0ebe3;
  border-color: rgba(240, 235, 227, 0.4);
}

.contact .btn-outline:hover {
  border-color: #f0ebe3;
  color: #f0ebe3;
}

/* ----- Footer ----- */
.footer {
  padding: 3rem 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open a:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
