/* ==========================================================================
   Hyvän Olon Hieronta — style.css
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --color-primary: #4a7c6f;
  --color-primary-dark: #3a6359;
  --color-primary-light: #e8f0ed;
  --color-accent: #c4956a;
  --color-accent-light: #f5ebe2;
  --color-text: #2d2d2d;
  --color-text-light: #5a5a5a;
  --color-white: #ffffff;
  --color-bg: #fafaf8;
  --color-border: #e0ddd8;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
}

h1 { font-size: 2.2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.7rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

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

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-logo:hover { color: var(--color-primary-dark); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--color-primary-dark); color: var(--color-white); }

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 3rem 0;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  margin-bottom: 0.5em;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 1.5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-primary:hover { background: #b5854e; color: var(--color-white); }

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

.btn-outline:hover { background: var(--color-white); color: var(--color-primary-dark); }

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

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

.section-title {
  text-align: center;
  margin-bottom: 0.4em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---------- Services Grid (front page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-alt .service-card {
  background: var(--color-bg);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card-body h3 {
  margin-bottom: 0.3em;
}

.service-card-body p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  margin-bottom: 0.5em;
}

.service-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* ---------- Why Choose Us ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-item {
  padding: 1.5rem 1rem;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-item h3 {
  margin-bottom: 0.4em;
}

.feature-item p {
  color: var(--color-text-light);
  font-size: 0.93rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.4em;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

/* ---------- Services Page (detail) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-detail-info h2 {
  margin-bottom: 0.3em;
}

.service-detail-info p {
  color: var(--color-text-light);
  margin-bottom: 1em;
}

.service-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-meta span {
  font-weight: 600;
  color: var(--color-primary);
}

.price-note {
  background: var(--color-accent-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 0.93rem;
  color: var(--color-text-light);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-block {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info-block h2 { margin-bottom: 1rem; }

.contact-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-row strong {
  min-width: 100px;
  color: var(--color-text);
}

.contact-row a { word-break: break-all; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:first-child {
  font-weight: 600;
  width: 40%;
}

.contact-image {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.contact-extra {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  font-size: 0.93rem;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 { color: var(--color-white); }
.page-header p { color: rgba(255,255,255,0.85); }

/* ---------- Privacy / Legal ---------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.legal-content ul {
  margin: 0.5em 0 1em 1.5em;
}

.legal-content li {
  margin-bottom: 0.3em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2a2a2a;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--color-white); }

.footer-col p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.social-links a:hover { color: var(--color-white); }

/* ---------- Payment icons ---------- */
.payment-methods {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.payment-badge {
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

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

  .nav-links li { width: 100%; }

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

  .nav-links a::after { display: none; }

  .nav-links .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
    border-bottom: none;
  }

  /* Hero */
  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.9rem; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Service detail */
  .service-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-detail.reverse { direction: ltr; }

  /* General */
  .section { padding: 2.5rem 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .btn { padding: 0.7rem 1.4rem; font-size: 0.95rem; }
  .service-card img { height: 180px; }
}
