/* Bluff Yacht Club - Main Stylesheet */
/* Colour palette: medium blues */

:root {
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --primary-darker: #0D47A1;
  --primary-light: #42A5F5;
  --primary-lighter: #BBDEFB;
  --accent: #0288D1;
  --text-dark: #212121;
  --text-muted: #546E7A;
  --bg-light: #F5F9FC;
  --bg-white: #FFFFFF;
  --footer-bg: #0D47A1;
  --success: #2E7D32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary-darker);
}

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

a:hover {
  color: var(--primary-dark);
}

/* Navbar */
.navbar {
  background-color: var(--primary-dark) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--accent) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,165.3C672,171,768,213,864,218.7C960,224,1056,192,1152,165.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
}

.hero-buttons .btn {
  margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.35);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-width: 2px;
  font-weight: 500;
}

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

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--primary-darker);
  font-weight: 600;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Feature boxes */
.feature-box {
  text-align: center;
  padding: 1.5rem;
}

.feature-box .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* About intro */
.about-intro {
  background: var(--bg-white);
}

/* Services list */
.service-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

.service-list li:last-child {
  border-bottom: none;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

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

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

/* FAQ Accordion */
.accordion-button {
  font-weight: 500;
  color: var(--primary-darker);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-lighter);
  color: var(--primary-darker);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.accordion-item {
  border: 1px solid #e0e0e0;
  margin-bottom: 0.5rem;
  border-radius: 8px !important;
  overflow: hidden;
}

/* Contact */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Membership cards */
.membership-card {
  border-top: 4px solid var(--primary);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Utility */
.bg-primary-soft {
  background-color: var(--primary-lighter);
}

.text-primary-dark {
  color: var(--primary-darker) !important;
}

.img-rounded {
  border-radius: 10px;
}

/* Page header for inner pages */
.page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 3.5rem 0 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Bootstrap overrides */
.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}
