/*
Theme Name: Tuition CRM
Theme URI: https://example.com/tuition-crm
Author: Tuition CRM
Description: A conversion-focused WordPress theme for tutoring centers, teachers, students, and parents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: tuition-crm
*/

:root {
  --color-ink: #112326;
  --color-muted: #5b6d70;
  --color-soft: #eef6f3;
  --color-panel: #ffffff;
  --color-line: #dce8e4;
  --color-brand: #0b6f68;
  --color-brand-dark: #074c48;
  --color-accent: #f0a33a;
  --color-success: #2c946a;
  --color-sky: #e6f3fb;
  --shadow: 0 18px 45px rgba(17, 35, 38, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 232, 228, 0.88);
  background: rgba(251, 253, 252, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-brand-dark);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--color-brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.button.secondary {
  border-color: var(--color-line);
  background: #fff;
  color: var(--color-brand-dark);
}

.button.ghost {
  border-color: rgba(11, 111, 104, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-brand-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #e9f4f0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 253, 252, 0.98) 0%, rgba(251, 253, 252, 0.88) 37%, rgba(251, 253, 252, 0.16) 72%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 78px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--color-brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: #41575a;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-actions,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  margin-top: 42px;
}

.stat {
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.stat span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--color-soft);
}

.section.sky {
  background: var(--color-sky);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head p,
.page-title p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  padding: 24px;
  box-shadow: 0 8px 22px rgba(17, 35, 38, 0.05);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.card p,
.card li {
  color: var(--color-muted);
}

.role-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
}

.role-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(11, 111, 104, 0.1);
  color: var(--color-brand-dark);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.feature-list li {
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.dashboard-preview {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--color-line);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-line);
}

.preview-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  align-items: center;
}

.preview-line,
.preview-pill,
.preview-block {
  border-radius: 7px;
  background: #e9f4f0;
}

.preview-line {
  height: 16px;
}

.preview-pill {
  height: 32px;
  background: rgba(240, 163, 58, 0.24);
}

.preview-block {
  height: 120px;
  background: linear-gradient(135deg, #e9f4f0, #d5ece7);
}

.page-hero {
  padding: 82px 0 56px;
  background: linear-gradient(180deg, #e9f4f0, #fbfdfc);
}

.page-title {
  width: var(--container);
  margin: 0 auto;
  max-width: 850px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.login-panel form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-ink);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

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

.price {
  font-size: 2.25rem;
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #0d2629;
  color: #d9e8e4;
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer a,
.site-footer p {
  color: #bed0cc;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav,
  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(251, 253, 252, 0.96) 0%, rgba(251, 253, 252, 0.82) 58%, rgba(251, 253, 252, 0.48) 100%);
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .grid.three,
  .grid.four,
  .pricing,
  .split,
  .login-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 24px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .button {
    width: 100%;
  }
}
