/* ==========================================================================
   Fishbones Bait & Tackle — Home Page Styles
   ========================================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-home.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Textured vignette — NOT a flat gradient overlay */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(26, 46, 59, 0.75) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(26, 46, 59, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(26, 46, 59, 0.6) 0%, transparent 40%);
}

/* Subtle film grain */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: var(--space-3xl) var(--space-lg);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero__content--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.hero__left {
  flex: 1;
}

.hero__logo {
  width: 260px;
  max-width: 60vw;
  margin-bottom: var(--space-xl);
  filter:
    drop-shadow(0 0 30px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 60px rgba(0, 0, 0, 0.4))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--cream);
  max-width: 500px;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__tagline strong {
  color: var(--white);
  font-weight: 700;
  font-style: normal;
}

.hero__cta {
  margin-top: var(--space-xl);
}

@media (min-width: 769px) {
  .hero__content {
    padding: var(--space-4xl) var(--space-lg);
  }
  .hero__logo {
    width: 320px;
  }
  .hero__tagline {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }
  .hero__tagline {
    font-size: var(--fs-lg);
  }
}

/* --- Hours Card (inside hero) --- */
.hero-hours {
  background-color: rgba(26, 46, 59, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid var(--red);
  padding: var(--space-lg) var(--space-xl);
  width: 320px;
  flex-shrink: 0;
  color: var(--cream);
}

.hero-hours__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero-hours__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hero-hours__day {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(245, 240, 232, 0.15);
  font-size: var(--fs-sm);
}

.hero-hours__day:last-child {
  border-bottom: none;
}

.hero-hours__name {
  font-weight: 600;
  color: var(--white);
}

.hero-hours__time {
  opacity: 0.8;
}

.hero-hours__holidays {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  font-size: var(--fs-xs);
  line-height: 1.6;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero__content--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-hours {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
  }
}

/* --- Cards Section --- */
.cards-section {
  padding: var(--space-4xl) 0;
  background-color: var(--cream);
  position: relative;
}

/* Paper texture feel */
.cards-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M20 0v40M0 20h40' stroke='%231A2E3B' stroke-width='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cards-section__intro {
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

.cards-section__intro h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  color: var(--navy);
}

.cards-section__intro p {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--navy);
  opacity: 0.85;
}

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

/* Make the first card span one column but be taller, and the two others stack */
.cards-grid .card:first-child {
  grid-row: 1 / 3;
}

.card {
  background-color: var(--white);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  border-bottom: 3px solid var(--rope);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card:first-child {
  border-bottom-color: var(--red);
}

.card:nth-child(2) {
  border-bottom-color: var(--teal);
}

.card__number {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
  user-select: none;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.card__desc {
  font-size: var(--fs-base);
  line-height: 1.65;
  opacity: 0.8;
}

.card__icon {
  width: 36px;
  height: auto;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid .card:first-child {
    grid-row: auto;
  }
}

/* --- Services Preview Section --- */
.services-preview {
  padding: var(--space-4xl) 0;
  background-color: var(--white);
  position: relative;
}

.services-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--red);
}

.services-preview__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--navy);
  margin-bottom: var(--space-sm);
  max-width: 600px;
  line-height: 1.35;
}

.services-preview__subtext {
  font-size: var(--fs-md);
  opacity: 0.7;
  margin-bottom: var(--space-2xl);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.services-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--cream);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--navy);
  border-left: 3px solid var(--teal);
  transition: background-color var(--transition), border-color var(--transition);
}

.services-list__item:hover {
  background-color: var(--navy);
  color: var(--cream);
  border-color: var(--red);
}

.services-list__item::before {
  content: '\2022';
  color: var(--red);
  font-size: 1.2em;
  line-height: 1;
}

.services-link {
  margin-top: var(--space-2xl);
}

/* --- Custom Products Callout --- */
.custom-callout {
  background-color: var(--navy);
  color: var(--cream);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

/* Diagonal rope pattern */
.custom-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rope) 0px,
    var(--rope) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.custom-callout__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.custom-callout__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  opacity: 0.7;
}

.custom-callout__text {
  flex: 1;
}

.custom-callout__text h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.custom-callout__text p {
  font-size: var(--fs-md);
  opacity: 0.8;
  max-width: 500px;
}

@media (max-width: 600px) {
  .custom-callout__inner {
    flex-direction: column;
    text-align: center;
  }

  .custom-callout__text p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Bait Board / CTA Section --- */
.bait-board {
  padding: var(--space-4xl) 0;
  background-color: var(--cream);
  text-align: center;
}

.bait-board__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.bait-board__sub {
  font-size: var(--fs-md);
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bait-board__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Weathered plank border for certain elements */
.plank-border {
  border: 2px solid var(--rope);
  border-radius: var(--radius-sm);
  position: relative;
}

.plank-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--red);
}
