/* ==========================================================================
   Gotopshape.com — Modern shared stylesheet
   Bilingual motivational & personal-development speakers directory
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-900: #1a2a4a;
  --brand-800: #22345c;
  --brand-700: #2c4374;
  --brand-600: #35528c;
  --brand-500: #41639f;
  --brand-100: #e8eef8;
  --brand-50:  #f4f7fc;

  --accent-500: #e8a33d;
  --accent-400: #f0b95c;
  --accent-100: #fdf3e0;

  --ink:      #1f2937;
  --ink-soft: #4b5563;
  --muted:    #6b7280;
  --line:     #e5e7eb;
  --surface:  #ffffff;
  --bg:       #f6f8fb;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);

  --radius: 12px;
  --radius-sm: 8px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --container: 1120px;
  --gutter: 1.25rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  background: var(--brand-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.brand:hover { color: var(--accent-400); text-decoration: none; }
.brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--brand-900); font-size: 1.05rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: .5rem .8rem;
  color: #dbe4f5;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; background: var(--brand-600); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  color: #fff; font-size: 1.4rem; line-height: 1;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.lang-switch:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand-500) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  text-align: center;
}
.hero h1 { color: #fff; margin: 0 0 1rem; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #dbe4f5; max-width: 720px; margin: 0 auto 1.6rem; }
.hero .hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-500); color: var(--brand-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-400); color: var(--brand-900); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { background: var(--brand-100); color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-100); color: var(--brand-800); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-500);
  margin-bottom: .5rem;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.card .card-link { font-weight: 600; margin-top: .8rem; display: inline-block; }

.author-card { text-align: center; padding: 1.4rem 1rem; }
.author-card img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .8rem;
  border: 3px solid var(--brand-100);
}
.author-card h3 { font-size: 1.02rem; }
.author-card .role { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; margin-top: .15rem;
}

/* ---------- Sub navigation (author pages) ---------- */
.subnav { margin: 0 0 1.5rem; }
.subnav ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0; padding: 0;
}
.subnav a {
  display: inline-block; padding: .5rem .9rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; color: var(--brand-700);
  font-weight: 600; font-size: .9rem;
}
.subnav a:hover { background: var(--brand-100); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); margin: 1.2rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--brand-600); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-head h1 { margin: 0 0 .5rem; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem;
  border-left: 4px solid var(--accent-500);
  background: var(--accent-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-800); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* ---------- Call to action band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-band h2 { color: #fff; margin: 0 0 .6rem; }
.cta-band p { color: #dbe4f5; max-width: 640px; margin: 0 auto 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: #c3cfe6;
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #c3cfe6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #93a3c4;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--brand-800); }
.form-control {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--surface);
}
.form-control:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: var(--brand-500); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent-500); color: var(--brand-900);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--brand-900);
    padding: .5rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .main-nav a { padding: .7rem .8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 60px; }
  .main-nav { top: 60px; }
}
