/*
Theme Name: Sefer Mormon
Theme URI: https://sefermormon.org
Author: Institute of Ancient Studies
Author URI: https://www.instituteofancientstudies.org/
Description: A bilingual Hebrew-English theme for selling the Book of Mormon in Hebrew
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sefer-mormon
*/

/* ===============================================
   CSS VARIABLES
   =============================================== */
:root {
  --primary-blue: #3464bc;
  --accent-blue: #3e5cb7;
  --light-gray: #e0e0e0;
  --medium-gray: #bdbdbd;
  --dark-gray: #d6d6d6;
  --hover-gray: #aaaaaa;
  --bg-base: #f5f5f5;
  --white: #ffffff;
  --text-dark: #222222;
  --success-green: #78e67b;
  --success-hover: #37f83e;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-dark);
  line-height: 1.6;
/*  direction: rtl; */
/*  text-align: right; */
  overscroll-behavior: none;
}

/* ===============================================
   HEBREW FONT
   =============================================== */
@font-face {
  font-family: 'HebrewFont';
  src: url('fonts/AdobeHebrew-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.hebrew-text,
[lang="he"] {
  direction: rtl;
  text-align: right;
  font-family: 'HebrewFont', 'Times New Roman', serif;
  font-size: calc(1rem + 4pt);
  line-height: 1.75;
}

.english-text,
[lang="en"] {
  direction: ltr;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
}

/* ===============================================
   LAYOUT CONTAINERS
   =============================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: var(--primary-blue);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.main-navigation a:hover {
  background-color: var(--light-gray);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===============================================
   BANNER SECTION
   =============================================== */

.site-banner-wrapper {
  background-color: var(--white);
  position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-widget-right {
    margin-right: 20px; /* Adjust for RTL */
}

.wc-block-mini-cart__button svg.wc-block-mini-cart__icon {
      width: 40px;
      height: 40px;
}

.header-widget-left {
    margin-left: 20px; /* Adjust for RTL */
}

.site-banner {
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.olive-branch-bg {
  background-image: url('images/olive-branch-rotated.webp');
  background-repeat: no-repeat;
  position: absolute;
  top: 100px;
  right: 10rem;
  opacity: 0.05;
  z-index: 0;
  height: 630px;
  width: 50%;
  pointer-events: none;
}

/* ===============================================
   BILINGUAL LAYOUT
   =============================================== */
.bilingual-content {
  position: relative;
  z-index: 1;
}

.comparative-layout {
  display: grid;
  grid-template-columns: 58.333% 41.667%;
  gap: 2rem;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.english-column {
  padding: 1rem;
  direction: ltr;
  text-align: left;
}

.hebrew-column {
  padding: 1rem;
  direction: rtl;
  text-align: right;
}

.hebrew-only-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  direction: rtl;
  text-align: right;
}

.english-only-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

/* Layout toggle button */
.layout-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.layout-toggle:hover {
  background-color: var(--accent-blue);
}

/* ===============================================
   PRODUCT SECTION
   =============================================== */
.product-section {
  background-color: var(--white);
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.product-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-info {
  padding: 2rem;
}

.product-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.product-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.quantity .qty {
	font-size: large;
	padding: 10px 0px;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--accent-blue);
}

.btn-success {
  background-color: var(--success-green);
  color: var(--text-dark);
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-download {
  background-color: var(--light-gray);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
}

.btn-download:hover {
  background-color: var(--dark-gray);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===============================================
   DOWNLOADS SECTION
   =============================================== */
.downloads-section {
  background-color: var(--white);
  padding: 3rem 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  text-align: center;
}

.downloads-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-blue);
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg-base);
  border-radius: 5px;
}

.download-item-info {
  text-align: right;
}

.download-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.download-item-size {
  font-size: 0.875rem;
  color: #666;
}

/* ===============================================
   CONTACT FORM
   =============================================== */
.contact-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  text-align: right;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 5px;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  background-color: var(--light-gray);
}

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

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

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--primary-blue);
  text-decoration: none;
}

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

.copyright {
  color: #666;
  font-size: 0.875rem;
}

/* ===============================================
   TESTIMONIALS
   =============================================== */
.testimonials-section {
  padding: 3rem 2rem;
  background-color: var(--bg-base);
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ===============================================
   MOBILE RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
  .comparative-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .olive-branch-bg {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 1.5rem;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 1rem;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--light-gray);
  }

  .menu-toggle {
    display: block;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .layout-toggle {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem;
  }

  .header-content {
    padding: 0.75rem;
  }

  .comparative-layout,
  .hebrew-only-layout {
    padding: 1rem;
  }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.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-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
