/* Craft Design for Anapa 3D */
/* Warm, cozy, handmade aesthetic */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  /* Warm color palette */
  --color-cream: #FAF7F2;
  --color-sand: #F5EDE4;
  --color-warm-white: #FFFCF8;
  --color-text: #2D2A26;
  --color-text-light: #6B6560;
  --color-terracotta: #C17F59;
  --color-terracotta-dark: #A66B48;
  --color-olive: #4A6741;
  --color-olive-light: #6B8A5E;
  --color-border: #E5DED4;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Layout */
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
}

h4 { font-size: 20px; }

p {
  color: var(--color-text-light);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-terracotta-dark);
}

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

.container--narrow {
  max-width: 800px;
}

/* Section */
.section {
  padding: var(--space-xl) 0;
}

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

.section--dark {
  background: var(--color-text);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-cream);
}

.section--dark p {
  color: rgba(250, 247, 242, 0.7);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-text);
}

.header__nav {
  display: flex;
  gap: var(--space-md);
}

.header__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  padding: var(--space-xs) 0;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width 0.3s;
}

.header__link:hover {
  color: var(--color-text);
}

.header__link:hover::after {
  width: 100%;
}

/* Dropdown */
.header__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xs) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  list-style: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 100;
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-menu li a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-light);
  font-size: 14px;
  transition: all 0.2s;
}

.header__dropdown-menu li a:hover {
  background: var(--color-sand);
  color: var(--color-text);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__phone {
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background: var(--color-terracotta-dark);
  color: white;
  transform: translateY(-2px);
}

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

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

.btn--dark {
  background: var(--color-text);
  color: var(--color-cream);
}

.btn--dark:hover {
  background: #1a1815;
  color: var(--color-cream);
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.hero__content {
  padding: var(--space-xl) 0;
  flex: 1;
  max-width: 550px;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 450px;
  flex-shrink: 0;
}

.hero__image img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-sand);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-olive);
  border-radius: 50%;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 19px;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__image::after {
  display: none;
}

/* Section Header */
.section-header {
  margin-bottom: var(--space-lg);
}

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

.section-header__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  font-size: 18px;
  max-width: 600px;
}

.section-header--center .section-header__desc {
  margin: 0 auto;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-grid__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.process__item {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.process__number {
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--color-sand);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.process__title {
  margin-bottom: var(--space-xs);
}

.process__text {
  font-size: 15px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-grid__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

/* Large image */
.gallery-grid__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Materials */
.materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.material-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.material-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-4px);
}

.material-card--featured {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-cream);
}

.material-card--featured h4 {
  color: var(--color-cream);
}

.material-card--featured p {
  color: rgba(250, 247, 242, 0.7);
}

.material-card--featured .material-card__price {
  color: var(--color-terracotta);
}

.material-card__name {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: var(--space-xs);
}

.material-card__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}

.material-card__price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-light);
}

.material-card--featured .material-card__price span {
  color: rgba(250, 247, 242, 0.5);
}

.material-card__desc {
  font-size: 15px;
  margin-bottom: var(--space-md);
}

.material-card__features {
  list-style: none;
}

.material-card__features li {
  padding: var(--space-xs) 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.material-card--featured .material-card__features li {
  border-color: rgba(250, 247, 242, 0.1);
}

.material-card__features li:last-child {
  border-bottom: none;
}

.material-card__features li::before {
  content: '✓';
  color: var(--color-olive);
  font-weight: 700;
}

.material-card--featured .material-card__features li::before {
  color: var(--color-terracotta);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.testimonial-card__quote::before {
  content: '"';
  display: block;
  font-size: 48px;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__source {
  font-size: 14px;
  color: var(--color-text-light);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.cta__title {
  margin-bottom: var(--space-sm);
}

.cta__text {
  font-size: 18px;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  margin-bottom: var(--space-md);
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 15px;
  color: rgba(250, 247, 242, 0.6);
  max-width: 300px;
}

.footer__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.4);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  color: rgba(250, 247, 242, 0.8);
  font-size: 15px;
}

.footer__links a:hover {
  color: var(--color-terracotta);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.4);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  color: rgba(250, 247, 242, 0.6);
  font-size: 20px;
}

.footer__social a:hover {
  color: var(--color-terracotta);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__legal span:first-child {
  color: rgba(250, 247, 242, 0.4);
}

.footer__legal-divider {
  color: rgba(250, 247, 242, 0.2);
}

.footer__legal a {
  color: rgba(250, 247, 242, 0.4);
  font-size: 13px;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--color-terracotta);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FAF7F2;
  padding: var(--space-md);
  z-index: 99;
  overflow-y: auto;
  flex-direction: column;
  display: none;
}

.mobile-menu.active {
  display: flex !important;
}

.mobile-menu a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 18px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-4px);
}

/* Blog Card */
.blog-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-4px);
}

.blog-card__image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: var(--space-md);
}

.blog-card__date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.blog-card__title a {
  color: var(--color-text);
}

.blog-card__title a:hover {
  color: var(--color-terracotta);
}

.blog-card__excerpt {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
}

/* Article Content */
.article-content {
  font-size: 17px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.article-content li {
  margin-bottom: var(--space-xs);
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: var(--space-md) 0;
}

.article-content blockquote {
  border-left: 4px solid var(--color-terracotta);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    flex-direction: column-reverse;
    gap: var(--space-lg);
  }

  .hero__image {
    width: 100%;
    max-width: 300px;
  }

  .hero__image img {
    max-width: 250px;
  }

  .hero__content {
    padding: var(--space-lg) 0;
    text-align: center;
    max-width: 100%;
  }

  .hero__subtitle {
    margin: 0 auto var(--space-lg);
  }

  .hero__actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .process,
  .materials,
  .testimonials,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid__item--large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .cta__buttons {
    flex-direction: column;
  }
}
