/* -------------------------------------------------------
   Mentörüm Yanımda — Global Theme (Light-first)
   Bootstrap 5 compatible, structure-safe
-------------------------------------------------------- */

/* ---------- Brand Tokens ---------- */
:root{
  --brand-accent: #162F52;
  --brand-accent-2: #0f223d; /* a darker shade for hover; adjust if you want */
  

  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 6px 16px rgba(0,0,0,.08);
  --shadow-md: 0 14px 40px rgba(0,0,0,.14);

  --focus-ring: 0 0 0 .25rem rgba(22,47,82,.25);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ---------- Light Theme (Default) ---------- */
body[data-theme="light"]{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15,23,42,.12);

  --nav-bg: rgba(255,255,255,.88);
  --nav-border: rgba(15,23,42,.12);

  --input-bg: #ffffff;
  --input-border: rgba(15,23,42,.18);
}

/* ---------- Dark Theme (Session only) ---------- */
body[data-theme="dark"]{
  --bg: #0f172a;
  --surface: #111c33;
  --text: #e5e7eb;
  --text-muted: #a7b3c6;
  --border: rgba(148,163,184,.25);

  --nav-bg: rgba(17,28,51,.8);
  --nav-border: rgba(148,163,184,.25);

  --input-bg: rgba(17,28,51,.7);
  --input-border: rgba(148,163,184,.3);
}

/* ---------- Base ---------- */
html, body{ height:100%; }
body{
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--brand-accent); }
a:hover{ color: var(--brand-accent-2); }

/* ---------- Navbar ---------- */
.navbar.app-navbar{
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(10px);
  min-height: 72px;
}

.navbar.app-navbar .container{
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
}

.navbar.app-navbar .navbar-brand,
.navbar.app-navbar .nav-link{
  color: var(--text) !important;
}

.navbar.app-navbar .nav-link:hover{
  color: var(--brand-accent) !important;
}

/* ---------- Logo ---------- */
.app-logo{
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 576px){
  .app-logo{ height: 40px; }
}

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.form-control, .form-select{
  background: var(--input-bg);
  border-color: var(--input-border);
  border-radius: var(--radius-md);
}

.form-control:focus, .form-select:focus{
  box-shadow: var(--focus-ring);
  border-color: var(--brand-accent);
}

/* ---------- Dropdown ---------- */
.dropdown-menu{
  background: var(--surface);
  border-radius: var(--radius-md);
  border-color: var(--border);
}

/* ---------- Footer ---------- */
footer{
  color: var(--text-muted);
}

footer a{
  color: var(--brand-accent) !important;
  text-decoration: none;
}
footer a:hover{
  color: var(--brand-accent-2) !important;
  text-decoration: underline;
}
/* --- Navbar CTA sizing (layout.html only) --- */
body[data-theme="light"] .navbar.app-navbar .btn{
  padding: .35rem .85rem;   /* smaller than default */
  font-size: .9rem;
  line-height: 1.2;
}

/* Slightly reduce weight so logo stays dominant */
body[data-theme="light"] .navbar.app-navbar .btn{
  font-weight: 500;
}
/* =========================
   Home v2 - Base
========================= */

#homepage .container {
  max-width: 1100px; /* tighter than full bootstrap for cleaner reading */
}

/* Section spacing */
#homepage section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  #homepage section {
    padding: 56px 0;
  }
}

/* Titles */
#homepage .section-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

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

.section-hero {
  padding: 92px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.0rem, 1.4rem + 2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch; /* forces strong line breaks */
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  margin: 0;
  max-width: 52ch;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-actions .link-secondary {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}

.hero-actions .link-secondary:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .section-hero {
    padding: 72px 0;
  }

  .hero-title {
    max-width: 18ch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* =========================
   Problem + Trust lists
========================= */

.problem-list,
.trust-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;

  display: grid;
  gap: 12px;
  max-width: 60ch;
}

.problem-list li,
.trust-list li {
  padding-left: 34px;
  position: relative;
  line-height: 1.45;
  font-size: 1.05rem;
}

/* minimal bullet marker */
.problem-list li::before,
.trust-list li::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: 0;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.8;
}

/* =========================
   Solution grid
========================= */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  max-width: 900px;
}

.solution-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.02);
}

.solution-item h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

.solution-support {
  margin: 18px 0 0 0;
  opacity: 0.85;
  max-width: 70ch;
}

@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Steps
========================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  max-width: 1000px;
}

.step {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px;
}

.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 10px;
}

.step-text {
  margin: 0;
  line-height: 1.45;
  font-size: 1.05rem;
}

@media (max-width: 992px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Final CTA
========================= */

.section-cta {
  padding: 88px 0;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

.cta-title {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-cta .btn {
  padding: 12px 22px; /* consistent with bootstrap but slightly more substantial */
}

/* =========================
   Light/Dark Theme Compatibility
   (doesn't assume your variable names)
========================= */

/* If you already use CSS variables for themes, prefer them.
   These are safe fallbacks so borders don't look harsh. */

@media (prefers-color-scheme: dark) {
  .solution-item,
  .step {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
  }

  .problem-list li::before,
  .trust-list li::before {
    opacity: 0.75;
  }

  .step-number {
    border-color: rgba(255,255,255,0.18);
  }
}

