/* 
 * Finest At Sea - Component Styles
 * Component-specific styles (colors, effects, etc.)
 * Layout-related styles are in responsive.css
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
      margin: 0;
      padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f9f9f9;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-teal);
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.1rem;
}

h2:after {
  background-color: var(--medium-teal);
}

h3 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--bright-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--medium-teal);
}

/* Container styles are in responsive.css */

.text-light {
  color: var(--text-light);
}

.text-dark {
  color: var(--dark-teal);
}

.serif {
  font-family: var(--font-serif);
}

/* Header */
header {
  background-color: white;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  padding-top: 16px;
}

.logo a {
  color: var(--text-light);
}

nav .main-nav-link {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

nav .main-nav-link:hover {
  color: var(--pale-teal);
}

nav .main-nav-link.active {
  color: var(--light-teal);
}

nav .main-nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--light-teal);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

.search-input {
  padding: 1rem;
}

.page-link {
  font-weight: 800;
  color: var(--light-teal);
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.page-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0.25rem;
  bottom: -0.25rem;
  left: 0;
  background-color: var(--bright-teal);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.page-link:hover {
  color: var(--dark-teal);
}

.page-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.search-toggle {
  color: var(--dark-teal);
  border: none;
  background-color: transparent;
}

.background-image-section {
  background-position: center;
  overflow: hidden;
  width: auto;
  background-repeat: no-repeat;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--bright-teal);
  color: var(--text-light);
  border: 2px solid var(--bright-teal);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--medium-teal);
  border: 2px solid var(--medium-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--bright-teal);
  color: var(--bright-teal);
}

.btn-outline:hover {
  background-color: var(--bright-teal);
  color: var(--text-light);
}

