/* ================================================================
   Island Ventures — main.css
   ================================================================ */

/* ---- Custom properties ---------------------------------------- */
:root {
  --color-ocean:   #1ea0c3;
  --color-ocean-dark: #1480a0;
  --color-dark:    #1e1f26;
  --color-text:    #2c2c2c;
  --color-muted:   #666;
  --color-bg:      #fff;
  --color-bg-alt:  #f5f8fa;
  --color-border:  #dde3e8;

  --font-body:     'Lato', sans-serif;
  --font-size-base: 1rem;
  --line-height:   1.7;

  --max-width:     1160px;
  --header-height: 72px;
  --radius:        6px;
  --transition:    0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ocean); text-decoration: none; }
a:hover { color: var(--color-ocean-dark); text-decoration: underline; }
ul { list-style: disc; padding-left: 1.5em; }
ol { padding-left: 1.5em; }
address { font-style: normal; }

/* ---- Typography ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 900; margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

figure { margin: 1.5em 0; }
figcaption { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.4em; text-align: center; }

table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
th, td { padding: 0.6em 0.9em; border: 1px solid var(--color-border); text-align: left; }
th { background: var(--color-bg-alt); font-weight: 700; }

blockquote {
  border-left: 4px solid var(--color-ocean);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  color: var(--color-muted);
  font-style: italic;
}

/* ---- Layout helpers ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  height: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 56px; height: auto; }

/* ---- Nav toggle (mobile) -------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Nav ------------------------------------------------------ */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-list > li > a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ---- Dropdown menus ------------------------------------------- */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  list-style: none;
  padding: 6px 0 0.4rem;
  margin: 0;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 0.45rem 1rem;
  color: #d0d8e0;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.dropdown li a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }

/* ---- Header book button --------------------------------------- */
.header-book {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-book {
  background: var(--color-ocean);
  color: #fff;
}
.btn-book:hover { background: var(--color-ocean-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-ocean);
  border: 2px solid var(--color-ocean);
}
.btn-outline:hover { background: var(--color-ocean); color: #fff; }

/* ---- Main content area ---------------------------------------- */
.site-main { min-height: 60vh; }

.content-wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* ---- Content element spacing ---------------------------------- */
.content-wrap h1 { margin-bottom: 1rem; }
.content-wrap h2 { margin-top: 2rem; }
.content-wrap h3 { margin-top: 1.75rem; }
.content-wrap h4 { margin-top: 1.5rem; }

.content-wrap figure { margin: 2rem 0; }
.content-wrap figure img { border-radius: var(--radius); }

.content-wrap ul, .content-wrap ol {
  margin-bottom: 1em;
  padding-left: 1.75em;
}
.content-wrap li { margin-bottom: 0.25em; }

/* Images that were originally float-left/right */
.content-wrap img[alt] {
  border-radius: var(--radius);
}

/* Inline price/booking callout boxes left by Stackable pricing blocks */
.content-wrap > div > div {
  margin-bottom: 1rem;
}

/* ---- Booking CTA blocks (FareHarbor links) -------------------- */
.content-wrap a[href*="fareharbor"] {
  display: inline-block;
  background: var(--color-ocean);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.5rem 0;
  transition: background var(--transition);
}
.content-wrap a[href*="fareharbor"]:hover {
  background: var(--color-ocean-dark);
  color: #fff;
  text-decoration: none;
}

/* ---- Footer --------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: #a8b4be;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3rem 1.25rem 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.5; }
.footer-brand img { margin-bottom: 0.5rem; }

.footer-contact address { font-size: 0.875rem; line-height: 1.8; }
.footer-contact a { color: #a8b4be; }
.footer-contact a:hover { color: #fff; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #a8b4be; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-accreditation { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-accreditation img { max-width: 130px; }
.footer-tagline { font-size: 0.75rem; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #6a7a86;
}

/* ---- Responsive: tablet --------------------------------------- */
@media (max-width: 960px) {
  :root { --header-height: 64px; }

  .nav-list > li > a { padding: 0.45rem 0.55rem; font-size: 0.8rem; }
  .header-book { display: none; }
}

/* ---- Responsive: mobile --------------------------------------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-dark);
    overflow-y: auto;
    padding: 1rem 0 2rem;
    margin-left: 0;
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li > a {
    padding: 0.8rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
  }

  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.25);
    padding: 0;
  }
  .dropdown li a {
    padding: 0.6rem 1.25rem 0.6rem 2.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .content-wrap { padding: 1.5rem 1rem 2.5rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- Homepage: intro block ------------------------------------ */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.intro-text .btn { margin-top: 0.75rem; }
.intro-image img { border-radius: var(--radius); width: 100%; }

@media (max-width: 720px) {
  .intro-block { grid-template-columns: 1fr; }
  .intro-image { order: -1; }
}

/* ---- Homepage: services grid ---------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card figure { margin: 0; }
.service-card figure img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.service-card h3 { margin: 1rem 1rem 0.15rem; font-size: 1.2rem; }
.service-price { color: var(--color-ocean); font-weight: 700; font-size: 0.9rem; margin: 0 1rem 0.5rem; }
.service-card p:not(.service-price) { font-size: 0.9rem; margin: 0 1rem 1rem; flex: 1; }
.service-card .btn { margin: auto 1rem 1.25rem; align-self: flex-start; }

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Homepage: why us ----------------------------------------- */
.why-us {
  margin-bottom: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-border);
}
.why-us h2 { margin-top: 0; }

.why-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.why-point h3 { font-size: 1rem; margin-top: 0; color: var(--color-ocean); }
.why-point p { font-size: 0.9rem; margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.features-grid ul { list-style: none; padding: 0; margin: 0; }
.features-grid li { font-size: 0.875rem; padding: 0.25rem 0 0.25rem 1.25rem; position: relative; }
.features-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--color-ocean); font-weight: 700; }

@media (max-width: 720px) {
  .why-points { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ---- FAQ section ---------------------------------------------- */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}
.faq-section h2 { margin-top: 0; }

.faq dt {
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 1.25rem;
  cursor: pointer;
}
.faq dt::before {
  content: "Q: ";
  color: var(--color-ocean);
}
.faq dd {
  margin-left: 0;
  margin-top: 0.35rem;
  color: var(--color-text);
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
}

/* ---- Reviews section ------------------------------------------ */
.reviews-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-border);
}
.reviews-section h2 { margin-top: 0; }
.reviews-source { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.review-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.review-stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.review-card blockquote {
  border: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--color-text);
  font-size: 0.93rem;
  line-height: 1.6;
}
.review-card cite {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: normal;
  font-weight: 700;
}
.reviews-cta { text-align: center; margin-top: 1.5rem; }

/* ---- Contact page --------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-ocean);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 0.5rem; width: 100%; }

.contact-details h2 { margin-top: 0; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
