/* GODF Amérique Custom Styles */

/* GODF Color Palette */
:root {
  --godf-blue: #1a365d;      /* Dark blue - primary */
  --godf-gold: #d69e2e;      /* Gold - accent (for backgrounds/borders) */
  --godf-gold-text: #8b6914; /* Much darker gold for text on white (WCAG compliant) */
  --godf-light-blue: #2b77ad; /* Light blue - secondary */
  --godf-white: #ffffff;     /* White */
  --godf-gray: #4a5568;      /* Gray for text */
  --godf-light-gray: #f7fafc; /* Light background */
}

/* Override Ananke default dark background */
.bg-dark-blue {
  background-color: var(--godf-blue) !important;
}

/* GODF Header styling */
header .bg-black {
  background-color: var(--godf-blue) !important;
}

header .bg-black-60 {
  background-color: rgba(26, 54, 93, 0.9) !important;
}

/* Logo styling */
.site-logo img {
  max-height: 60px;
  width: auto;
}

/* Navigation header logo */
nav a img {
  max-height: 100px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Make logo white on blue background */
  transition: opacity 0.3s ease;
}

nav a:hover img {
  opacity: 0.8;
}

/* Override Tachyons mw5-ns class specifically for navigation logo */
@media screen and (min-width: 30em) {
  nav img.mw5-ns {
    max-width: 25rem !important;
  }
}

/* =====================
   NAVIGATION STYLING
   ===================== */

/* Base navigation styles */
nav a.hover-white:hover {
  color: var(--godf-gold) !important;
  transition: color 0.3s ease;
}

/* Navigation list alignment fix */
nav ul[role="menubar"] {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul[role="menubar"] li {
  display: inline-block;
  vertical-align: middle;
}


/* Footer Navigation */
.footer-nav ul {
  list-style: none;
}

.footer-nav a:hover {
  color: var(--godf-gold) !important;
  transition: color 0.3s ease;
}

/* Footer styling - consistent hover for all footer links */
footer a:hover {
  color: var(--godf-gold) !important;
  transition: color 0.3s ease;
}

/* Footer font size - make footer text larger */
footer a.f6 {
  font-size: 1rem;  /* 16px instead of .875rem */
}

/* Skip navigation link for accessibility */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--godf-gold);
  color: var(--godf-blue);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.skip-nav:focus {
  left: 4px;
}

/* French typography improvements */
body {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--godf-blue);
  font-weight: 600;
}

/* =====================
   HOMEPAGE HERO SECTION - REMOVED
   ===================== */
/* Hero section has been removed from the homepage */

/* Screen reader only class - keeping this as it may be used elsewhere */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================
   HOMEPAGE CONTENT SECTIONS
   ===================== */

.homepage-content {
  background: white;
}

.content-section {
  padding: 4rem 0;
}

.content-section.bg-light {
  background-color: var(--godf-light-gray);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--godf-blue);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Welcome Section */
.welcome-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--godf-gray);
  margin: 0;
}

/* About Section - Card Layout */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--godf-gray);
}

