/*
Theme Name: Cash For Yachts
Theme URI: https://cashforyachts.com
Description: A professional WordPress theme for yacht buying services with a stunning landing page
Version: 1.0
Author: Cash For Yachts
Text Domain: cashforyachts
*/

/* --- CRITICAL VIEWPORT LOCK --- */
/* This prevents the side-to-side 'wiggle' on mobile devices */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
    /* This next line stops the 'bounce' effect on some mobile browsers */
    overscroll-behavior-x: none; 
}

/* Ensure the main theme wrapper also respects the boundary */
#page, .site, .site-main {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

:root {
  --navy-deep: #0a1e42;
  --navy-medium: #1a3a5c;
  --navy-light: #2d4a6f;
  --blue-bright: #4a8fd6;
  --gold-accent: #f4b940;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #e8ecf2;
  --text-dark: #1a1a1a;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-light: #e2e8f0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0.7rem 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-decoration: none;
  font-family: 'Lora', serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--navy-deep);
}

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.site-navigation a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.site-navigation a:hover {
  color: var(--navy-deep);
}

.cta-button {
  background: var(--gold-accent);
  color: var(--navy-deep);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-accent);
}

.cta-button:hover {
  background: #e5a830;
  border-color: #e5a830;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 185, 64, 0.3);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(74, 143, 214, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(244, 185, 64, 0.08) 0%, transparent 50%);
  opacity: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 150px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: 0;
  animation: fadeInUp 1s ease-out 0.4s backwards;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gold-accent);
  color: var(--navy-deep);
  border: 2px solid var(--gold-accent);
}

.btn-primary:hover {
  background: #e5a830;
  border-color: #e5a830;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 185, 64, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

/* Features Section */
.features-section {
  padding: 8rem 3rem;
  background: var(--white);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--navy-deep);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Inter', sans-serif;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 3rem 2.5rem;
  background: var(--white);
  border-radius: 8px;
  transition: all 0.4s ease;
  border: 2px solid var(--light-gray);
  position: relative;
  overflow: visible;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: var(--gold-accent);
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(10, 30, 66, 0.12);
  border-color: var(--gold-accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.8rem;
  border: 3px solid rgba(244, 185, 64, 0.2);
  line-height: 1;
  flex: 0 0 60px;
}

/* Stronger emoji override */
.feature-icon > img.emoji {
  display: inline-block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: middle !important;
  width: 1em !important;
  height: 1em !important;
  border: none !important;
  box-shadow: none !important;
}
.feature-title {
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

/* Process Section */
.process-section {
  padding: 8rem 3rem;
  background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(244, 185, 64, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 143, 214, 0.1) 0%, transparent 50%);
}

.process-section .section-title {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gold-accent);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 auto 2rem;
  font-family: 'Lora', serif;
  box-shadow: 0 8px 20px rgba(244, 185, 64, 0.3);
  border: 4px solid rgba(244, 185, 64, 0.3);
}

.step-title {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.step-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-family: 'Inter', sans-serif;
  max-width: 400px;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  padding: 8rem 3rem;
  background: linear-gradient(135deg, #1a3a5c 0%, var(--navy-deep) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(244, 185, 64, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(74, 143, 214, 0.08) 0%, transparent 50%);
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.btn-cta-large {
  background: var(--gold-accent);
  color: var(--navy-deep);
  padding: 1.3rem 3.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-accent);
  font-family: 'Inter', sans-serif;
}

.btn-cta-large:hover {
  background: #e5a830;
  border-color: #e5a830;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(244, 185, 64, 0.4);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 5rem 3rem 2rem;
  border-top: 3px solid var(--gold-accent);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-s