/* Taloushallinto Cedro */

:root {
  --navy: #1E3356;
  --navy-deep: #0F1D33;
  --green: #3A7D34;
  --green-muted: #4E8A47;
  --warm-white: #FEFDFB;
  --sand: #F4F1EC;
  --border: #E0DCD5;
  --text: #2C2C2C;
  --text-secondary: #555;
  --text-muted: #6B6B6B;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 4px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* =====================
   Navigation
   ===================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(254,253,251,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand { display: flex; align-items: center; }

.nav-logo-img {
  height: 48px;
  width: auto;
}

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

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 480;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}

.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); transition: 0.2s;
}

/* =====================
   Hero
   ===================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,29,51,0.82) 0%,
    rgba(15,29,51,0.72) 60%,
    rgba(15,29,51,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  margin: 0 auto 2.2rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  transition: all 0.25s;
}

.hero-cta:hover {
  background: var(--green);
  color: #fff;
}

.hero-cta-ghost {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  transition: all 0.25s;
}

.hero-cta-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* =====================
   Section common
   ===================== */

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 0.6rem;
}

section h2 {
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

/* =====================
   About
   ===================== */

.about {
  padding: 5.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.about-left h2 {
  font-size: 1.7rem;
  margin-bottom: 0;
  max-width: 320px;
}

.about-right p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.about-right p:last-child {
  margin-bottom: 0;
}

/* =====================
   Services
   ===================== */

.services {
  padding: 5rem 0;
  background: var(--sand);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services .section-label {
  text-align: center;
}

.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  align-items: start;
}

.services-list {
  list-style: none;
}

.services-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  padding-left: 1.2rem;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.services-list li:last-child {
  border-bottom: none;
}

/* =====================
   Accent band / Quote
   ===================== */

.accent-band {
  padding: 4rem 0;
  background: var(--navy-deep);
  text-align: center;
}

.accent-band blockquote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
}

/* =====================
   Staff
   ===================== */

.staff {
  padding: 5rem 0;
}

.staff h2 {
  margin-bottom: 2.5rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.staff-person {
  padding: 1.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Odd children (1st, 3rd) are in col 1 → right border as divider */
.staff-person:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.staff-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.staff-role {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.staff-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.staff-contact a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.staff-contact a:hover {
  color: var(--green);
}

/* =====================
   Contact
   ===================== */

.contact {
  padding: 5rem 0;
  background: var(--sand);
}

.contact h2 {
  text-align: center;
}

.contact .section-label {
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-block p,
.contact-block a {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.contact-block a:hover {
  color: var(--green);
}

.contact-map {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================
   Links
   ===================== */

.links-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.links-section .section-label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.links-grid a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0.3rem 0;
}

.links-grid a:hover {
  color: var(--green);
}

/* =====================
   Footer
   ===================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  background: var(--navy-deep);
}

.footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

.footer a {
  color: rgba(255,255,255,0.78);
}

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

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }

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

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }

  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }

  .hero { padding: 8rem 0 4rem; min-height: 420px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-left h2 { max-width: 100%; }

  .services-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-person {
    border-right: none !important;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map {
    aspect-ratio: 16 / 10;
  }

  .accent-band blockquote {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container, .nav-inner { padding: 0 1.25rem; }
  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.7rem; }
  .about, .services, .staff, .contact { padding: 3.5rem 0; }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Print */
@media print {
  .nav, .contact-map, .nav-toggle, .links-section { display: none; }
  body { font-size: 11pt; color: #000; }
  section, .about, .services, .staff, .contact { padding: 1.5rem 0; }
}
