/* ============================================================
   UNBREAKABLE STONE — Design System
   ES Ventures LLC · unbreakablestone.com
   ============================================================ */

/* --- Google Fonts (loaded here as fallback; also in <head>) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* --- Custom Properties ---------------------------------------- */
:root {
  --bg:        #0D1B2A;
  --bg-card:   #122233;
  --bg-input:  #0a1520;
  --gold:      #F2C94C;
  --gold-dark: #c9a52e;
  --white:     #FFFFFF;
  --light:     #D4DCE6;
  --muted:     #8A9BAE;
  --border:    #1E3045;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
  --radius:    4px;
  --radius-lg: 8px;
  --transition: 0.2s ease;
  --max-w:     1100px;
}

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* --- Typography ----------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

p { color: var(--light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

section { padding: 5rem 0; }

/* --- Navigation ----------------------------------------------- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); opacity: 1; }

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* --- Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-dark); opacity: 1; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover { background: rgba(242,201,76,0.08); opacity: 1; transform: translateY(-1px); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-full { display: block; width: 100%; text-align: center; }

.btn:disabled, .btn[disabled] {
  background: #374151;
  color: #6B7280;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* --- Hero ----------------------------------------------------- */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: radial-gradient(ellipse at top center, #1a2f45 0%, var(--bg) 65%);
}

.hero h1 { margin-bottom: 1.25rem; }
.hero p.subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Section Headers ------------------------------------------ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { max-width: 640px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* --- Cards ---------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Speaking topic cards */
.speaking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.speaking-card .format-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  display: inline-block;
  padding: 0.2em 0.6em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.speaking-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.speaking-card p  { flex: 1; margin-bottom: 1.5rem; }

/* Testimonial cards */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--light);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- About Section -------------------------------------------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: rgba(242,201,76,0.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 1.5rem 0;
}

.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin: 0;
}

/* --- Forms ---------------------------------------------------- */
.form-section { background: rgba(18, 34, 51, 0.5); }

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--light);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BAE' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option { background: var(--bg); }

.form-group textarea { min-height: 120px; resize: vertical; }

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.char-count.warn { color: #e5a02a; }
.char-count.limit { color: #e55a2a; }

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--light);
  cursor: pointer;
  line-height: 1.5;
}

/* Form actions */
.form-actions { margin-top: 1.75rem; }

.form-notice {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* reCAPTCHA wrapper */
.recaptcha-wrap { margin: 1.25rem 0; }

/* Success / inline thank you */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(242,201,76,0.06);
  border: 1px solid rgba(242,201,76,0.3);
  border-radius: var(--radius-lg);
}

.form-success.visible { display: block; }
.form-success h3 { color: var(--gold); margin-bottom: 0.5rem; }

/* Expandable testimonial form */
.testimonial-form-wrap { margin-top: 1.5rem; }

details.testimonial-expand > summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

details.testimonial-expand > summary::-webkit-details-marker { display: none; }
details.testimonial-expand > summary::before { content: '+'; font-size: 1.2rem; }
details.testimonial-expand[open] > summary::before { content: '−'; }

details.testimonial-expand .expand-content {
  margin-top: 1.25rem;
}

/* Radio button groups (survey) */
.radio-group { display: flex; flex-direction: column; gap: 0.75rem; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.radio-option:hover { border-color: var(--gold); background: rgba(242,201,76,0.04); }

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.radio-option span { font-size: 0.95rem; color: var(--light); }

/* --- Pull Quote / Callout ------------------------------------- */
.notice-box {
  border: 2px solid var(--gold);
  background: rgba(242,201,76,0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.notice-box p { color: var(--white); font-weight: 700; margin: 0; }

/* --- Footer --------------------------------------------------- */
footer.site-footer {
  background: #080f18;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--light); opacity: 1; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Standalone page (survey, download, thank-you) ------------ */
.standalone-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.standalone-header {
  background: rgba(13, 27, 42, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}

.standalone-header .brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.standalone-main {
  flex: 1;
  padding: 3rem 0;
}

.standalone-footer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Download page -------------------------------------------- */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.download-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  opacity: 1;
}

.download-item-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.download-item-text strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.download-item-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- What you're getting list --------------------------------- */
.getting-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.getting-list li {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.getting-list li strong { color: var(--gold); display: block; margin-bottom: 0.25rem; }
.getting-list li span  { color: var(--light); font-size: 0.9rem; }

/* --- ToS page ------------------------------------------------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Utility -------------------------------------------------- */
.text-gold  { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Divider -------------------------------------------------- */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- Responsive ----------------------------------------------- */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  nav.site-nav { position: sticky; }
  nav.site-nav .nav-inner { flex-wrap: nowrap; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  .card-grid { grid-template-columns: 1fr; }

  .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .radio-option span { font-size: 0.9rem; }
}
