:root {
  --text: #111111;
  --accent: #b58b6a;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 18px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--nav-bg);
}

.logo {
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center; /* nappi keskelle */
  justify-content: center; /* pystykeskitys */
  text-align: center;
  gap: 1.5rem; /* väli otsikon ja napin väliin */
  padding: 2rem;
  color: #ffffff;
  text-shadow:
    0 4px 22px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(0, 0, 0, 0.45),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5rem); /* isompi kuin ennen */
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 4rem 1.5rem;
}

.section-intro strong {
  font-weight: 600;
}
.section-intro {
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center; /* keskittää kuvan pystysuunnassa */
}

.about-photo {
  max-width: 420px; /* tai 380–460px riippuen mausta */
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 auto;
}

.about-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.about-grid.reverse .about-text {
  order: 1;
}

.about-grid.reverse .about-image {
  order: 2;
}

.about-list {
  margin-top: 1rem;
  line-height: 1.6;
}
.about-list li {
  margin-bottom: 0.5rem;
}

/* SERVICES */
.services-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e4e0da;
  display: flex;
  flex-direction: column;
}

.service-meta {
  margin-top: auto;
}

/* CONTACT */
.contact-list {
  list-style: none;
  padding: 0;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #eee;
  padding: 2rem 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon svg {
  width: 26px;
  height: 26px;
  fill: #eee;
  transition: 0.25s ease;
}

.social-icon:hover svg {
  fill: var(--accent);
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 768px) {
  .about-grid,
  .about-grid.reverse {
    grid-template-columns: 1fr;
  }

  .about-grid.reverse .about-text {
    order: 1;
  }
  .about-grid.reverse .about-image {
    order: 2;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }
}
