/* ==========================================================================
   Penetanguishene.com — Maritime-Inspired Stylesheet
   Deep Navy & Ocean Blue | Nautical, Clean, Historic
   ========================================================================== */

/* ---------- Imports & Variables ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --accent: #4299e1;
  --warm-accent: #ed8936;
  --dark: #171923;
  --light-bg: #ebf8ff;
  --text: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --border: #cbd5e0;
  --shadow: 0 4px 20px rgba(26, 54, 93, 0.12);
  --shadow-lg: 0 10px 40px rgba(26, 54, 93, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75em;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.15rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--warm-accent); }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-warm { color: var(--warm-accent); }
.section-padding { padding: 5rem 0; }
.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-primary { background: var(--primary); color: var(--white); }
.bg-primary-dark { background: var(--primary-dark); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--warm-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: #3182ce;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-warm {
  background: var(--warm-accent);
  color: var(--white);
}
.btn-warm:hover {
  background: #dd6b20;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 36, 64, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(15, 36, 64, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.site-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.site-logo a:hover { color: var(--accent); }
.site-logo .tagline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(66, 153, 225, 0.2);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 36, 64, 0.65) 0%,
    rgba(26, 54, 93, 0.55) 50%,
    rgba(23, 25, 35, 0.8) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}
.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content .hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Mini hero for inner pages */
.page-hero {
  position: relative;
  padding: 10rem 0 4rem;
  background: var(--primary-dark);
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg {
  opacity: 0.35;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,36,64,0.5) 0%, rgba(15,36,64,0.85) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.page-hero .breadcrumb a {
  color: var(--accent);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(203, 213, 224, 0.4);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  height: 220px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-body {
  padding: 1.75rem;
}
.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* ---------- Split Section ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  overflow: hidden;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}
.split-content h2 { margin-bottom: 0.75rem; }
.split-content p { margin-bottom: 1rem; }

/* ---------- Feature Boxes ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(203, 213, 224, 0.3);
}
.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-box h4 {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.feature-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Info Box / Callout ---------- */
.info-box {
  background: var(--light-bg);
  border-left: 4px solid var(--accent);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.info-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.info-box p:last-child { margin-bottom: 0; }

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-box h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Lists Styled ---------- */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Table ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.styled-table th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.styled-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background: var(--light-bg); }

/* ---------- Content Page Styles ---------- */
.content-section {
  padding: 4rem 0;
}
.content-section + .content-section {
  padding-top: 0;
}
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.content-wrap h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.content-wrap h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.content-image img {
  width: 100%;
  display: block;
}

.two-col-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Directory Listing ---------- */
.directory-category {
  margin-bottom: 3rem;
}
.directory-category h3 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.directory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
  border: 1px solid rgba(203, 213, 224, 0.3);
  transition: var(--transition);
}
.directory-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.directory-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.directory-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Contact Form ---------- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-about .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}
.footer-about .footer-tagline {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; }
  .split-content { padding: 3rem 2rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
  }
  .mobile-toggle { display: block; }

  .hero-content h1 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero { padding: 8rem 0 3rem; }

  .card-grid, .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col-content { grid-template-columns: 1fr; }

  .split-section { grid-template-columns: 1fr; }
  .split-content { padding: 2rem 1.5rem; }

  .cta-box { padding: 2.5rem 1.5rem; }

  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section-padding { padding: 3rem 0; }
  .content-section { padding: 2.5rem 0; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

/* ---------- Wave Divider ---------- */
.wave-divider {
  position: relative;
  overflow: hidden;
  height: 60px;
  background: transparent;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ---------- Anchor Decorative Divider ---------- */
.anchor-divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--accent);
  font-size: 1.5rem;
  position: relative;
}
.anchor-divider::before,
.anchor-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--border);
}
.anchor-divider::before { right: calc(50% + 25px); }
.anchor-divider::after { left: calc(50% + 25px); }