.btn-outline-light {
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

/* Section styling */
section {
  position: relative;
  padding: var(--spacing-xl);
}

.section-flex-img {
  width: 100%;
}

.section-title {
  text-align: center;
  padding-bottom: var(--spacing-xl);
}

.section-title h2 {
  display: inline-block;
}

.section-title h2:after {
  left: 50%;
  /* transform: translateX(-50%); */
  width: 100px;
}

.services-section {
  background-color: var(--bright-teal);
}

/* ======================== */

/* Info card example */

/* <div class="info-cards">
<div class="info-card animate-on-scroll">
  <div class="info-card__icon">
    <i class="fas fa-utensils"></i>
  </div>
  <h3>Food Truck Hours & Menu</h3>
  <p class="text-dark">
    The best fish & chips in town! Come find us on Erie Street in
    Victoria BC.
  </p>
  <a href="menu.html#food-truck" class="btn">View Menu</a>
</div>
<div class="info-card animate-on-scroll">
  <div class="info-card__icon">
    <i class="fas fa-fish"></i>
  </div>
  <h3>Seafood Market Hours & Menu</h3>
  <p>
    Shop sustainable, West Coast seafood at our boutique fish market.
  </p>
  <a href="menu.html#market" class="btn">Shop Now</a>
</div>
<div class="info-card animate-on-scroll">
  <div class="info-card__icon">
    <i class="fas fa-leaf"></i>
  </div>
  <h3>Traceability & Sustainable Fishing</h3>
  <p>
    Learn more about sustainable fishing and the ecology behind your
    food.
  </p>
  <a href="education.html" class="btn">Learn More</a>
</div>
</div> */

/* Feature boxes */
.info-card {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Rustic wood patina styling for content blocks */
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f9f9f9"/><path d="M0,0 L100,0 L100,10 C70,8 30,12 0,10 Z" fill="%239e7e5a" opacity="0.05"/><path d="M0,20 L100,20 L100,30 C80,32 60,28 40,30 C20,32 10,28 0,30 Z" fill="%235d4a36" opacity="0.05"/><path d="M0,40 L100,40 L100,50 C75,48 50,52 25,50 C10,48 5,52 0,50 Z" fill="%239e7e5a" opacity="0.05"/><path d="M0,60 L100,60 L100,70 C85,68 70,72 55,70 C40,68 25,72 0,70 Z" fill="%235d4a36" opacity="0.05"/><path d="M0,80 L100,80 L100,90 C90,88 80,92 70,90 C50,88 30,92 0,90 Z" fill="%239e7e5a" opacity="0.05"/></svg>');
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: var(--bright-teal);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.info-card__icon {
  font-size: 2.5rem;
  color: var(--medium-teal);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

/* ============================ */

/* About section with rustic elements */

.community-section {
  background-color: var(--medium-teal);
}

/* Community Section */

.community-content h3 {
  color: var(--white);
}

.community-text {
  flex: 1 1 500px;
  position: relative;
  z-index: 1;
}

.community-text h3 p {
  color: var(--text-light);
  font-family: var(--font-serif);
}

.community-image {
  background-size: cover;
  border-radius: 50%;
  padding: 10px;
  text-align: center;
}

.community-image img {
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  width: 100%;
}

.grid-image {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 50%;
  padding: 10px;
}
.rounded-image {
  border-radius: 50%;
  padding: 10px;
}
.community-image:hover img {
  transform: scale(1.05);
}

.frozen-image {
  width: 100%;
}

/* Services Section */
.services-section {
  position: relative;
}

.services-background {
  opacity: 0.5;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Story Section */
.story-image {
  width: auto;
}

/* Rustic wood texture accent */
.rustic-accent {
  position: absolute;
  width: 110px;
  height: 110px;
  background-color: var(--wood);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}

.rustic-accent.top-left {
  top: -50px;
  left: -50px;
}

.rustic-accent.bottom-right {
  bottom: -50px;
  right: -50px;
}

/* Products/Menu section */
.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;

}

/* Rustic wood patina for product cards */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff"/><path d="M0,0 L100,0 L100,10 C70,8 30,12 0,10 Z" fill="%239e7e5a" opacity="0.05"/><path d="M0,20 L100,20 L100,30 C80,32 60,28 40,30 C20,32 10,28 0,30 Z" fill="%235d4a36" opacity="0.05"/><path d="M0,40 L100,40 L100,50 C75,48 50,52 25,50 C10,48 5,52 0,50 Z" fill="%239e7e5a" opacity="0.05"/><path d="M0,60 L100,60 L100,70 C85,68 70,72 55,70 C40,68 25,72 0,70 Z" fill="%235d4a36" opacity="0.05"/><path d="M0,80 L100,80 L100,90 C90,88 80,92 70,90 C50,88 30,92 0,90 Z" fill="%239e7e5a" opacity="0.05"/></svg>');
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.product-details {
  padding: var(--spacing-md);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 18rem;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
}

.product-price {
  color: var(--bright-teal);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}
.recipes-section a.btn {
  position: absolute;
  bottom: 1rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--dark-teal);
  color: var(--text-light);
}

.testimonials .section-title h2 {
  color: var(--text-light);
}

.testimonials .section-title h2:after {
  background-color: var(--light-teal);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  font-weight: 700;
}

/* Contact section */
.contact-section {
  background-color: white;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-form {
  position: relative;
  z-index: 1;
}

.fleet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills container, crops if necessary, maintains aspect ratio */
  transition: transform 0.3s ease-in-out;
}

.fleet-item:hover .fleet-image img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.fleet-details {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: var(--text-light);
  padding: var(--spacing-md);
  transform: translateY(100%); /* Initially hidden below the item */
  transition: transform 0.3s ease-in-out;
  text-align: center;
  justify-content: center;
}

.fleet-item:hover .fleet-details {
  transform: translateY(0); /* Slides up into view */
}

.fleet-details h4 {
  margin-top: 0;
  color: var(--light-teal);
}

/* Ensure this is present or adjust as needed for your existing fleet section */
.gallery-section {
  padding: var(--spacing-xl) 0;
}

/* Rustic wood patina for contact form */
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff"/><path d="M0,0 L100,0 L100,10 C70,8 30,12 0,10 Z" fill="%239e7e5a" opacity="0.03"/><path d="M0,20 L100,20 L100,30 C80,32 60,28 40,30 C20,32 10,28 0,30 Z" fill="%235d4a36" opacity="0.03"/><path d="M0,40 L100,40 L100,50 C75,48 50,52 25,50 C10,48 5,52 0,50 Z" fill="%239e7e5a" opacity="0.03"/><path d="M0,60 L100,60 L100,70 C85,68 70,72 55,70 C40,68 25,72 0,70 Z" fill="%235d4a36" opacity="0.03"/><path d="M0,80 L100,80 L100,90 C90,88 80,92 70,90 C50,88 30,92 0,90 Z" fill="%239e7e5a" opacity="0.03"/></svg>');
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  color: var(--bright-teal);
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
  margin-top: 5px;
}

/* <!-- CTA Section -->
<section >
  <div class="cta__container">
    <h2 class="cta__title">Ready to taste the difference?</h2>
    <p class="cta__description">
      Visit our seafood market or food truck to experience the finest
      sustainable seafood the West Coast has to offer.
    </p>
    <div class="cta__button-group">
      <a href="food_menus.html" class="btn">View Our Menu</a>
      <a href="contact.html" class="btn btn-outline btn-outline-light">Contact Us</a>
    </div>
  </div>
</section> */

/* CTA Section Styles */
.cta {
  background-color: var(--medium-teal);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta__title {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.cta__description {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

/* ================== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--medium-teal);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-teal);
  color: var(--text-light);
  padding: var(--spacing-lg) 0;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-column h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--light-teal);
}

ul.footer-links {
  list-style: none;
}

.footer-links a, a.footer-links {
  color: var(--pale-teal);
}

.footer-links a:hover, a.footer-links:hover {
  color: var(--light-teal);
}

.social-links {
  margin-top: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--bright-teal);
  transform: translateY(-3px);
}

.social-link__dark {
  color: var(--text-dark);
}

.social-link__dark:hover {
  color: var(--text-light);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility classes */
.text-center, .align-center, .text-align-center {
  text-align: center;
}

.text-right, .align-right, .text-align-right {
  text-align: right;
}

.text-left, .align-left, .text-align-left {
  text-align: left;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

/* Background colors */
.bg-dark-teal {
  background-color: var(--dark-teal);
}

.bg-medium-teal {
  background-color: var(--medium-teal);
  color: var(--text-light);
}

.bg-bright-teal {
  background-color: var(--bright-teal);
  color: var(--text-light);
}

.bg-pale-teal {
  background-color: var(--pale-teal);
}

.bg-sand {
  background-color: var(--sand);
}

.bg-wood {
  background-color: var(--wood);
  color: var(--text-light);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

/* Background colors */
.bg-dark-teal {
  background-color: var(--dark-teal);
}

.bg-medium-teal {
  background-color: var(--medium-teal);
  color: var(--text-light);
}

.bg-bright-teal {
  background-color: var(--bright-teal);
  color: var(--text-light);
}

.bg-pale-teal {
  background-color: var(--pale-teal);
}

.bg-sand {
  background-color: var(--sand);
}

.bg-wood {
  background-color: var(--wood);
  color: var(--text-light);
}
