/* ============================================
   ArkiRakenteet Oy — mallisivusto
   ============================================ */

:root {
  --ink: #1a2229;
  --ink-soft: #46525c;
  --brand: #1e3832;
  --brand-deep: #142823;
  --accent: #c08a4e;
  --accent-soft: #e9d5bc;
  --paper: #f7f5f1;
  --white: #ffffff;
  --line: #e4dfd7;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(20, 32, 28, 0.10);
  --shadow-soft: 0 4px 18px rgba(20, 32, 28, 0.07);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}

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

.wrap {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 22px rgba(192, 138, 78, .38);
}
.btn-primary:hover { transform: translateY(-2px); background: #ad7a41; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark {
  background: var(--brand);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); background: var(--brand-deep); }

/* ---------- Yläpalkki ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
  padding: 1.1rem 0;
}
.site-header.solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(20, 32, 28, .08);
  padding: .7rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.02em;
  color: #fff;
  transition: color .3s ease;
}
.logo span { color: var(--accent); }
.site-header.solid .logo { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255, 255, 255, .92);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--accent); }
.site-header.solid .nav-links a { color: var(--ink-soft); }
.site-header.solid .nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: .6rem 1.4rem !important;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
}
.nav-cta:hover { background: #ad7a41; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: all .3s ease;
}
.site-header.solid .nav-toggle span, .site-header.open .nav-toggle span { background: var(--ink); }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(15, 27, 23, .88) 0%, rgba(20, 40, 35, .62) 55%, rgba(20, 40, 35, .30) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 9rem 0 6rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Osioiden yleistyyli ---------- */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 3.4rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--accent);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Palvelukortit ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section-alt .service-card { background: var(--paper); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
}
.service-icon svg {
  width: 27px;
  height: 27px;
}
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.service-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.service-link::after { content: "→"; transition: transform .2s ease; }
.service-card:hover .service-link::after { transform: translateX(4px); }
.service-card.card-cta {
  background: var(--brand);
  border-color: var(--brand);
  justify-content: center;
  align-items: flex-start;
}
.service-card.card-cta h3, .service-card.card-cta p { color: #fff; }
.service-card.card-cta p { color: rgba(255,255,255,.78); }

/* ---------- Yritys ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius);
  z-index: -1;
}
.about-card {
  position: absolute;
  left: -1.2rem;
  bottom: 1.6rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .9rem 1.3rem;
  font-family: var(--font-head);
}
.about-card strong { display: block; font-size: 1rem; color: var(--ink); }
.about-card small { color: var(--ink-soft); font-size: .8rem; }
.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.about-text > p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.cred-list {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: .75rem;
}
.cred-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink);
}
.cred-list li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Kokemukset ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-soft);
}
.stars { color: var(--accent); letter-spacing: .18em; margin-bottom: 1rem; font-size: .95rem; }
.quote-card blockquote {
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
}
.quote-card footer {
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Referenssit / galleria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.3rem .95rem;
  background: linear-gradient(transparent, rgba(15, 27, 23, .82));
  color: #fff;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
}

/* ---------- Yhteydenotto ---------- */
.contact-section {
  background:
    linear-gradient(rgba(20, 40, 35, .93), rgba(15, 27, 23, .96)),
    var(--contact-img);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.1rem;
}
.contact-info > p { color: rgba(255, 255, 255, .8); margin-bottom: 2rem; }
.contact-rows { display: grid; gap: 1.1rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-row .ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.contact-row a { font-weight: 600; }
.contact-row a:hover { color: var(--accent); }
.contact-row small { display: block; color: rgba(255, 255, 255, .6); font-size: .8rem; }
.service-area {
  margin-top: 2.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem;
  color: rgba(255, 255, 255, .82);
}
.service-area strong { color: var(--accent-soft); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  color: var(--ink);
}
.contact-form h3 { margin-bottom: 1.4rem; font-size: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease;
  width: 100%;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: .9rem; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: #e8f3ec;
  color: #1e5c38;
  font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .75);
  padding: 3.5rem 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .logo { color: #fff; font-size: 1.15rem; }
.footer-grid p { margin-top: .9rem; max-width: 34ch; }
.footer-grid h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  transition: background .2s ease;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
}
.socials a:hover { background: var(--accent); }

/* ---------- Palvelusivut ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--brand-deep), var(--brand));
  color: #fff;
  padding: 10rem 0 4.5rem;
}
.page-hero .eyebrow { color: var(--accent-soft); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em;
  max-width: 640px;
}
.page-hero p {
  margin-top: 1.2rem;
  max-width: 600px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}
.page-body { padding: 5rem 0; }
.page-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: start;
}
.page-content p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: 1.02rem; }
.page-content h3 { margin: 2rem 0 1rem; font-size: 1.3rem; }
.page-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; margin: 1.4rem 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent-soft);
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.page-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.4rem;
}
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.aside-card.dark {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.aside-card.dark h3 { color: #fff; }
.aside-card.dark p { color: rgba(255, 255, 255, .8); }
.aside-card h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.aside-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.aside-card ul { list-style: none; display: grid; gap: .6rem; font-size: .92rem; }
.aside-card ul a {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  padding: .35rem 0;
}
.aside-card ul a:hover { color: var(--accent); }
.aside-card ul a.active { color: var(--accent); font-weight: 600; }

/* ---------- Animaatiot ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsiivisuus ---------- */
@media (max-width: 960px) {
  .services-grid, .quotes-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .page-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-aside { position: static; }
}

@media (max-width: 680px) {
  .services-grid, .quotes-grid, .gallery-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 18px 30px rgba(20, 32, 28, .12);
    display: none;
    padding: .8rem 0;
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: .9rem 1.6rem;
    color: var(--ink) !important;
  }
  .nav-cta { margin: .6rem 1.6rem; border-radius: 10px; text-align: center; }
  .site-header.open { background: var(--white); }
  .site-header.open .logo { color: var(--ink); }
  .hero-content { padding-top: 7rem; }
  .section { padding: 4.5rem 0; }
  .contact-form { padding: 1.7rem; }
}
