/* ============================================================
   Eddie's Inboard Marine — site styles
   Change colors here. These names are used throughout the site.
   ============================================================ */
:root {
  --color-brand: #2563eb;
  --color-brand-hover: #1d4ed8;
  --color-brand-light: #60a5fa;
  --color-brand-soft: #eff6ff;
  --color-brand-softer: #dbeafe;
  --color-brand-pale: #dbeafe;
  --color-text: #111827;
  --color-text-body: #374151;
  --color-text-muted: #4b5563;
  --color-text-subtle: #6b7280;
  --color-text-faint: #9ca3af;
  --color-white: #ffffff;
  --color-page: #ffffff;
  --color-section-alt: #f9fafb;
  --color-border: #f3f4f6;
  --color-border-strong: #e5e7eb;
  --color-footer: #111827;
  --color-footer-border: #1f2937;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --color-star: #facc15;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --max: 80rem;
  --radius: 0.5rem;
  --header-offset: 7.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 100%;
}

ul {
  list-style: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .wrap { padding: 0 2rem; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.logo img {
  height: 4rem;
  width: auto;
}

@media (min-width: 640px) {
  .logo img { height: 5rem; }
}

@media (min-width: 1024px) {
  .logo img { height: 6rem; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.header-phone-desktop {
  display: none;
}

.header-phone-mobile {
  display: inline-flex;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--color-text-muted);
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--color-brand);
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-phone-desktop {
    display: flex;
  }
  .header-phone-mobile,
  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-brand);
}

.btn-white:hover {
  background: #f3f4f6;
}

.btn-outline-white {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline-brand {
  background: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-outline-brand:hover {
  background: var(--color-brand-soft);
}

.btn-full {
  width: 100%;
}

/* Page layout */
main {
  padding-top: var(--header-offset);
  min-height: 70vh;
}

.hero-page {
  background: linear-gradient(to bottom right, var(--color-brand-soft), var(--color-brand-softer));
  padding: 5rem 0;
  text-align: center;
}

.hero-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-page p {
  font-size: 1.25rem;
  color: var(--color-text-body);
  max-width: 48rem;
  margin: 0 auto;
}

.hero-page .accent {
  color: var(--color-brand);
}

.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-brand);
}

.hero-icon svg {
  width: 4rem;
  height: 4rem;
}

@media (min-width: 1024px) {
  .hero-page h1 {
    font-size: 3.75rem;
  }
}

.section {
  padding: 5rem 0;
}

.section-white { background: var(--color-white); }
.section-alt { background: var(--color-section-alt); }
.section-brand {
  background: var(--color-brand);
  color: var(--color-white);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
  .section-title.lg { font-size: 3rem; }
}

.section-lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: 0 auto 1rem;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Home hero slider */
.hero-home {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-home-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.hero-home-content .inner {
  max-width: 48rem;
}

.hero-home h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-home h1 .accent {
  color: var(--color-brand-light);
}

.hero-home .lead {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.hero-home .sub {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.hero-dots button,
.review-dots button {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hero-dots button.is-active {
  background: #3b82f6;
  width: 2rem;
}

.review-dots button {
  background: #d1d5db;
}

.review-dots button.is-active {
  background: var(--color-brand);
  width: 2rem;
}

@media (min-width: 640px) {
  .hero-actions,
  .cta-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-home h1 { font-size: 3.75rem; }
}

/* Reviews */
.reviews {
  background: var(--color-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-star);
}

.stars svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.review-quote {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-quote blockquote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-body);
  line-height: 1.625;
  text-align: center;
}

.review-name {
  font-weight: 700;
  margin-top: 1rem;
}

.review-platform {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Cards / grids */
.grid-3,
.grid-2,
.grid-4,
.grid-3-sm {
  display: grid;
  gap: 2rem;
}

.grid-3,
.grid-2,
.grid-4,
.grid-3-sm {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-3-sm { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-3-sm { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card.lift:hover {
  transform: translateY(-4px);
}

.card-center {
  text-align: center;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h4 {
  font-weight: 700;
}

.font-bold {
  font-weight: 700;
}

.card p,
.muted {
  color: var(--color-text-muted);
}

.icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-brand);
}

.icon-wrap svg {
  width: 3rem;
  height: 3rem;
}

.icon-sm svg {
  width: 2.5rem;
  height: 2.5rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.check-row p {
  color: var(--color-text-body);
}

.check {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.check.sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.check.square {
  border-radius: 0.5rem;
  font-weight: 700;
}

.check.lg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.check.white {
  background: var(--color-white);
  color: var(--color-brand);
}

.photo {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.photo img {
  width: 100%;
  object-fit: cover;
}

.photo-offset {
  margin-top: 2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-44 { height: 11rem; }

.cta-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.cta-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-inner p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-brand-soft);
}

.cta-actions {
  justify-content: center;
}

@media (min-width: 1024px) {
  .cta-inner h2 { font-size: 2.25rem; }
}

.body-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: var(--color-text-body);
}

.feature-list {
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-body);
  margin-bottom: 0.5rem;
}

.feature-list .check {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-brand-softer);
  color: var(--color-brand);
  margin-top: 0;
}

.panel {
  background: var(--color-section-alt);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .panel { padding: 3rem; }
}

.panel-white {
  background: var(--color-white);
}

.numbered {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.glass-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.glass-item .hint {
  color: var(--color-brand-soft);
  font-size: 0.875rem;
}

.order-text { order: 1; }
.order-media { order: 2; }

@media (min-width: 1024px) {
  .order-text { order: 2; }
  .order-media { order: 1; }
}

/* Gallery hover captions */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-card:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  color: var(--color-brand-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-caption h3 {
  color: var(--color-white);
  margin-top: 0.25rem;
}

/* FAQ */
.faq-list {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-strong);
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open button svg {
  transform: rotate(180deg);
}

.faq-item .answer {
  display: none;
  color: var(--color-text-body);
  padding: 0 0 1rem;
}

.faq-item.is-open .answer {
  display: block;
}

.quick-link {
  background: var(--color-section-alt);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.quick-link:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.quick-link:hover h3 {
  color: var(--color-brand);
}

/* Contact */
.contact-card {
  padding: 1.5rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--color-brand-softer);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.form-card {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-body);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-status.is-success {
  display: block;
  color: #15803d;
}

.form-status.is-error {
  display: block;
  color: #b91c1c;
}

.map-frame {
  background: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.privacy h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.privacy ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-body);
}

.privacy li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: #9ca3af;
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-contact svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-brand-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
