/*
Theme Name: Monthein Official
Theme URI: https://monthein.com
Author: Monthein OÜ
Description: A lightweight official company website for Monthein OÜ.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: monthein
*/

:root {
  --paper: #f4f1e8;
  --paper-soft: #fbfaf5;
  --ink: #17362e;
  --ink-soft: #5d6c66;
  --line: rgba(23, 54, 46, 0.14);
  --accent: #b9c99d;
  --accent-deep: #7e9971;
  --white: #ffffff;
  --radius-lg: 30px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(23, 54, 46, 0.10);
  --content: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.site-nav { display: flex; gap: 30px; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 72px clamp(28px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(56px, 8vw, 102px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 62px);
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 390px;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-one {
  top: 8%;
  right: 4%;
  width: min(28vw, 320px);
  height: min(28vw, 320px);
  background: var(--ink);
}

.orb-two {
  right: 38%;
  bottom: 7%;
  width: min(17vw, 195px);
  height: min(17vw, 195px);
  background: var(--accent);
}

.orb-three {
  right: 3%;
  bottom: 2%;
  width: min(9vw, 105px);
  height: min(9vw, 105px);
  border: 2px solid var(--accent-deep);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 110px);
  padding: 130px 0;
}

.section-intro p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(160px, 1.25fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.details a { text-decoration-color: var(--accent-deep); text-underline-offset: 4px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.content-page {
  max-width: 780px;
  min-height: 65vh;
  padding: 90px 0 120px;
}

.content-page h1 { font-size: clamp(48px, 7vw, 78px); }
.content-page h2 { margin-top: 52px; font-size: 30px; }
.content-page p, .content-page li { color: var(--ink-soft); }

@media (max-width: 820px) {
  .site-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-art { min-height: 260px; }
  .orb-one { width: 230px; height: 230px; }
  .orb-two { width: 145px; height: 145px; }
  .orb-three { width: 75px; height: 75px; }
  .company-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-shell { width: min(calc(100% - 24px), var(--content)); }
  .site-header { min-height: 74px; }
  .site-nav a:first-child { display: none; }
  .hero { gap: 28px; padding: 52px 24px 28px; border-radius: 22px; }
  h1 { font-size: clamp(50px, 18vw, 70px); }
  .hero-copy { font-size: 17px; }
  .hero-art { min-height: 215px; }
  .orb-one { width: 185px; height: 185px; }
  .orb-two { right: 46%; width: 110px; height: 110px; }
  .orb-three { width: 60px; height: 60px; }
  .company-section { padding: 90px 4px; }
  .detail-row { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
