/* Coconut Carts mainstream refinement v2.
   Visual-only layer: shared navigation, controls, and light coastal footer. */
:root {
  --ui-teal: #087f89;
  --ui-teal-dark: #05646d;
  --ui-navy: #103b46;
  --ui-yellow: #f4bf24;
  --ui-surface: #f2f7f6;
  --ui-surface-strong: #e6f0ef;
  --ui-border: #bdd1d2;
  --ui-muted: #587078;
  --ui-radius: 12px;
  --ui-shadow: 0 8px 18px rgb(15 23 42 / 12%);
  --ui-shadow-hover: 0 12px 24px rgb(15 23 42 / 17%);
}

::selection {
  color: #fff;
  background: var(--ui-teal);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.demo-bar {
  min-height: 32px;
  font-size: 13px;
  line-height: 1.4;
}

.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.header-call:focus-visible,
.catalog-controls button:focus-visible,
.footer-links a:focus-visible,
.text-link:focus-visible,
.external-link:focus-visible {
  outline: 3px solid var(--ui-yellow);
  outline-offset: 4px;
}

@media (min-width: 821px) {
  .site-header,
  .header-inner {
    min-height: 100px;
  }

  .site-header {
    background: rgb(255 255 255 / 97%);
    border-bottom: 1px solid rgb(13 83 91 / 10%);
    box-shadow: 0 6px 22px rgb(15 23 42 / 5%);
  }

  .header-inner {
    gap: clamp(16px, 1.6vw, 30px);
  }

  .brand {
    flex-basis: clamp(170px, 13vw, 210px);
    width: clamp(170px, 13vw, 210px);
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    min-height: 50px;
    padding-inline: clamp(10px, .9vw, 17px);
    border-radius: 9px;
    color: #244f58;
    font-size: clamp(17px, 1.02vw, 18px);
    font-weight: 650;
    letter-spacing: -.012em;
    transition: color 160ms ease, background-color 160ms ease;
  }

  .site-nav a::after {
    right: 15px;
    bottom: 4px;
    left: 15px;
    height: 3px;
    border-radius: 3px;
    background: var(--ui-teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
  }

  .site-nav a:hover {
    color: var(--ui-teal-dark);
    background: var(--ui-surface);
  }

  .site-nav a[aria-current="page"] {
    color: var(--ui-teal-dark);
    background: transparent;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

.btn,
.hero-actions .btn,
.header-call,
.catalog-controls button {
  min-height: 48px;
  border-radius: var(--ui-radius);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-transform: none;
  transform: translateY(0);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn,
.hero-actions .btn {
  padding: 12px 21px;
  border: 1px solid transparent;
}

.btn-primary,
.btn-blue,
.btn-dark,
.hero .btn-primary,
.header-call {
  color: #fff;
  background: var(--ui-teal);
  border: 0;
  box-shadow: var(--ui-shadow);
}

.btn-primary:hover,
.btn-blue:hover,
.btn-dark:hover,
.hero .btn-primary:hover,
.header-call:hover {
  color: #fff;
  background: var(--ui-teal-dark);
  border-color: transparent;
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-1px);
}

.btn-outline,
.hero .btn-outline,
.contact-copy .btn-outline {
  color: var(--ui-teal-dark);
  background: #fff;
  border-color: #96b8bb;
  box-shadow: 0 4px 12px rgb(15 23 42 / 6%);
}

.btn-outline:hover,
.hero .btn-outline:hover,
.contact-copy .btn-outline:hover {
  color: #084f59;
  background: var(--ui-surface);
  border-color: #5f9298;
  box-shadow: 0 8px 18px rgb(15 23 42 / 11%);
  transform: translateY(-1px);
}

.lithium-feature .btn-outline {
  color: #fff;
  background: transparent;
  border-color: #93b1b8;
  box-shadow: none;
}

.lithium-feature .btn-outline:hover {
  color: var(--ui-navy);
  background: #fff;
  border-color: #fff;
}

.lithium-feature .btn-primary:hover {
  color: #fff;
  background: var(--ui-teal-dark);
}

.btn:active,
.hero-actions .btn:active,
.header-call:active,
.catalog-controls button:active {
  box-shadow: none;
  transform: translateY(1px);
}

.btn[aria-disabled="true"],
.btn:disabled,
.catalog-controls button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}

.header-call {
  min-height: 48px;
  padding-inline: 19px;
  font-size: 16px;
  white-space: nowrap;
}

.catalog-controls button {
  padding: 10px 18px;
  color: #1d535c;
  background: #fff;
  border: 1px solid #a8c2c4;
  box-shadow: none;
}

.catalog-controls button:hover {
  color: var(--ui-teal-dark);
  background: var(--ui-surface);
  border-color: #6e999e;
  box-shadow: 0 6px 15px rgb(15 23 42 / 9%);
  transform: translateY(-1px);
}

.catalog-controls button[aria-pressed="true"] {
  color: #fff;
  background: var(--ui-teal);
  border-color: var(--ui-teal);
  box-shadow: none;
}

.catalog-card .eyebrow {
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
}

.text-link,
.external-link {
  color: var(--ui-teal-dark);
  text-decoration-color: rgb(5 100 109 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover,
.external-link:hover {
  color: var(--ui-navy);
  text-decoration-color: currentColor;
}

.site-footer {
  color: var(--ui-muted);
  background: var(--ui-surface);
  border-top: 1px solid #d2e1e1;
  box-shadow: inset 0 10px 28px rgb(15 23 42 / 3%);
}

/* Keep the location useful when the embedded Google frame is blocked. */
.location-map iframe {
  height: clamp(240px, 22vw, 330px);
  background:
    linear-gradient(135deg, rgb(8 127 137 / 8%), transparent 55%),
    var(--ui-surface);
}

.map-frame {
  position: relative;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgb(8 127 137 / 8%), transparent 55%),
    var(--ui-surface);
}

.map-fallback {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--ui-teal-dark);
  background: rgb(255 255 255 / 94%);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgb(15 23 42 / 12%);
  font-size: 15px;
  font-weight: 650;
}

.map-fallback:hover {
  color: #fff;
  background: var(--ui-teal-dark);
}

/* End-of-page contact areas close the page instead of becoming a second hero. */
.contact-band {
  border: 1px solid var(--ui-border);
}

.contact-band .contact-copy,
.contact-band .contact-details {
  padding-block: 26px;
}

.contact-band h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
}

.footer-main {
  width: min(1520px, var(--shell));
  padding: 42px 0 34px;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(260px, 1.2fr) minmax(300px, 1fr) minmax(220px, .8fr);
  align-items: start;
}

.footer-logo {
  width: 188px;
  margin-bottom: 16px;
}

.footer-main > div:first-child p {
  max-width: 35ch;
  color: var(--ui-muted);
  font-size: 16px;
  line-height: 1.55;
}

.footer-main h3 {
  margin: 7px 0 14px;
  color: var(--ui-navy);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.3;
  text-transform: none;
}

.footer-main > div:nth-child(2) .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}

.footer-links a {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: #4b666d;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.35;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ui-teal-dark);
  text-decoration-color: currentColor;
}

.footer-links a[href^="tel:"] {
  min-height: 48px;
  margin-bottom: 8px;
  padding: 11px 18px;
  color: #fff;
  background: var(--ui-teal);
  border: 0;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
}

.footer-links a[href^="tel:"]:hover {
  color: #fff;
  background: var(--ui-teal-dark);
  border-color: var(--ui-teal-dark);
  box-shadow: var(--ui-shadow-hover);
  text-decoration: none;
}

.footer-bottom {
  width: min(1520px, var(--shell));
  margin: auto;
  padding: 18px 0 21px;
  color: #516970;
  border-top: 1px solid #cfdddd;
  font-size: 13px;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .site-nav a {
    padding-inline: 8px;
    font-size: 16px;
  }

  .header-call {
    padding-inline: 14px;
    font-size: 15px;
  }

  .footer-main {
    gap: 30px;
    grid-template-columns: minmax(220px, 1fr) minmax(210px, .9fr) minmax(205px, .85fr);
  }
}

@media (max-width: 820px) {
  .site-header,
  .header-inner {
    min-height: 76px;
  }

  .brand {
    flex-basis: 150px;
    width: 150px;
    height: 59px;
  }

  .brand img {
    width: 150px;
    height: 59px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid #bfd3d4;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(15 23 42 / 8%);
  }

  .site-nav {
    top: 76px;
    padding: 12px 16px 18px;
  }

  .site-nav a {
    min-height: 50px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 650;
  }

  .site-nav a[aria-current="page"] {
    color: var(--ui-teal-dark);
    background: var(--ui-surface-strong);
  }

  .footer-main {
    padding: 36px 0 28px;
    gap: 28px 34px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding: 24px 0 18px;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-main > div:nth-child(2) .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 142px;
    margin-bottom: 10px;
  }

  .footer-main > div:first-child p {
    max-width: 40ch;
    font-size: 14px;
    line-height: 1.45;
  }

  .footer-main h3 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .footer-links a {
    padding-block: 5px;
    font-size: 14px;
  }

  .footer-links a[href^="tel:"] {
    width: auto;
    min-height: 44px;
    margin-bottom: 2px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .footer-bottom {
    padding: 11px 0 14px;
    font-size: 12px;
  }

  .location-map-heading {
    padding: 18px;
  }

  .location-map iframe,
  .map-frame {
    height: 220px;
    min-height: 220px;
  }

  .map-fallback {
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }

  .contact-band .contact-copy,
  .contact-band .contact-details {
    padding: 22px;
  }

  .contact-band h2 {
    font-size: 32px;
  }

  .service-jumps {
    gap: 8px;
    margin: 14px 0 18px;
  }

  .service-detail-copy,
  .category-feature,
  .service-location {
    padding: 20px;
  }

  .service-detail-media img {
    max-height: 210px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .service-detail-copy h2,
  .category-feature h2 {
    margin-bottom: 10px;
    font-size: 29px;
    line-height: 1.06;
  }

  .service-detail-copy p,
  .category-feature p {
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .catalog-grid {
    gap: 12px;
  }

  .catalog-card {
    display: grid;
    grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
    grid-template-rows: auto;
    border-radius: 18px;
  }

  .catalog-card figure,
  .catalog-card-copy,
  .catalog-card-links {
    grid-row: 1;
    grid-template-rows: none;
  }

  .catalog-card figure {
    grid-column: 1;
    align-self: stretch;
    padding: 12px;
  }

  .catalog-card figure img {
    min-height: 112px;
  }

  .catalog-card figcaption {
    font-size: 12px;
    line-height: 1.35;
  }

  .catalog-card-copy {
    grid-column: 2;
    display: flex;
    padding: 16px 14px;
  }

  .catalog-card .eyebrow {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .catalog-card h3 {
    margin-bottom: 9px;
    font-size: 20px;
  }

  .catalog-card .catalog-spec,
  .catalog-card-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.4;
  }

  .catalog-card-links {
    display: grid;
    margin-top: auto;
    padding-top: 12px;
  }

  .catalog-card-links .btn {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .catalog-variant-links {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-nav a::after,
  .btn,
  .header-call,
  .catalog-controls button {
    transition: none;
  }
}
