/*
Theme Name: Bridge Builder
Theme URI: https://thebridgebuilder.co.za
Author: Aakash Bramdeo
Author URI: https://thebridgebuilder.co.za
Description: A custom, elegant theme for The Bridge Builder legacy storytelling service.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bridgebuilder
*/

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f9f6f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #2e2a24;
  line-height: 1.5; /* Reduced from 1.6 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-image: radial-gradient(circle at 20% 20%, rgba(200, 170, 120, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(170, 140, 100, 0.06) 0%, transparent 50%);
}

.legacy-card {
  max-width: 1000px;
  width: 100%;
  background: #fefcf9;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.04"/></svg>');
  border: 1px solid rgba(180, 150, 110, 0.3);
  border-radius: 16px;
  padding: 1.5rem 3rem 3.5rem; /* Reduced top padding */
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 120, 0.1) inset;
  transition: all 0.2s ease;
}

@media (max-width: 650px) {
  .legacy-card {
    padding: 1.5rem 1.5rem 2.5rem;
    border-radius: 12px;
  }
}

.header-section {
  text-align: center;
  margin-bottom: 0.5rem; /* Reduced from 1rem */
}

.logo-image {
  max-width: 100%;
  width: 520px;
  height: auto;
  display: block;
  margin: 0 auto 0.2rem; /* Reduced from 0.5rem */
  filter: drop-shadow(0 8px 16px rgba(120, 90, 50, 0.12));
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.01);
}

@media (max-width: 650px) {
  .logo-image {
    width: 100%;
    max-width: 380px;
  }
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0 1.5rem; /* Reduced from 1.8rem 0 2.2rem */
  color: #b99f78;
  font-size: 0.8rem;
  letter-spacing: 4px;
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, #c9aa7b, transparent);
  opacity: 0.7;
}

.divider-ornament span {
  font-size: 1rem;
  opacity: 0.8;
}

.main-content {
  text-align: center;
}

h2 {
  font-size: 2rem;
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 400;
  color: #b8860b;
  margin: 1.2rem 0 0.8rem; /* Reduced from 1.5rem 0 1.2rem */
  letter-spacing: 0.5px;
}

.page-content-area p {
  font-size: 1.15rem;
  color: #3a342c;
  max-width: 780px;
  margin: 0 auto 1.2rem; /* Reduced from 1.8rem */
  font-weight: 300;
  line-height: 1.6; /* Reduced from 1.8 */
}

.page-content-area strong {
  color: #a58e6f;
  font-weight: 500;
}

.page-content-area em {
  color: #b8860b;
  font-style: italic;
  font-weight: 400;
}

/* ---------- PAGE EDITOR STYLES ---------- */
.page-content-area .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 1rem; /* Reduced from 2.8rem 0 1.5rem */
}

.page-content-area .wp-block-column {
  flex: 1 1 220px;
  background: rgba(250, 245, 235, 0.9);
  border-radius: 12px;
  padding: 1.5rem 1.4rem; /* Reduced vertical padding */
  border: 1px solid rgba(200, 170, 120, 0.25);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
}

.page-content-area .wp-block-column:hover {
  border-color: rgba(184, 134, 11, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(184, 134, 11, 0.15);
}

.page-content-area .wp-block-column h3 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8860b;
  margin-bottom: 0.5rem; /* Reduced from 0.8rem */
  font-family: 'Times New Roman', Georgia, serif;
}

.page-content-area .wp-block-column p {
  font-size: 0.95rem;
  color: #5f5546;
  max-width: none;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Video/Embed styling */
.page-content-area .wp-block-embed {
  margin: 2rem auto;
  max-width: 780px;
}
.page-content-area .wp-block-embed iframe {
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensures modern browsers scale correctly */
}
.page-content-area video {
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  margin: 1.5rem 0 1rem; /* Reduced from 3rem */
  text-align: center;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 540px;
  margin: 0 auto;
}

.cta-box input {
  flex: 2 1 260px;
  padding: 1rem 1.5rem;
  border-radius: 60px;
  border: 1px solid #d4c5b2;
  background: #fefcf9;
  color: #2e2a24;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.05);
}

.cta-box input:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.cta-box input::placeholder {
  color: #b0a494;
  font-weight: 300;
}

.cta-box button {
  flex: 1 0 auto;
  background: #b8860b;
  border: none;
  color: #fefcf9;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 60px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: 1px solid #b8860b;
  font-family: inherit;
  box-shadow: 0 6px 14px -6px rgba(184, 134, 11, 0.4);
}

.cta-box button:hover {
  background: #a0750a;
  transform: scale(1.02);
}

.cta-box button:active {
  transform: scale(0.98);
}

.cta-fine {
  font-size: 0.78rem;
  color: #9e8b70;
  letter-spacing: 0.4px;
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- FOOTER ---------- */
.footer-note {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #a89b8a;
  text-align: center;
  border-top: 1px solid rgba(200, 170, 120, 0.3);
  padding-top: 2rem;
  letter-spacing: 0.3px;
}

.footer-note a {
  color: #b8860b;
  text-decoration: none;
  border-bottom: 1px dotted #d4c5b2;
  font-weight: 500;
}

.footer-note a:hover {
  text-decoration: underline;
}

.bridge-icon {
  font-size: 1.1rem;
  vertical-align: middle;
  margin: 0 0.2rem;
  opacity: 0.8;
}

/* ---------- INNER PAGE STYLES ---------- */
.standard-page .page-text-content p {
  margin-bottom: 1.2rem;
  text-align: left;
}

.standard-page .page-text-content h1, 
.standard-page .page-text-content h2, 
.standard-page .page-text-content h3 {
  text-align: left;
  margin-top: 2rem;
}

.standard-page .page-text-content a {
  color: #b8860b;
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 550px) {
  h2 { font-size: 1.5rem; }
  .page-content-area p { font-size: 1rem; }
  .page-content-area .wp-block-column h3 { font-size: 1rem; letter-spacing: 1.5px; }
  .divider-ornament::before,
  .divider-ornament::after { width: 40px; }
}
