/*
Theme Name: Montview Tutor Static v3
Theme URI: https://github.com/andronov5/tutor
Author: Lera
Description: Direct static-code WordPress theme for Montview Tutor. Uses one router file so WordPress page templates cannot go blank.
Version: 3.0.0
Text Domain: montview-tutor-static-v3
*/

:root {
  --bg: #fbf7ef;
  --card: #fffdf8;
  --ink: #102033;
  --muted: #637083;
  --line: #e7ddcf;
  --teal: #0f7f75;
  --teal-dark: #0a5f58;
  --mint: #dff5f0;
  --cream: #f4ede3;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.header-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: #243247;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  background: var(--mint);
  color: var(--teal-dark);
}

.nav a.nav-button {
  background: var(--ink);
  color: white;
}

.nav a.nav-button:hover,
.nav a.nav-button.active {
  background: var(--teal);
  color: white;
}

/* GLOBAL */
main { min-height: calc(100vh - 150px); }

.page { padding: 56px 0 78px; }

.page-title {
  margin: 0 0 30px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

h1, h2, h3, p { margin-top: 0; }

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p { color: var(--muted); }
p:last-child { margin-bottom: 0; }

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 127, 117, 0.16);
}

.button:hover { background: var(--teal-dark); }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover { background: var(--white); }
.button.dark { background: var(--ink); }
.button.dark:hover { background: #26364d; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.simple-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* HOME */
.home { padding: 66px 0 76px; }

.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(15, 127, 117, 0.13), transparent 28%),
    linear-gradient(135deg, #fffdf8, #f7efe3);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(2rem, 6vw, 4.25rem);
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 700px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.steps { margin-top: 22px; }

.step-number {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* TUTORING */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 14px;
}

.price {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.price strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  display: flex;
  gap: 10px;
  color: #3a4658;
}

.clean-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.72rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.tutoring-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.tutoring-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tutoring-copy h2 { margin-bottom: 0.75rem; }
.tutoring-prices { margin: 20px 0 14px; }
.small-note { font-size: 0.98rem; }

.tutoring-image-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.tutoring-image-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.tutoring-image-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  background: var(--cream);
}

.tutoring-lists { margin-top: 18px; }

/* BOOK */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.booking-card { min-height: 100%; }

.confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  color: #263447;
  font-weight: 850;
  cursor: pointer;
}

.confirm-box input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.paid-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.booking-option {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.booking-option .button { margin-top: 12px; }
[hidden] { display: none !important; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

details {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  margin-right: 10px;
  color: var(--teal);
  font-weight: 900;
}

details[open] summary::before { content: "–"; }

details p {
  margin: 0;
  padding: 0 20px 20px 44px;
}

.cta {
  max-width: 880px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cta h2 { margin-bottom: 4px; }
.cta p { color: rgba(255, 255, 255, 0.75); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* HOME LIS */
.lis-highlight {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lis-highlight-photo { background: var(--cream); }

.lis-highlight-photo img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  object-position: center;
}

.lis-highlight-copy {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lis-highlight-copy h2 {
  max-width: 720px;
  margin-bottom: 0.8rem;
}

.lis-highlight-copy p { max-width: 760px; }

/* HERO LOGO */
.hero.hero-with-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy { min-width: 0; }

.hero-logo-wrap {
  justify-self: end;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bar span { color: var(--muted); }

/* MOBILE */
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 780px) {
  .header-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .nav { width: 100%; }
  .nav a { padding: 0.55rem 0.7rem; }
  .page { padding: 40px 0 64px; }
  .page-title { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .hero { border-radius: 26px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }

  .grid.two,
  .grid.three,
  .booking-grid,
  .about-grid,
  .price-grid,
  .tutoring-hero-card {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutoring-image-card img {
    min-height: 260px;
    max-height: 340px;
  }

  .hero.hero-with-logo {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    justify-self: start;
    width: 220px;
    margin-top: 10px;
  }
}

@media (max-width: 700px) {
  .lis-highlight { grid-template-columns: 1fr; }
  .lis-highlight-photo img { max-height: 280px; }
}