/* Lodge Directory Section - Homepage */
.lodge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.lodge-name {
  color: var(--godf-blue);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lodge-location {
  color: var(--godf-gold-text);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.lodge-link {
  color: var(--godf-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--godf-blue);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.lodge-link:hover {
  background-color: var(--godf-blue);
  color: white;
  text-decoration: none;
}

/* Information Section */
.info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--godf-gray);
}

.pdf-download-card {
  background: white;
  border: 2px solid var(--godf-gold);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(214, 158, 46, 0.1);
  transition: transform 0.3s ease;
}

.pdf-download-card:hover {
  transform: translateY(-2px);
}

.pdf-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.pdf-content h3 {
  color: var(--godf-blue);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Events Section */
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-image {
  position: relative;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-content h3 {
  color: var(--godf-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-content p {
  color: var(--godf-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Content styling */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* French quotations styling */
blockquote {
  border-left: 4px solid var(--godf-gold);
  background: var(--godf-light-gray);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Button styling */
.btn-godf {
  background-color: var(--godf-gold);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;  /* Remove default button border */
  box-shadow: none;  /* Remove any shadow */
  -webkit-appearance: none;  /* Remove browser default styling */
  -moz-appearance: none;
  appearance: none;
}

.btn-godf:hover {
  background-color: #b7832b;
  color: white;
  text-decoration: none;
}

/* Ensure form buttons are also flat */
button.btn-godf {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

/* Tablet adjustments - when menu goes single line */
@media (max-width: 960px) {
  /* Add spacing between menu items when they're in a row */
  nav ul[role="menubar"] {
    gap: 1rem !important;
  }
  
  nav ul[role="menubar"] li {
    margin: 0 0.5rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-logo img {
    max-height: 40px;
  }
  
  /* Navigation header logo on mobile */
  nav a img {
    max-height: 100px !important;  /* Same as desktop */
    width: auto !important;
  }
  
  /* Override Tachyons classes for mobile navigation */
  nav[role="navigation"] > .flex.center.items-center.justify-between {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  
  /* Center logo on mobile */
  nav a.f3 {
    margin-bottom: 0 !important;
    text-align: center;
    display: block;
  }
  
  /* Make navigation div flex on mobile (override flex-l) */
  nav #main-navigation {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Stack menu items vertically */
  nav ul[role="menubar"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;  /* Reduced from 0.75rem */
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 1rem !important;  /* Add space between logo and menu */
    width: 100% !important;
  }
  
  /* Override dib (display inline-block) class */
  nav ul li.dib {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  nav ul li a {
    display: block !important;
    padding: 0.5rem 1.5rem !important;  /* Reduced vertical padding */
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1.125rem !important;  /* 18px - optimal for mobile readability */
    min-height: 44px;  /* iOS minimum touch target */
    display: flex !important;
    align-items: center !important;
  }
  
  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .content-section {
    padding: 1rem 0.5rem;
  }
}

/* Masonic symbols and decorative elements */
.masonic-divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--godf-gold);
  font-size: 1.5rem;
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--godf-gold), transparent);
}


/* Focus states for accessibility */
.lodge-link:focus,
.btn-godf:focus {
  outline: 3px solid var(--godf-gold);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Homepage content width fix */
article.measure-wide {
  max-width: 65rem !important; /* ~1040px, similar to beta site */
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .about-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .lodge-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .event-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .event-content {
    padding: 1.5rem;
  }
  
  .pdf-download-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .section-container {
    padding: 0 1rem;
  }
  
  .content-section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 0.5rem;
  }
  
  .about-card,
  .lodge-card {
    padding: 1.5rem;
  }
}

/* =====================
   LODGE DIRECTORY PAGE STYLING
   ===================== */

.lodges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.lodge-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid #e2e8f0;
}

.lodge-card-link {
  display: block;
  text-decoration: none;
}

.lodge-card a.lodge-card-link,
.lodge-card a.lodge-card-link *,
.nested-links .lodge-card a.lodge-card-link,
.nested-links .lodge-card a.lodge-card-link * {
  color: #555 !important;
  text-decoration: none !important;
}

.lodge-card a.lodge-card-link:hover,
.lodge-card a.lodge-card-link:hover *,
.nested-links .lodge-card a.lodge-card-link:hover,
.nested-links .lodge-card a.lodge-card-link:hover * {
  color: #555 !important;
  text-decoration: none !important;
}

/* Removed hover effects for lodge cards */

.lodge-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.lodge-content {
  padding: 2rem;
}

.lodge-contact a:hover {
  color: var(--godf-gold);
  text-decoration: underline;
}

.lodge-contact a:focus {
  outline: 2px solid var(--godf-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lodge button container */
.lodge-button-container {
  margin-top: 1.5rem;
  text-align: center;
}

.lodge-card .btn-godf,
.lodge-card a.btn-godf {
  display: inline-block;
  width: auto;
  color: white !important;
  text-decoration: none !important;
}

.lodge-card .btn-godf:hover,
.lodge-card a.btn-godf:hover {
  color: white !important;
  text-decoration: none !important;
}

/* Lodge directory responsive design */
@media (max-width: 1024px) {
  .lodges-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .lodges-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .lodge-content {
    padding: 1.5rem;
  }
  
  .lodge-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .lodges-grid {
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .lodge-content {
    padding: 1rem;
  }
  
  
  .lodge-image {
    height: 160px;
  }
}

/* Lodge Individual Page Styling */
.lodge-page img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lodge-page h1 {
  text-align: center;
  color: var(--godf-blue);
  margin-bottom: 0.5rem;
}

.lodge-page h2 {
  text-align: center;
  color: var(--godf-blue);
  margin: 3rem 0 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.lodge-page h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--godf-gold);
}

.lodge-page h3 {
  color: var(--godf-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.lodge-page ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.lodge-page ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.lodge-page ul li:before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--godf-gold);
  font-size: 1.2rem;
}

.lodge-page p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.lodge-page hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 3rem 0;
}

/* Values grid styling */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--godf-light-gray);
  border-radius: 12px;
}

.values-grid strong {
  display: block;
  color: var(--godf-blue);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--godf-gold);
  padding-bottom: 0.5rem;
}

/* Responsive design for lodge pages */
@media (max-width: 768px) {
  .lodge-page h1 {
    font-size: 1.75rem;
  }
  
  .lodge-page h2 {
    font-size: 1.5rem;
  }
  
  .lodge-page img {
    margin: 1.5rem auto;
  }
  
  .lodge-page p {
    text-align: left;
  }
}

/* Print styles for French content */
@media print {
  body {
    font-family: Georgia, "Times New Roman", serif;
    color: black;
  }
  
  .no-print {
    display: none;
  }
  
  .lodge-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 2rem;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .lodge-image {
    height: auto;
    max-height: 150px;
  }
}

/* Quote/Callout Box Styling */
.quote-box {
  background-color: var(--godf-light-gray);
  border: 2px solid var(--godf-gold);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
}

/* Hide page header title and description on mobile */
@media (max-width: 768px) {
  /* Hide the header title and description div */
  .tc-l.pv3.ph3.ph4-ns {
    display: none;
  }
}