/* Wood Keyboards – styles.css */

:root {
  --walnut: #6e4b2a;
  --walnut-dark: #4b2e16;
  --ivory: #f8f5ee;
  --soft-gray: #e5e3df;
  --muted-beige: #d6c7b0;
  --text-dark: #3a2c1a;
  --shadow: 0 4px 24px 0 rgba(110, 75, 42, 0.10);
  --radius: 18px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Montserrat', 'Playfair Display', serif, sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

section {
  padding: 3.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--walnut-dark);
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
}

p, label, .desc {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  padding: 0;
  position: relative;
  min-height: 60vh;
  background: var(--walnut);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--walnut);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05) saturate(1.1);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(110,75,42,0.45) 0%, rgba(110,75,42,0.15) 100%);
  color: var(--ivory);
  text-align: center;
  padding: 2rem;
}
.hero-overlay h1 {
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(78, 54, 30, 0.18);
  margin-bottom: 1.5rem;
}

.cta-btn {
  background: var(--muted-beige);
  color: var(--walnut-dark);
  border: none;
  border-radius: var(--radius);
  padding: 0.85em 2.2em;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(110, 75, 42, 0.10);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--walnut-dark);
  color: var(--ivory);
  box-shadow: 0 4px 24px 0 rgba(110, 75, 42, 0.18);
}
.cta-btn.big {
  font-size: 1.3rem;
  padding: 1em 2.8em;
  margin-top: 1.2rem;
}

/* Intro */
.intro {
  background: var(--soft-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2rem;
  font-size: 1.15rem;
}

/* About */
.about {
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

/* Gallery */
.gallery {
  background: var(--soft-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
}
.gallery-slider {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
}
.slide {
  min-width: 220px;
  max-width: 260px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(110, 75, 42, 0.10);
  background: var(--ivory);
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
}
.slide img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: brightness(0.97) contrast(1.04) saturate(1.08);
}
.gallery-caption {
  text-align: center;
  font-style: italic;
  color: var(--walnut);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Process */
.process {
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 120px;
  min-width: 120px;
  max-width: 200px;
  background: var(--soft-gray);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(110, 75, 42, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0.7rem;
  margin: 0.5rem 0;
}
.icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}
.desc {
  text-align: center;
  font-size: 1rem;
}

/* Call to Action */
.cta {
  background: var(--walnut);
  color: var(--ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2.5rem 1.5rem;
}
.cta h2 {
  color: var(--ivory);
}

/* Contact */
.contact {
  background: var(--soft-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.form-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}
label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}
input, textarea {
  border: 1.5px solid var(--muted-beige);
  border-radius: var(--radius);
  padding: 0.7em 1em;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  transition: border var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px 0 rgba(110, 75, 42, 0.04);
}
input:focus, textarea:focus {
  border: 1.5px solid var(--walnut);
  outline: none;
  box-shadow: 0 2px 12px 0 rgba(110, 75, 42, 0.10);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.contact-info {
  font-size: 1rem;
  color: var(--walnut-dark);
  margin-top: 0.5rem;
}
.contact-info a {
  color: var(--walnut-dark);
  text-decoration: underline;
  transition: color var(--transition);
}
.contact-info a:hover {
  color: var(--walnut);
}
.social-icon {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--walnut-dark);
  transition: color var(--transition);
  vertical-align: middle;
}
.social-icon:hover {
  color: var(--walnut);
}

/* Wood Texture Accent (subtle) */
.hero, .about, .gallery, .process, .cta, .contact {
  background-image: url('images/wood-texture.png');
  background-size: cover;
  background-blend-mode: lighten;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.98;
}

/* Responsive Design */
@media (max-width: 700px) {
  section {
    padding: 2rem 0.5rem;
  }
  .hero-image {
    height: 38vh;
    min-height: 180px;
  }
  .gallery-slider {
    gap: 0.7rem;
  }
  .slide {
    min-width: 220px;
    max-width: 260px;
  }
  .process-steps {
    flex-direction: column;
    gap: 0.7rem;
  }
  .cta-btn.big {
    font-size: 1.1rem;
    padding: 0.8em 1.5em;
  }
  .contact-form {
    flex-direction: column;
    gap: 0.7rem;
  }
}

/* Smooth transitions */
section, .cta-btn, input, textarea, .slide, .step {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border var(--transition);
}
