/*
  ============================================================
  LORD OF WATER — style.css
  lordofwater.com
  ============================================================
  Applies to: index.html, blog/index.html, book-1/, lore/,
              author/, testimonials/, and all future pages
  Fonts: Cormorant Garamond + Inter (loaded via Google Fonts)
  ============================================================
*/

/* ── VARIABLES ── */
:root {
  --cream:        #F5F1E8;
  --paper:        #FAF6EE;
  --text:         #2C2416;
  --text-light:   #6B6359;
  --gold:         #D4AF37;
  --gold-hover:   #E5C158;
  --accent:       #8B7355;
  --border:       #E8E3D8;
  --deep-blue:    #1A3A52;
  --ocean-light:  #4A7BA7;
  --ocean-pale:   rgba(74,123,167,0.08);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius: 2px;
  --max-width: 800px;
  --transition: 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── BASE ── */
html, body {
  width: 100%;
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* ── HEADER / NAV ── */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.logo em {
  font-style: italic;
  color: var(--gold);
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin-left: 32px;
  transition: color var(--transition);
}

nav a:hover,
nav a.active { color: var(--gold); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--ocean-light) 100%);
  color: var(--cream);
  padding: 80px 32px;
  text-align: center;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero h1 em { font-style: italic; }

.hero-tagline {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 40px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 18px;
  font-style: italic;
  font-family: var(--font-serif);
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* ── MAIN CONTENT ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px;
}

section { margin-bottom: 80px; }

section h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

section h2 em {
  font-style: italic;
  color: var(--gold);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 40px;
}

section p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

section p:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-blue);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(212,175,55,0.1);
  transform: translateY(-2px);
}

/* ── BOOK SHOWCASE ── */
.book-showcase {
  display: flex;
  gap: 50px;
  align-items: center;
  margin: 60px 0;
}

.book-image {
  flex: 0 0 300px;
  text-align: center;
}

.book-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.book-image img:hover { transform: translateY(-8px); }

.book-info h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text);
}

.book-info p { margin-bottom: 16px; }

.book-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── TESTIMONIAL ── */
.testimonial-block {
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(139,115,85,0.05) 100%);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 40px;
  margin: 50px 0;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.testimonial-author {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.testimonial-author strong { color: var(--text); }

/* ── OPT-IN FORM ── */
.optin-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 50px 0;
  text-align: center;
}

.optin-form h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.optin-form p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.optin-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.optin-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212,175,55,0.1);
}

.optin-form button {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.optin-form button:hover { background: var(--gold-hover); }

/* ── BLOG PREVIEW CARDS (homepage) ── */
.blog-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-date {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 16px;
}

.blog-card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.blog-card a:hover { text-decoration: underline; }

/* ── AUTHOR BIO ── */
.author-bio {
  display: flex;
  gap: 40px;
  align-items: start;
  margin: 60px 0;
}

.author-image { flex: 0 0 180px; }

.author-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.author-text h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.author-text p { margin-bottom: 16px; }

/* ── BLOG LISTING PAGE ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.post-card:first-child { padding-top: 0; }
.post-card:hover .post-title { color: var(--gold); }

.post-date {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  padding-top: 6px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
  transition: color var(--transition);
  line-height: 1.2;
}

.post-title em {
  font-style: italic;
  color: var(--gold);
}

.post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.post-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ── SUBSCRIBE CTA ── */
.subscribe-cta {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  margin-top: 80px;
}

.subscribe-cta h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}

.subscribe-cta h3 em {
  font-style: italic;
  color: var(--gold);
}

.subscribe-cta p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ── FOOTER ── */
footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 50px 32px 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-nav { margin-bottom: 24px; }
.footer-nav a { margin: 0 16px; display: inline-block; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ── SHARE BAR ── */
.tq-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 48px 0 0;
}

.tq-share-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 4px;
  white-space: nowrap;
}

.tq-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tq-share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.15);
}

.tq-share-btn:active { transform: translateY(0); }
.tq-share-icon { font-size: 15px; line-height: 1; }
.tq-share-btn.copied { border-color: #1D9E75 !important; color: #1D9E75 !important; }
.tq-share-native { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 20px; }
  nav a { margin-left: 16px; font-size: 12px; }
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 40px; }
  main { padding: 50px 20px; }
  section h2 { font-size: 32px; }
  .book-showcase { flex-direction: column; gap: 30px; }
  .book-image { flex: 0 0 auto; max-width: 280px; margin: 0 auto; }
  .author-bio { flex-direction: column; gap: 25px; }
  .author-image { flex: 0 0 160px; margin: 0 auto; }
  .post-card { grid-template-columns: 1fr; gap: 8px; }
  .post-date { padding-top: 0; }
  .post-title { font-size: 24px; }
  .subscribe-cta { padding: 30px; }
  .tq-share-btn span:last-child { display: none; }
  .tq-share-btn { padding: 9px 12px; }
  .tq-share-icon { font-size: 18px; }
  .tq-share-native { display: inline-flex !important; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 32px; }
  main { padding: 40px 16px; }
  section h2 { font-size: 26px; }
  .book-buttons { flex-direction: column; }
  .btn { width: 100%; }
  section { margin-bottom: 50px; }
}
