/* J and J Charters: the look of the live jandjcharters.com.
   Colors come from the manifest theme in site/site.yaml: accent is the menu
   green, accent-strong the link blue, success the contact-box green and
   warning the menu's hover orange. This file only places them. */

body.cb-ssr {
  background: var(--bg) url("/assets/photos/lodging7.jpg") top right / cover no-repeat fixed;
}

/* The green menu bar. */
.site-header {
  background: var(--accent);
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.3);
  border-bottom: 0;
}

.site-header,
.site-header a,
.site-header .site-branding-tagline {
  color: color-mix(in srgb, var(--accent-on) 87%, var(--accent));
}

/* "J and J Charters" over a smaller "Coffman Cove, AK", centered. */
.site-header .site-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.site-header .site-branding-tagline {
  margin: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Light only, like the live site (see the theme note in site.yaml). */
body.cb-ssr .cb-ssr-theme-toggle {
  display: none;
}

.site-header .site-navbar a:hover,
.site-header .site-navbar a:focus-visible,
.site-header .site-navbar a[aria-current="page"] {
  color: var(--warning);
  background: transparent;
  text-decoration: none;
}

/* Every page sits on a see-through white panel over the photo. */
main.container {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  margin-top: 0;
}

.site-footer {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

.cb-prose a {
  color: var(--accent-strong);
}

/* The green contact box and the logo under it, on the home page. */
.jj-contact {
  background: var(--success);
  color: var(--text);
  padding: 20px;
}

.jj-contact h2 {
  margin-top: 0;
}

.jj-contact a,
.cb-prose .jj-contact a {
  color: var(--accent-on);
}

.jj-logo img {
  display: block;
  width: 90%;
  height: auto;
  margin: 1rem auto 0;
}

/* The contact page: centered details and a centered form, as on the live site. */
.jj-contact-info {
  text-align: center;
  font-weight: 700;
}

.cb-fern--prose:has(.jj-contact-info) h1,
.cb-fern--prose:has(.jj-contact-info) .jj-contact-info ~ p {
  text-align: center;
}

.cb-fern--contact_form {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
}
