/* SailAwayClub.com — Cruise Accessories Affiliate Site */
/* Design: Nautical Navy + White + Gold */

:root {
  --navy: #1B3A5C;
  --navy-dark: #0F2640;
  --navy-light: #2A5580;
  --gold: #C9A84C;
  --gold-light: #DFC575;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #ADB5BD;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; z-index: 1000;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ── Navigation ── */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0; padding-bottom: 0;
  min-height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 1.25rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.nav-brand:hover { color: var(--gold); }
.nav-brand svg { flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85); padding: 8px 12px;
  font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm);
  transition: all var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); cursor: pointer; padding: 8px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-dark); padding: 12px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 16px 0; font-size: 0.85rem; color: var(--gray-500);
}
.breadcrumbs a { color: var(--navy-light); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 6px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white); text-align: center;
  padding: 80px 20px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40 Q20 30 40 40 Q60 50 80 40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; margin-bottom: 16px;
  line-height: 1.15;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 640px; margin: 0 auto 32px;
  opacity: 0.9; line-height: 1.5;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-dark);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1.05rem;
  transition: all var(--transition);
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--gold-light); color: var(--navy-dark);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

/* Category hero (smaller) */
.hero-category {
  padding: 48px 20px 40px;
}
.hero-category h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.hero-category p { margin-bottom: 0; font-size: 1.05rem; }

/* ── Section ── */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }
.section-title {
  text-align: center; font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700; margin-bottom: 12px; color: var(--navy);
}
.section-subtitle {
  text-align: center; color: var(--gray-700);
  max-width: 600px; margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* ── Category Cards (homepage) ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none; color: inherit; display: block;
  border: 1px solid var(--gray-200);
}
.category-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  color: inherit; border-color: var(--gold);
}
.category-card-img {
  height: 200px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 3rem;
  position: relative; overflow: hidden;
}
.category-card-body { padding: 20px; }
.category-card-body h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
  color: var(--navy);
}
.category-card-body p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.5; }
.category-card-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
  margin-top: 12px;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.product-card-img {
  height: 200px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 2.5rem;
}
.product-card-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}
.product-card-body h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 6px; color: var(--navy);
}
.product-card .price {
  color: var(--gold); font-weight: 700;
  font-size: 1rem; margin-bottom: 8px;
}
.product-card .description {
  color: var(--gray-700); font-size: 0.9rem;
  line-height: 1.5; margin-bottom: 16px; flex: 1;
}
.shop-buttons {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
  flex: 1; min-width: 120px; text-align: center;
}
.btn-etsy {
  background: #F1641E; color: var(--white);
}
.btn-etsy:hover { background: #D45518; color: var(--white); }
.btn-amazon {
  background: #FF9900; color: var(--gray-900);
}
.btn-amazon:hover { background: #E68A00; color: var(--gray-900); }

/* ── About Section ── */
.about-content {
  max-width: 800px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.7;
  color: var(--gray-700);
}
.about-content p { margin-bottom: 16px; }
.about-content strong { color: var(--navy); }

/* ── Tip Box ── */
.tip-box {
  background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 32px 0;
}
.tip-box strong { color: var(--navy); }

/* ── Blog Placeholder ── */
.blog-placeholder {
  text-align: center; padding: 80px 20px;
  color: var(--gray-500);
}
.blog-placeholder svg { margin: 0 auto 20px; opacity: 0.3; }

/* ── Blog Article Styles ── */
.article-meta {
  font-size: 0.9rem; color: var(--gray-500);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.affiliate-notice {
  background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px; margin-bottom: 32px;
  font-size: 0.9rem; color: var(--gray-700); line-height: 1.5;
}
.affiliate-notice a { color: var(--gold); font-weight: 600; }
.article-content {
  max-width: 800px; font-size: 1.05rem;
  line-height: 1.75; color: var(--gray-700);
}
.article-content h2 {
  color: var(--navy); font-size: 1.4rem; font-weight: 700;
  margin: 40px 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.article-content h3 {
  color: var(--navy); font-size: 1.15rem; font-weight: 700;
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 16px; }
.article-content a { color: var(--gold); font-weight: 600; }
.article-content a:hover { color: var(--gold-light); }
.article-content ul, .article-content ol {
  margin: 0 0 16px 24px; line-height: 1.8;
}
.article-content li { margin-bottom: 4px; }
.article-content strong { color: var(--navy); }
.article-byline {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem; color: var(--gray-500);
  font-style: italic;
}
.related-posts {
  margin-top: 40px; padding: 24px;
  background: var(--off-white); border-radius: var(--radius);
}
.related-posts h3 {
  color: var(--navy); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 12px;
}
.related-posts ul { list-style: none; }
.related-posts li { margin-bottom: 8px; }
.related-posts a { color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.related-posts a:hover { color: var(--gold-light); }

/* ── Blog Listing Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  color: inherit; border-color: var(--gold);
}
.blog-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--white);
  position: relative; overflow: hidden;
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 6px; color: var(--navy);
}
.blog-card-date {
  font-size: 0.8rem; color: var(--gray-500); margin-bottom: 10px;
}
.blog-card-excerpt {
  color: var(--gray-700); font-size: 0.92rem;
  line-height: 1.5; flex: 1; margin-bottom: 12px;
}
.blog-card-link, .read-more {
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
}
.blog-card-icon {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--white);
}
.blog-meta, .blog-card-date {
  font-size: 0.82rem; color: var(--gray-500); margin-bottom: 8px;
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer h4 {
  color: var(--white); font-size: 1rem;
  margin-bottom: 16px; font-weight: 700;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 0.8rem;
}
.footer-disclosure {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  max-width: 700px; margin: 12px auto 0;
  line-height: 1.5;
}

/* ── 404 ── */
.page-404 {
  text-align: center; padding: 120px 20px;
}
.page-404 h1 { font-size: 6rem; color: var(--navy); font-weight: 800; }
.page-404 p { font-size: 1.2rem; color: var(--gray-700); margin: 16px 0 32px; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero { padding: 56px 16px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .shop-buttons { flex-direction: column; }
  .btn { min-width: unset; }
}

/* ── Focus styles for accessibility ── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar, .footer, .nav-toggle { display: none; }
  .hero { background: var(--gray-100); color: var(--gray-900); }
}
