/* Essene Order South Africa - Custom Static Website
   Colours derived from the Order flag */

:root {
  --red: #E30613;
  --green: #007A3D;
  --blue: #0033A0;
  --yellow: #FFD100;
  --gold: #C9A227;
  --dark: #1a1a1a;
  --text: #2c2c2c;
  --light: #f8f7f4;
  --white: #ffffff;
  --soft-red: #fdf2f2;
  --soft-green: #f0f7f3;
  --soft-blue: #f0f4fa;
  --soft-yellow: #fffdf0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1.1rem; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.logo-link img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a.active { color: var(--red); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--soft-red) 0%, var(--soft-blue) 50%, var(--soft-green) 100%);
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(227,6,19,0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0,51,160,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-flag {
  width: min(220px, 55%);
  margin: 0 auto 1.75rem;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero .lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background: #c00510;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227,6,19,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: #b8921f;
  color: var(--dark);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: #555;
  font-size: 1.05rem;
}

.section-ornament {
  display: block;
  margin: 0 auto 1.25rem;
  width: 120px;
  height: 40px;
}

/* Cards / Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: var(--transition);
}

.feature-card:nth-child(2) { border-top-color: var(--green); }
.feature-card:nth-child(3) { border-top-color: var(--blue); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.feature-card h3 {
  color: var(--dark);
  margin-top: 0.5rem;
}

/* About page specific */
.about-content {
  display: grid;
  gap: 2.5rem;
}

.about-block {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-block h2 {
  color: var(--red);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.mission-list {
  list-style: none;
  margin: 1.5rem 0;
}

.mission-list li {
  padding: 1rem 0 1rem 1.5rem;
  border-left: 3px solid var(--green);
  margin-bottom: 1rem;
  background: var(--soft-green);
  border-radius: 0 8px 8px 0;
}

.mission-list strong {
  color: var(--dark);
  display: block;
  margin-bottom: 0.25rem;
}

/* Book page */
.book-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.book-cover {
  background: linear-gradient(145deg, var(--red), var(--blue));
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-cover h3 {
  color: var(--yellow);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.book-cover .author {
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.book-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book-links .btn {
  width: 100%;
}

/* Tools page */
.tools-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.shema-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid #eee;
  position: relative;
}

.shema-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue), var(--yellow));
  border-radius: var(--radius) var(--radius) 0 0;
}

.shema-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Prevent selection on tools (deterrent) */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--red);
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: var(--blue);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,51,160,0.12);
}

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

.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 40px;
  border-radius: 4px;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.footer-col h4 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #bbb;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem;
  }

  .book-hero,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 500px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
