/* Ruisranne Leipomo – staattinen sivusto */
@import url('https://fonts.googleapis.com/css2?family=Patua+One&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --brown: #5c3a21;
  --brown-dark: #3d2615;
  --cream: #faf6f1;
  --warm: #e8d9c5;
  --accent: #c4783a;
  --text: #2c2118;
  --muted: #6b5a4a;
  --font-display: "Patua One", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4,
.logo {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--brown-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: url('hero.png') center top / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  display: none; /* Logo ja teksti ovat jo kuvassa */
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-tagline {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 1.9rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.feature {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}

.feature-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.feature h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

/* About */
.about {
  background: #fff;
}

.about p {
  max-width: 780px;
  margin: 0 auto 1.1rem;
  color: var(--muted);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  color: var(--brown);
  font-size: 1.1rem;
  margin: 0.9rem 1.1rem 0.4rem;
}

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

/* Team */
.team {
  background: var(--warm);
}

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

.team-member {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.team-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--warm);
}

.team-member h3 {
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  background: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

blockquote {
  background: var(--cream);
  padding: 1.4rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

blockquote p {
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--text);
}

cite {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* Footer */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer strong {
  color: #fff;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Contact page extras */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.contact-card h3 {
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.contact-card p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.contact-card a {
  color: var(--accent);
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--brown-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 320px;
  }

  section {
    padding: 3rem 0;
  }
}
