/* ===== Ferry2.app — Global Styles ===== */
:root {
  --primary: #0057b8;
  --primary-dark: #003d82;
  --accent: #00b4d8;
  --accent-light: #90e0ef;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f5f9fc;
  --border: #e0e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  font-size: 1.6rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text); font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 24px;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0057b8 0%, #00b4d8 50%, #0077b6 100%);
  overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 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,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,186.7C960,213,1056,235,1152,224C1248,213,1344,171,1392,149.3L1440,128L1440,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"/></svg>') no-repeat bottom/cover;
}
.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 60px 0; }
.hero h1 { font-size: 3.2rem; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 40px; }

/* ---------- SEARCH FORM ---------- */
.search-box {
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto;
}
.search-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end;
}
.form-group { text-align: left; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 1rem; transition: border-color var(--transition);
  background: var(--bg-light);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border: none; border-radius: 10px; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,87,184,.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0096c7; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- SECTIONS ---------- */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 40px 32px;
  border: 1px solid var(--border); transition: all var(--transition); text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.service-icon {
  width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.service-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: .95rem; }

/* ---------- HOW IT WORKS ---------- */
.how-section { background: var(--bg-light); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 700;
}
.step h3 { margin-bottom: 8px; color: var(--dark); }
.step p { color: var(--text-light); font-size: .95rem; }

/* ---------- DESTINATIONS ---------- */
.destinations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dest-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 280px; cursor: pointer;
}
.dest-card .dest-bg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.dest-card:hover .dest-bg { transform: scale(1.08); }
.dest-card .dest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 24px;
}
.dest-card h3 { color: #fff; font-size: 1.15rem; }
.dest-card span { color: rgba(255,255,255,.8); font-size: .85rem; }

/* ---------- STATS ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat h3 { font-size: 2.4rem; font-weight: 800; color: #fff; }
.stat p { color: rgba(255,255,255,.85); margin-top: 4px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.testimonial .stars { color: #f5a623; margin-bottom: 12px; font-size: 1.1rem; }
.testimonial p { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial .author { font-weight: 600; color: var(--dark); }
.testimonial .location { font-size: .85rem; color: var(--text-light); }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--dark); text-align: center; padding: 80px 0;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 32px; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { background: #0d0d1a; color: rgba(255,255,255,.7); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: .85rem;
}
.social-links { display: flex; gap: 16px; }
.social-links a { color: rgba(255,255,255,.5); font-size: 1.2rem; }
.social-links a:hover { color: var(--accent); }

/* ---------- PAGE HEADERS (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 140px 0 80px; text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.8rem; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

/* ---------- ABOUT PAGE ---------- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2rem; color: var(--dark); margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-image { border-radius: var(--radius); overflow: hidden; background: var(--bg-light); min-height: 360px; display: flex; align-items: center; justify-content: center; }
.about-image .placeholder-img { font-size: 6rem; opacity: .3; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card { text-align: center; padding: 32px; }
.value-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { color: var(--dark); margin-bottom: 8px; }
.value-card p { color: var(--text-light); font-size: .95rem; }

/* ---------- BLOG PAGE ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-thumb { height: 200px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.blog-thumb .placeholder-img { font-size: 3rem; opacity: .3; }
.blog-body { padding: 24px; }
.blog-tag { display: inline-block; padding: 4px 12px; background: var(--accent-light); color: var(--primary-dark); border-radius: 20px; font-size: .75rem; font-weight: 600; margin-bottom: 10px; }
.blog-body h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }
.blog-body p { color: var(--text-light); font-size: .9rem; margin-bottom: 12px; }
.blog-meta { font-size: .8rem; color: var(--text-light); }

/* ---------- ROUTES PAGE ---------- */
.routes-filter { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 20px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-weight: 500; transition: all var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.routes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.route-card {
  display: flex; align-items: center; gap: 24px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition); background: #fff;
}
.route-card:hover { box-shadow: var(--shadow); border-color: var(--accent-light); }
.route-icon { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.route-info h3 { color: var(--dark); margin-bottom: 4px; }
.route-info p { color: var(--text-light); font-size: .9rem; }
.route-price { margin-left: auto; text-align: right; }
.route-price .price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.route-price .label { font-size: .8rem; color: var(--text-light); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .search-grid { grid-template-columns: 1fr; }
  .services-grid, .steps, .testimonials-grid, .blog-grid, .values-grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .route-card { flex-direction: column; text-align: center; }
  .route-price { margin-left: 0; }
}

/* ---------- FAQ SECTION ---------- */
.faq-section { background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden; transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
  padding: 20px 24px; font-weight: 600; font-size: 1.05rem; color: var(--dark);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); font-weight: 300; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 20px; color: var(--text-light); line-height: 1.8; }

/* ---------- CONTENT BLOCKS (SEO text) ---------- */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 16px; }
.content-block h3 { font-size: 1.3rem; color: var(--dark); margin: 28px 0 12px; }
.content-block p { color: var(--text-light); line-height: 1.85; margin-bottom: 16px; }

/* ---------- SERVICE CARDS AS LINKS ---------- */
a.service-card { color: inherit; display: block; }
a.service-card:hover { color: inherit; }
