/* ============================================================
   TIDEWISE SOLUTIONS — Shared Stylesheet
   styles.css
   ============================================================ */

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

:root {
  --teal-dark:   #1A6E7E;
  --teal-mid:    #1E9DB8;
  --teal-light:  #B0E8F5;
  --orange:      #E05A2B;
  --orange-dark: #C04820;
  --sand:        #F5D98A;
  --white:       #FFFFFF;
  --off-white:   #F7FBFC;
  --text-dark:   #1C2B2D;
  --text-mid:    #3D5457;
  --text-light:  #6B8A8D;
  --border:      #D0E9EE;
  --card-shadow: 0 4px 18px rgba(26,110,126,0.10);
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── BANNER ── */
.banner {
  width: 100%;
  display: block;
  overflow: hidden;
  background: #87CEEB;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 48px 24px 36px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--teal-dark);
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.page-header p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--teal-light);
  max-width: 600px;
  margin: 0 auto;
}
.page-header span {
  color: var(--sand);
  font-weight: 700;
}

/* ── CONTENT WRAP ── */
.content-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── STEP CARDS ── */
.main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}
.step-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1.5px solid var(--border);
  padding: 28px 24px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,110,126,0.15);
}
.step-card > *:last-child { margin-top: auto; }
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.step-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.step-card ul li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.step-card ul li::before {
  content: '✓';
  color: var(--teal-mid);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ADVANTAGE BOX ── */
.advantage-box {
  background: var(--teal-dark);
  border-radius: 16px;
  padding: 36px 40px;
  color: var(--white);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.advantage-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 4px;
}
.advantage-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
}
.advantage-box p strong { color: var(--white); }

/* ── TAGLINE ── */
.tagline-section {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-top: 2px solid var(--border);
}
.tagline-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--teal-dark);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.tagline-section h2 em {
  color: var(--orange);
  font-style: normal;
}

/* ── CONTACT BUTTON ── */
.contact-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}
.contact-btn--sand {
  background: var(--sand);
  color: var(--teal-dark);
}
.contact-btn--sand:hover {
  background: #e8c96a;
  transform: translateY(-2px);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--teal-dark);
  color: var(--white);
  padding: 40px 32px 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.footer-cta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--teal-light);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-mascot {
  display: flex;
  align-items: center;
}
.footer-mascot img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.92;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  color: var(--teal-light);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }

/* ── PRICING TABLE ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
}
.pricing-table thead tr {
  background: var(--teal-dark);
  color: var(--white);
}
.pricing-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 20px;
  text-align: left;
}
.pricing-table tbody tr {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.15s;
}
.pricing-table tbody tr:hover { background: #EEF8FB; }
.pricing-table tbody td {
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--text-mid);
  vertical-align: middle;
}
.pricing-table tbody td:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.pricing-table tbody td .retainer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--orange);
}
.pricing-table tbody td .traditional {
  color: var(--text-light);
  font-size: 0.88rem;
  text-decoration: line-through;
}

/* ── PERFORMANCE FEE BOX ── */
.perf-box {
  border: 2px dashed var(--orange);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 32px;
  background: #FFF8F5;
}
.perf-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--orange);
  margin-bottom: 10px;
}
.perf-box p {
  font-size: 0.93rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── LEAD COST COMPARE ── */
.lead-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.lead-box {
  border-radius: 16px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-box.tidewise {
  background: var(--teal-dark);
  color: var(--white);
}
.lead-box.competitor {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
}
.lead-box .badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}
.lead-box.tidewise .badge {
  background: var(--orange);
  color: var(--white);
}
.lead-box.competitor .badge {
  background: var(--border);
  color: var(--text-mid);
}
.lead-box .price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
}
.lead-box.tidewise .price { color: var(--sand); }
.lead-box.competitor .price { color: var(--text-dark); }
.lead-box .label {
  font-size: 0.88rem;
  line-height: 1.5;
}
.lead-box.tidewise .label { color: rgba(255,255,255,0.8); }
.lead-box.competitor .label { color: var(--text-mid); }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
}
.compare-table thead tr {
  background: var(--teal-dark);
  color: var(--white);
}
.compare-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 20px;
  text-align: left;
}
.compare-table tbody tr {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.15s;
}
.compare-table tbody tr:hover { background: #EEF8FB; }
.compare-table tbody td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  vertical-align: middle;
  line-height: 1.5;
}
.compare-table tbody td:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 0.9rem;
}
.compare-table tbody td .investment {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--orange);
  font-size: 0.95rem;
}

/* ── MARKET ANALYSIS BOX ── */
.market-box {
  background: var(--teal-dark);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.market-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--sand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.market-box p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
}

/* ── OPEN OCEAN NOTE ── */
.open-ocean {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 12px 0 32px;
}

/* ── TOUR GUIDE ── */
.tour-guide {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--teal-light);
  border-radius: 16px;
  padding: 20px 28px;
}
.tour-guide img {
  width: 130px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(26,110,126,0.18));
}
.tour-guide-content {
  margin-left: -20px;
}
.tour-guide-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}
.tour-guide-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── COMPASS ── */
.compass-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  margin-left: 24px;
}
.compass-face {
  width: 240px;
  height: 240px;
  object-fit: contain;
  display: block;
}
.compass-needle {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  object-fit: contain;
  transform-origin: center center;
  animation: needle-drift 4s ease-in-out infinite;
}
@keyframes needle-drift {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}
.tour-guide:hover .compass-needle {
  animation: needle-find 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes needle-find {
  0%   { transform: rotate(-5deg); }
  65%  { transform: rotate(380deg); }
  82%  { transform: rotate(354deg); }
  100% { transform: rotate(364deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .main-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .lead-compare { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { align-items: center; }
}
@media (max-width: 640px) {
  .main-grid { grid-template-columns: 1fr; }
  .advantage-box { padding: 28px 24px; }
  .footer-top { flex-direction: column; text-align: center; }
  .pricing-table thead th:nth-child(4),
  .pricing-table tbody td:nth-child(4) { display: none; }
  .tour-guide { flex-direction: column; text-align: center; padding: 28px 24px; gap: 20px; }
}
