/* ===== Edinburgh Cruise — Premium Nautical Design ===== */

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

:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --navy-mid: #1a2d50;
  --gold: #c9a84c;
  --gold-light: #e4cc7a;
  --gold-dark: #a8893a;
  --white: #ffffff;
  --off-white: #f5f3ef;
  --grey-light: #e8e6e1;
  --grey: #8a8a8a;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo .logo-accent { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,168,76,0.4); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.75) 60%, rgba(10,22,40,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Hero (shorter) */
.hero-page { min-height: 55vh; }
.hero-page .hero-content { padding: 140px 24px 60px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-light); color: var(--gold); transform: translateY(-2px); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-cream { background: var(--off-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .overline {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* Gold divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 24px;
  border-radius: 2px;
}

/* --- Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img .card-price {
  position: absolute;
  bottom: 16px; right: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.card-body { padding: 28px; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--gold-dark); }
.card-body p { color: var(--text-light); font-size: 0.95rem; }
.card-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-light);
  font-size: 0.85rem;
  color: var(--grey);
}
.card-meta span { display: flex; align-items: center; gap: 6px; }

/* --- Features / Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 60px 0;
}
.stat-item h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 4px; }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.feature-item { text-align: center; padding: 40px 24px; }
.feature-icon {
  width: 70px; height: 70px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.section-dark .feature-icon { background: rgba(201,168,76,0.15); }
.feature-item p { color: var(--text-light); font-size: 0.95rem; }
.section-dark .feature-item p { color: rgba(255,255,255,0.7); }

/* --- Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.two-col-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text .overline {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.two-col-text p { color: var(--text-light); }

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.pricing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--grey-light);
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price { font-size: 2.8rem; font-family: var(--font-heading); color: var(--navy); font-weight: 700; margin: 16px 0; }
.pricing-card .price span { font-size: 1rem; color: var(--grey); font-family: var(--font-body); }
.pricing-card ul { list-style: none; margin: 24px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--grey-light); color: var(--text-light); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.section-dark .testimonial-card { background: var(--navy-light); }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; }
.section-dark .testimonial-card p { color: rgba(255,255,255,0.8); }
.testimonial-author { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.section-dark .testimonial-author { color: var(--gold); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--grey-light);
  padding: 0;
}
.section-dark .faq-item { border-color: rgba(255,255,255,0.1); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.section-dark .faq-question { color: var(--white); }
.faq-question:hover { color: var(--gold); }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  transition: all var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 0 24px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}
.section-dark .faq-answer-inner { color: rgba(255,255,255,0.7); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 40px;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-item p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }

/* --- Content Page --- */
.content-section { padding: 80px 0; }
.content-wrap { max-width: 800px; margin: 0 auto; }
.content-wrap h2 { margin-top: 40px; margin-bottom: 16px; }
.content-wrap h3 { margin-top: 32px; margin-bottom: 12px; }
.content-wrap ul, .content-wrap ol { margin: 0 0 20px 24px; }
.content-wrap li { margin-bottom: 8px; color: var(--text-light); }
.content-wide { max-width: var(--max-width); margin: 0 auto; }

/* Info boxes */
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.info-box h4 { color: var(--navy); margin-bottom: 8px; }
.info-box p { margin: 0; color: var(--text-light); }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.95rem; margin-top: 16px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- 404 --- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 40px 24px;
}
.page-404 h1 { font-size: 8rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.page-404 h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 16px; }
.page-404 p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 8px; }

  .hero { min-height: 90vh; }
  .hero-page { min-height: 45vh; }
  .section { padding: 60px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
