/* /assets/css/main.css */

:root {
  /* --- Neutral Premium Palette --- */
  --bg-paper: #F9F7F2;     /* Warm, high-end paper */
  --text-ink: #1C1917;     /* Soft Black */
  --text-muted: #57534E;   /* Warm Grey */
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Spectral', Georgia, serif;

  /* Card Gradients */
  --shepherd-overlay: linear-gradient(to top, rgba(15, 17, 19, 0.95), rgba(15, 17, 19, 0.1));
  --raphael-overlay: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  /* Premium Texture */
  background-image: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.03) 100%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

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

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo { height: 45px; width: auto; }

.site-nav { display: flex; gap: 2rem; }

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-link:hover { color: #B79A5A; }

/* Mobile Toggle (Hidden by default) */
.mobile-toggle { display: none; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-image: url('/assets/images/mainpagehero.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 14rem; 
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero-subhead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* --- SPLIT CARDS SECTION --- */
.split-cards-section {
  position: relative;
  z-index: 10;
  margin-top: -10rem;
  padding-bottom: 8rem;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand-card {
  position: relative;
  height: 650px; 
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.brand-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px -15px rgba(0,0,0,0.3);
  z-index: 20;
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}
.brand-card:hover .card-bg { transform: scale(1.05); }

.card-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Shepherd Style */
.card-shepherd .card-bg { background-image: url('/assets/images/main-page-shepherd-side.png'); }
.card-shepherd .card-content {
  background: var(--shepherd-overlay);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.card-shepherd h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin: 0;
}
.card-shepherd p { color: #D1D5DB; font-size: 1rem; margin-bottom: 1rem; }
.btn-shepherd {
  background: #8C1D18;
  color: #FFF;
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0;
  border: 1px solid #8C1D18;
}

/* Raphael Style */
.card-raphael .card-bg { background-image: url('/assets/images/st-raphael-main-webpage.png'); }
.card-raphael .card-content {
  background: var(--raphael-overlay);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.card-raphael h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.8rem;
  color: #1A1A1A;
  margin: 0;
}
.card-raphael p { color: #4A4A4A; font-size: 1.05rem; font-style: italic; margin-bottom: 1rem; }
.btn-raphael {
  background: #3B5998;
  color: #FFF;
  padding: 1rem 2rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #000;
  border-top: 1px solid #222;
  padding: 3rem 0;
  text-align: center;
  color: #555;
}

.footer-brand-name {
  color: #FFF;
  font-family: 'Spectral', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-mission {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.footer-safety-notice {
  font-size: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
  .hero { padding-top: 4rem; padding-bottom: 12rem; }
  .hero h1 { font-size: 2.5rem; }
  
  /* Mobile Toggle Logic */
  .mobile-toggle { 
    display: flex; flex-direction: column; gap: 6px; 
    border: none; background: transparent; cursor: pointer; z-index: 101; 
  }
  .mobile-toggle .bar { width: 26px; height: 2px; background-color: var(--text-ink); }
  
  /* Mobile Nav Dropdown */
  .site-nav {
    position: absolute; 
    top: 100%; left: 0; right: 0;
    background: var(--bg-paper); 
    border-bottom: 1px solid rgba(0,0,0,0.1);
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .site-nav.open { max-height: 300px; }
  
  .nav-link {
    display: block; 
    padding: 1.2rem; 
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  .split-cards-section { margin-top: -10rem; }
  
  .cards-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 1rem 3rem;
    margin: 0;
    width: 100%;
  }
  
  .brand-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    height: 500px;
  }
}