/* Heritage Apple Corps - Shared Stylesheet */
/* Replicating Kadence/SoR visual style with Montserrat/Roboto */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* === CSS Variables === */
:root {
  --primary: #2e4aac;
  --primary-dark: #192e75;
  --primary-light: #3d60dc;
  --text-body: #5e5e5e;
  --text-heading: #2e4aac;
  --text-dark: #1A202C;
  --text-dark-alt: #1b1b1b;
  --btn-bg: #2d4aad;
  --btn-hover: #3d60dc;
  --white: #ffffff;
  --off-white: #F7FAFC;
  --footer-bg: #f6f6f6;
  --link-blue: #3366cc;
  --link-hover: #254bcd;
  --border-light: #ccc;
  --max-width: 1230px;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 21px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  text-align: justify;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-weight: 600;
  font-size: 64px;
  line-height: 1.2;
  color: var(--text-heading);
}

h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-heading);
}

h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-heading);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* === Layout === */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-area {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* === Header === */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px 2px rgba(26, 32, 44, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-branding a:hover {
  color: var(--primary-dark);
}

.site-branding .site-logo {
  height: 32px;
  width: 32px;
  display: block;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.main-nav li a {
  display: block;
  padding: 0.6em 0.6em;
  color: var(--btn-bg);
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav li a:hover {
  color: var(--primary-dark);
}

.main-nav li.nav-cta a {
  background: var(--btn-bg);
  color: var(--white);
  border-radius: 4px;
  padding: 0.5em 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}

.main-nav li.nav-cta a:hover {
  background: var(--btn-hover);
  box-shadow: 0 8px 20px -7px rgba(0, 0, 0, 0.15);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  padding: 0.4em 0.6em;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.2em;
}

.mobile-nav {
  list-style: none;
}

.mobile-nav li a {
  display: block;
  padding: 0.5em 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.mobile-nav li a:hover {
  color: var(--link-blue);
}

.mobile-nav li.nav-cta a {
  background: var(--btn-bg);
  color: var(--white);
  text-align: center;
  border-radius: 4px;
  margin-top: 1rem;
  padding: 0.8em 1em;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: none;
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  margin: 0;
}

.hero-content .hero-subtitle {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-top: 0.5em;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 2.278;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 8px 32px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--btn-hover);
  color: var(--white);
  box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  padding: 6px 30px;
}

.btn-outline:hover {
  background: var(--btn-bg);
  color: var(--white);
  box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

.btn-center {
  text-align: center;
  margin: 1.5em 0;
}

/* === Section Divider (line-heading) === */
.line-heading {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.1em;
  color: var(--text-dark-alt);
  margin: 2.5rem 0 1.5rem;
}

.line-heading::before,
.line-heading::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.line-heading::before {
  margin-right: 2rem;
}

.line-heading::after {
  margin-left: 2rem;
}

/* === Two-Column Layout === */
.two-col {
  display: flex;
  flex-wrap: nowrap;
  gap: 2em;
  margin-bottom: 1.75em;
}

.two-col > .col {
  flex: 1;
  min-width: 0;
}

.two-col > .col-1-3 {
  flex: 0 0 33.33%;
}

.two-col > .col-2-3 {
  flex: 0 0 calc(66.66% - 2em);
}

/* === Three-Column Layout === */
.three-col {
  display: flex;
  flex-wrap: nowrap;
  gap: 2em;
  margin-bottom: 1.75em;
}

.three-col > .col {
  flex: 1;
  min-width: 0;
}

/* === Cover Blocks (Mission Cards) === */
.cover-block {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #555;
}

.cover-block img.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-block .cover-overlay {
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  opacity: 0.5;
}

.cover-block .cover-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 1.5em;
}

.cover-block .cover-content h3 {
  color: var(--white);
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 1rem;
}

.cover-block .cover-content p {
  color: var(--white);
  font-size: 18px;
}

/* === News Image === */
.news-image {
  text-align: center;
  margin: 1.5rem 0;
}

.news-image img {
  max-width: 774px;
  width: 100%;
  margin: 0 auto;
}

.news-link {
  text-align: center;
  margin-top: 0.5rem;
}

/* === Section Spacing === */
.section {
  margin-bottom: 2rem;
}

.section-padded {
  padding: 20px 0;
}

/* === FAQ (details/summary) === */
.faq-section {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.faq-section details {
  border-bottom: 1px solid #e0e0e0;
}

.faq-section summary {
  cursor: pointer;
  padding: 1em 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-section summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--text-body);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1em;
}

.faq-section details[open] summary::after {
  content: '\2212';
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section .faq-answer {
  padding: 0 0 1.5em;
  font-size: 19px;
  line-height: 1.6;
}

/* === Workshop Leader Cards === */
.leader-card {
  text-align: center;
}

.leader-card img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.leader-card h3 {
  margin-bottom: 0.75rem;
}

/* === Partner Section === */
.partner-logo {
  max-width: 300px;
}

/* === Contact Form === */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form .form-field {
  width: 100%;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form textarea {
  height: auto;
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  font-size: 17px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .contact-submit {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
}

/* === Form Status Messages === */
.form-status-success,
.form-status-error {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.5;
}

.form-status-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status-error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* === Footer === */
.site-footer {
  background: var(--footer-bg);
  padding: 2rem 0;
  font-size: 18px;
  color: var(--text-body);
}

.footer-subscribe {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.footer-subscribe p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.subscribe-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-row input[type="email"] {
  flex: 1;
  padding: 0.55em 1em;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-dark);
}

.subscribe-row button {
  padding: 0.55em 1.25em;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe-row button:hover {
  background: var(--primary-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-contact a {
  color: var(--link-blue);
}

.footer-contact a:hover {
  color: var(--link-hover);
}

/* === Utility === */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.no-transform {
  text-transform: none;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* h2 with no uppercase for content headings */
h2.content-heading {
  text-transform: none;
  font-size: 30px;
  margin-bottom: 1.5rem;
}

/* === Workshop-specific === */
.workshop-hero .hero-content h1 {
  font-size: 48px;
}

.workshop-hero .hero-content .hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--white);
  margin: 0.5em 0;
}

.detail-image {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.links-section {
  background: var(--off-white);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.links-section ul {
  list-style: none;
  padding: 0;
}

.links-section li {
  margin-bottom: 0.75em;
  font-size: 19px;
}

/* === Responsive: Tablet === */
@media (max-width: 1074px) {
  .main-nav-wrap {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 48px;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 28px;
  }

  h2.content-heading {
    font-size: 28px;
  }

  .two-col {
    flex-wrap: wrap;
  }

  .two-col > .col,
  .two-col > .col-1-3,
  .two-col > .col-2-3 {
    flex: 1 1 100%;
  }

  .three-col {
    flex-wrap: wrap;
  }

  .three-col > .col {
    flex: 1 1 100%;
  }

  .content-area {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .workshop-hero .hero-content h1 {
    font-size: 36px;
  }

  .workshop-hero .hero-content .hero-date {
    font-size: 28px;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 767px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-section {
    min-height: 220px;
  }

  .site-branding a {
    font-size: 20px;
  }

  .workshop-hero .hero-content h1 {
    font-size: 28px;
  }

  .workshop-hero .hero-content .hero-date {
    font-size: 24px;
  }

  .leader-card img {
    width: 200px;
    height: 200px;
  }

  .faq-section summary {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .subscribe-row input[type="email"],
  .subscribe-row button {
    width: 100%;
  }
}
