/* ==========================================================================
   Fishbones Bait & Tackle — Shared Design System
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --red: #D63B2F;
  --navy: #1A2E3B;
  --cream: #F5F0E8;
  --teal: #3A6B7E;
  --rope: #8B7355;
  --white: #FFFFFF;

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

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

  --max-width: 1140px;
  --max-width-narrow: 860px;

  --shadow-sm: 0 1px 3px rgba(26, 46, 59, 0.12);
  --shadow-md: 0 4px 12px rgba(26, 46, 59, 0.10);
  --shadow-lg: 0 8px 30px rgba(26, 46, 59, 0.14);

  --radius-sm: 3px;
  --radius-md: 6px;

  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--navy);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

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

.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-teal { color: var(--teal); }
.text-cream { color: var(--cream); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 0.7em 1.6em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background-color: #b8312a;
  border-color: #b8312a;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn--outline:hover {
  background-color: var(--cream);
  color: var(--navy);
}

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

.btn--teal:hover {
  background-color: #2e5666;
  border-color: #2e5666;
  color: var(--white);
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rope), transparent);
  margin: var(--space-3xl) auto;
  max-width: 200px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 64px;
}

.site-nav__logo img {
  height: 44px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__links a {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition);
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--white);
}

.site-nav__links a:hover::after,
.site-nav__links a.active::after {
  width: 100%;
}

.site-nav__phone {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.85;
  margin-left: var(--space-lg);
}

.site-nav__phone:hover {
  color: var(--white);
  opacity: 1;
}

/* Hamburger */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger open state */
.site-nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav styles */
@media (max-width: 768px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--navy);
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    gap: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .site-nav__links.open {
    display: flex;
  }

  .site-nav__links a {
    padding: var(--space-sm) 0;
    font-size: var(--fs-base);
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
    width: 100%;
  }

  .site-nav__links a::after {
    display: none;
  }

  .site-nav__phone {
    margin-left: 0;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    font-size: var(--fs-base);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy);
  color: var(--cream);
  padding: var(--space-3xl) 0 var(--space-xl);
  /* subtle texture: repeating noise */
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23ffffff' opacity='0.015'/%3E%3C/svg%3E");
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.site-footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-md);
}

.site-footer__brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  opacity: 0.8;
  max-width: 300px;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.site-footer__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--red);
}

.site-footer__contact li {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
  line-height: 1.5;
}

.site-footer__contact a {
  color: var(--cream);
  opacity: 0.8;
}

.site-footer__contact a:hover {
  color: var(--white);
  opacity: 1;
}

.site-footer__hours li {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.site-footer__hours li strong {
  color: var(--white);
  opacity: 1;
  font-weight: 600;
}

.site-footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  opacity: 0.6;
}

.site-footer__social a {
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.site-footer__social a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ==========================================================================
   SHARED PAGE HERO (for inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 46, 59, 0.85) 0%,
    rgba(26, 46, 59, 0.4) 50%,
    rgba(26, 46, 59, 0.15) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  color: var(--white);
  font-weight: 700;
}

.page-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--cream);
  margin-top: var(--space-sm);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 200px;
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .page-hero__title {
    font-size: var(--fs-2xl);
  }
}

/* ==========================================================================
   SCROLL ANIMATIONS — subtle, varied, opt-in via data-reveal attributes
   ========================================================================== */

/* Base: hidden until revealed */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Fade up (default) */
[data-reveal="up"] {
  transform: translateY(24px);
}

/* Fade in (no movement, just opacity) */
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="fade"]:not(.is-visible) {
  opacity: 0;
}

/* Slide from left */
[data-reveal="left"] {
  transform: translateX(-30px);
}

/* Slide from right */
[data-reveal="right"] {
  transform: translateX(30px);
}

/* Scale up slightly */
[data-reveal="scale"] {
  transform: scale(0.96);
}

/* Stagger children — add data-reveal-stagger to parent */
[data-reveal-stagger] > [data-reveal] {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
