/* =============================================
   Southern Arrowhead Outfitters - Main Stylesheet
   ============================================= */

/* 1. CSS Custom Properties
   ------------------------------------------- */
:root {
  --color-primary: #3B2F1E;
  --color-primary-light: #5C4A32;
  --color-secondary: #4A6B2A;
  --color-secondary-light: #6B8F3C;
  --color-accent: #C4841D;
  --color-accent-hover: #A06A10;
  --color-bg: #F8F5F0;
  --color-bg-alt: #EDE8E0;
  --color-text: #2D2A26;
  --color-text-light: #5A5550;
  --color-border: #D4CFC8;
  --color-white: #FFFFFF;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Arial, 'Helvetica Neue', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --max-width: 1100px;
  --nav-height: 64px;
  --border-radius: 6px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url('../images/MISC/SAO_Background-screened.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(248, 245, 240, 0.92);
  z-index: -1;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-secondary-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

h1 { font-size: 1.75rem; margin-bottom: var(--space-lg); }
h2 { font-size: 1.5rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.15rem; margin-bottom: var(--space-sm); }

p { margin-bottom: var(--space-md); }

address {
  font-style: normal;
}

/* 3. Layout Utilities
   ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.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;
}

/* 4. Buttons
   ------------------------------------------- */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

/* 5. Header & Navigation
   ------------------------------------------- */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--space-md);
}

.logo img {
  height: 48px;
  width: auto;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.main-nav.open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}

.nav-list a svg {
  vertical-align: middle;
}

.nav-cta {
  display: none;
}

.header-banner {
  background: var(--color-secondary);
  text-align: center;
  padding: var(--space-xs) var(--space-md);
}

.banner-badge {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile phone bar */
.mobile-cta {
  display: block;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.mobile-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* 6. Footer
   ------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.site-footer a {
  word-break: break-all;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.site-footer h3 {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer a {
  color: var(--color-bg);
  text-decoration: underline;
  text-decoration-color: rgba(248,245,240,0.3);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.payment-icons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.payment-icons img {
  height: 30px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid var(--color-primary-light);
  padding-top: var(--space-lg);
  font-size: 0.85rem;
  color: rgba(248,245,240,0.7);
  text-align: center;
}

.footer-bottom-left p {
  margin-bottom: var(--space-xs);
}

.footer-credit {
  font-size: 0.8rem;
  margin-top: var(--space-sm);
}

.footer-credit a {
  color: rgba(248,245,240,0.5);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--color-accent);
}

/* 7. Hero Section
   ------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.6;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
}

.hero h1 {
  color: var(--color-white);
  font-size: 1.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero .btn {
  margin-top: var(--space-md);
}

/* 8. Feature Cards
   ------------------------------------------- */
.features {
  padding: var(--space-2xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-secondary);
}

.feature-card h3 {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

/* 9. Content Sections
   ------------------------------------------- */
.page-content {
  padding: var(--space-2xl) 0;
}

.content-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.content-section {
  margin-bottom: var(--space-2xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-photo {
  border-radius: var(--border-radius);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* 10. Pricing Table
   ------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.pricing-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.pricing-table tr:nth-child(even) td {
  background: var(--color-bg);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.price-amount {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.1rem;
}

/* 11. CTA Block
   ------------------------------------------- */
.cta-block {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--border-radius);
  margin: var(--space-2xl) 0;
}

.cta-block h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-block p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.cta-block .btn {
  font-size: 1.15rem;
}

.cta-phone {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.cta-phone a {
  color: var(--color-accent);
  text-decoration: none;
}

.cta-phone a:hover {
  color: var(--color-white);
}

/* 12. Testimonials
   ------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-secondary);
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  line-height: 0;
  display: block;
  margin-bottom: var(--space-sm);
}

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

.testimonial-location {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.testimonial-photo {
  margin-top: var(--space-md);
  border-radius: var(--border-radius);
  max-width: 300px;
}

/* 13. Gallery Grid
   ------------------------------------------- */
.page-gallery {
  padding: var(--space-2xl) 0;
}

.gallery-intro {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  background: var(--color-bg-alt);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Pagination */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}

.pagination-label {
  font-weight: 700;
  color: var(--color-text-light);
  margin-right: var(--space-sm);
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s;
}

.pagination-link:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.pagination-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  pointer-events: none;
}

/* 14. Lightbox
   ------------------------------------------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 1010;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

/* 15. Contact Page
   ------------------------------------------- */
.contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-phone {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: var(--space-lg) 0;
}

.contact-phone a {
  color: var(--color-secondary);
}

.contact-phone a:hover {
  color: var(--color-accent);
}

.contact-email {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-email a {
  word-break: break-all;
}

.contact-availability {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}

/* 16. Hunt Details Page
   ------------------------------------------- */
.hunt-details .content-section h2 {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.hunt-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.hunt-highlight {
  background: var(--color-bg);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--color-border);
}

.hunt-highlight strong {
  display: block;
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-family: var(--font-heading);
}

.hunt-highlight span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.deposit-info {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: var(--space-lg) 0;
}

/* 17. Responsive
   ------------------------------------------- */

/* Small tablets / large phones */
@media (min-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md) 0;
    gap: 0;
  }

  .logo {
    display: block;
    text-align: center;
    margin-bottom: var(--space-sm);
  }

  .logo img {
    height: auto;
    max-width: 500px;
    margin: 0 auto;
  }

  .nav-toggle {
    display: none;
  }

  /* Desktop nav bar: full width row with centered links + CTA */
  .desktop-nav-row {
    display: flex;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border-bottom: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: var(--space-sm) 0;
  }

  .nav-list a {
    padding: var(--space-sm) var(--space-sm);
    border-bottom: none;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .header-cta {
    display: none;
  }

  .nav-cta {
    display: list-item;
    margin-left: var(--space-sm);
  }

  .nav-cta a {
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--space-xs) var(--space-md);
  }

  .nav-cta a:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
  }

  .mobile-cta {
    display: none;
  }

  .hero-image {
    height: 400px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }

  .footer-credit {
    text-align: right;
    flex-shrink: 0;
    margin-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .hunt-highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }

  .logo img {
    max-width: 600px;
  }

  .hero-image {
    height: 550px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .nav-list a {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
