/*
Theme Name: Montview Tutor Editable
Theme URI: https://github.com/andronov5/tutor
Author: Lera Andronova
Description: Editable WordPress version of Montview Tutor. Includes a guided page and photo import. Use Appearance > Site setup, then Pages > Edit.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: montview-tutor-editable
*/
: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);
}

.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);
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: 0.93rem;
  font-weight: 800;
}

.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 */

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
}

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

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.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);
}

/* 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 {
  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;
}

/* 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: 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,
  .split,
  .booking-grid,
  .about-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

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


/* Better tutoring page layout */

.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;
}

@media (max-width: 780px) {
  .tutoring-hero-card {
    grid-template-columns: 1fr;
  }

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

/* Homepage Lis highlight section */

.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;
}

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

  .lis-highlight-photo img {
    max-height: 280px;
  }
}

/* Logo inside homepage hero */

.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;
}

@media (max-width: 780px) {
  .hero.hero-with-logo {
    grid-template-columns: 1fr;
  }

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

/* WordPress block compatibility: keep the original visual design. */
.wp-block-group { box-sizing:border-box; }
.wp-block-image { margin:0; }
.wp-block-image img { vertical-align:middle; }
.wp-block-group > * { max-width:100%; }
.lec-button { display:inline-flex; margin:0; }
.lec-button .wp-block-button__link { font-family:inherit; font-size:inherit; text-decoration:none; }
.button-row > .wp-block-button { flex-shrink:0; }
.price .lec-span, .price .lec-strong { margin:0; }
.price .lec-strong { line-height:1.2; }
.hero-logo-wrap .wp-block-image { width:100%; }
.lis-highlight-photo .wp-block-image { height:100%; }
.lis-highlight-photo .wp-block-image img { height:100%; width:100%; object-fit:cover; }
.photo-slot > .wp-block-image { position:absolute; inset:0; height:100%; width:100%; z-index:0; }
.photo-slot > .wp-block-image img { height:100%; width:100%; object-fit:cover; }
.photo-slot .photo-label { z-index:2; }
.portrait-card > .wp-block-image { height:100%; }
.portrait-card > .wp-block-image img { width:100%; height:100%; object-fit:cover; }
.lec-strong { margin-bottom:0; }
.lec-span { margin-top:0; }
.lec-inline { margin:0; }
.eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; display:inline-block; flex:0 0 auto; }
.card p.card-icon { color:var(--blue); margin:0 0 20px; }
.timeline-card p.date { color:var(--blue); margin:0 0 8px; }
.timeline-card p.org { margin:0 0 10px; }
p.timeline-dot, p.logo-pill, p.tag, p.stat, p.proof-item, p.mini-exp, p.float-card, p.portrait-caption { margin:0; }
p.step-number, p.card-icon, p.timeline-dot, p.check, p.contact-icon { margin-top:0; }
.lec-menu, .lec-footer-menu { list-style:none; padding:0; margin:0; display:contents; }
.lec-menu > li, .lec-footer-menu > li { display:contents; }
.lec-menu .sub-menu { list-style:none; padding:0; margin:0; }
.lec-menu a[aria-current=page] { font-weight:700; }
.skip-link { position:absolute; left:-9999px; top:8px; z-index:999999; }
.skip-link:focus { left:12px; padding:12px 18px; background:#fff; color:#111; }
.lec-form-status { border-left:4px solid #18835e; padding:14px; background:#edf8f2; color:#183e30; }
.lec-form-status.error { border-color:#a92323; background:#fff1f1; color:#6c1a1a; }
.lec-honey { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.lec-video { width:100%; height:100%; aspect-ratio:16/9; }
.lec-video iframe { width:100%; height:100%; border:0; }
body:not(.lec-animate) .reveal { opacity:1; transform:none; }
.lec-setup-placeholder { max-width:800px; margin:60px auto; padding:24px; }
body.admin-bar .site-header { top:32px; }
@media(max-width:782px) { body.admin-bar .site-header { top:46px; } }
@media(prefers-reduced-motion:reduce) { .reveal { opacity:1!important; transform:none!important; transition:none!important; } }
