:root {
  --green: #9fd077;
  --green-dark: #78b04f;
  --green-light: #d6efbb;
  --beige: #e8dcc8;
  --beige-mid: #d4c4a8;
  --beige-dark: #b5a080;
  --brown: #7a5c3e;
  --brown-light: #a07850;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #3a2e22;
  --text-light: #6b5a46;
  --nav-h: 130px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(90, 60, 20, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial;
  font-weight: 300;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--beige);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: 'Lilita One', cursive;
  font-size: 1.45rem;
  color: #000000;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--text);
  transition: background .18s, color .18s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--green-light);
  color: var(--brown);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  background: var(--white);
  border: 2px solid var(--beige);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 10;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text);
  border-radius: 8px;
  transition: background .15s;
}

.dropdown a:hover {
  background: var(--green-light);
  color: var(--brown);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: 2px solid var(--beige-mid);
  border-radius: 9px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobiili navigaatio */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  overflow-y: auto;
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  transition: background .15s;
}

.mobile-nav a:hover {
  background: var(--green-light);
}

.mobile-nav .sub {
  padding-left: 32px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-light);
}

.mobile-divider {
  height: 1px;
  background: var(--beige-mid);
  margin: 6px 0;
}

/* HERO */
.hero {
  position: relative;
  background-image: url('https://www.heihenriikkx.fi/ranch/images/hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 250px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 150px;
  }
}

/* SECTIONS */
.section {
  padding: 80px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 16px;
}

/* INTRO */
.intro {
  background: var(--white);
}

.intro-fullwidth {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-text-full p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.02rem;
  text-align: center;
}

.intro-text-full {
  text-align: left;
}

@media (min-width: 768px) {
  .intro-fullwidth {
    text-align: center;
  }
  .intro-text-full {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
  }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: .97rem;
  transition: transform .17s, box-shadow .17s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(120, 80, 50, 0.18);
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown);
  color: var(--brown);
  margin-left: 12px;
}

/* Eläin teaser */
.animals-teaser {
  background: linear-gradient(135deg, var(--beige) 0%, var(--green-light) 100%);
  border-radius: 24px;
  margin: 0 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.animals-teaser h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--brown);
  max-width: 400px;
}

.animals-teaser p {
  color: var(--text-light);
  max-width: 360px;
  margin-top: 12px;
}

.animals-icons {
  display: flex;
  gap: 14px;
  font-size: 48px;
  flex-wrap: wrap;
}

.animal-icon {
  width: 76px;
  height: 76px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(90, 60, 20, 0.12);
  transition: transform .2s;
}

.animal-icon:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* Palvelut */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--beige);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--green-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--brown);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .93rem;
  color: var(--text-light);
}

/* Callout */
.callout-section {
  background: linear-gradient(120deg, var(--green-light) 0%, var(--beige) 100%);
  padding: 60px 24px;
  text-align: center;
}

.callout-box {
  max-width: 900px;
  margin: 0 auto;
}

.callout-text {
  font-family: 'Lilita One', cursive;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--brown);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0;
}

/* FOOTER */
footer {
  background: var(--brown);
  color: var(--beige-mid);
  padding: 60px 24px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col h4 {
  font-family: 'Lilita One', cursive;
  font-size: 1.1rem;
  color: var(--green-light);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: var(--beige-mid);
  font-size: .92rem;
  transition: color .15s;
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-col address {
  font-style: normal;
  font-size: .92rem;
  line-height: 1.9;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--brown-light);
  font-size: .85rem;
  font-weight: 600;
  color: var(--beige-mid);
  transition: background .18s, border-color .18s, color .18s;
}

.social-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--brown);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .83rem;
  color: var(--beige-dark);
}

.footer-bottom a {
  color: var(--beige-mid);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--green);
}

/* RESPONSIIVISUUS */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .animals-teaser {
    padding: 40px 28px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .animals-teaser {
    margin: 0;
    border-radius: 0;
  }

  .section {
    padding: 56px 20px;
  }

  .callout-section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}