/* ==========================================================================
   Dock-Ready LLC — Components: nav, buttons, cards, accordion, form, footer
   ========================================================================== */

/* --- Site header / nav ---------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px var(--gutter);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.site-nav.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 28px rgba(2, 41, 86, 0.10);
}

.site-nav__logo { display: flex; align-items: center; }
.site-nav__logo img { height: 64px; width: auto; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav__links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="true"] { color: var(--teal); }

/* The "Get a Quote" pill is an <a> inside .site-nav__links, so the nav's own
   `a { color: navy }` rule outranks .btn--sm on specificity and was painting
   navy text on the teal pill. Pin it white in both states. */
.site-nav__links a.btn--sm,
.site-nav__links a.btn--sm:hover { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-nav { padding-inline: var(--gutter); }
  .site-nav__logo img { height: 52px; }
  .nav-toggle { display: flex; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    padding: 18px var(--gutter) 28px;
    box-shadow: 0 16px 30px rgba(2, 41, 86, 0.12);
    border-bottom: 1px solid var(--border);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links .btn { justify-content: center; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 17px 34px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast);
}
.btn__arrow { font-size: 1.25rem; line-height: 1; }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover {
  background: var(--teal-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-hi);
}

.btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 28px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(2, 41, 86, 0.3);
}
.btn--light:hover { color: var(--navy); transform: translateY(-2px); }

.btn--sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 11px 22px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 149, 171, 0.35);
}
.btn--sm:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}

.card--panel { padding: 48px 44px; }

.card--dark {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  border: none;
  color: #fff;
}

/* Work / product card ------------------------------------------------------ */
.work-card {
  background: var(--surface);
  border: 1px solid rgba(123, 166, 184, 0.25);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hi);
}
/* aspect-ratio alone — do NOT add max-height. A constrained height on an element
   with an aspect ratio makes the browser shrink the WIDTH to keep the ratio,
   which pulls the image away from the card edge. */
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tint-bottom);
}
/* <picture> is an inline wrapper with no box of its own, so a percentage height
   on the <img> has nothing to resolve against. Pin the picture to the media box
   and the image fills it reliably. */
.work-card__media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__body { padding: 26px 28px 28px; }
.work-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.work-card__head h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.work-card__body p {
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(0, 149, 171, 0.1);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  white-space: nowrap;
}

/* --- Testimonial ---------------------------------------------------------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-on-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 32px 28px;
  transition: background var(--t-med), transform var(--t-med);
}
.quote-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.quote-card__stars {
  color: var(--teal);
  font-size: 1.0625rem;
  letter-spacing: 3px;
}
.quote-card blockquote {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-on-dark);
}
.quote-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 149, 171, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
.quote-card__name {
  font-family: var(--font-display);
  font-size: 0.90625rem;
  font-weight: 700;
  color: #fff;
}
.quote-card__loc {
  font-size: 0.78125rem;
  color: var(--steel);
  font-weight: 600;
}

/* --- Accordion (FAQ) ------------------------------------------------------ */
.accordion { display: flex; flex-direction: column; gap: 14px; }

.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-med), background var(--t-med);
}
.accordion__item.is-open {
  background: rgba(0, 149, 171, 0.06);
  box-shadow: 0 8px 24px rgba(2, 41, 86, 0.08);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}
.accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 149, 171, 0.12);
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform var(--t-slow), background var(--t-slow);
}
.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
  background: rgba(0, 149, 171, 0.2);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  padding: 0 26px 24px;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--text-muted);
}
/* No-JS fallback: every answer stays open and readable. */
html:not(.js) .accordion__panel { grid-template-rows: 1fr; }

/* --- Quote form ----------------------------------------------------------- */
.quote-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}
.quote-form__full { grid-column: 1 / -1; }

.quote-form input,
.quote-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: #fff;
}
.quote-form textarea { resize: vertical; min-height: 92px; }
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: rgba(255, 255, 255, 0.65); }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}
.quote-form input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}
.quote-form input:disabled,
.quote-form textarea:disabled,
.quote-form button:disabled { opacity: 0.75; cursor: not-allowed; }

/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status--ok {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.form-status--error {
  background: rgba(255, 236, 236, 0.95);
  border: 1px solid #f0b4b4;
  color: #7a1f1f;
}
.form-status--error a { color: #7a1f1f; text-decoration: underline; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 36px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-on-dark);
}
.site-footer__logo { height: 120px; width: auto; margin-bottom: 20px; }
.site-footer__blurb {
  font-size: 0.90625rem;
  line-height: 1.7;
  color: var(--steel);
  max-width: 280px;
}
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__list a,
.site-footer__list span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.site-footer__list span { color: var(--steel); font-size: 0.875rem; }
.site-footer__list a:hover { color: var(--teal); }

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background var(--t-fast);
}
.social:hover { background: var(--teal); }
/* The source icon has no fill attribute, so it paints black. Force it white. */
.social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

.site-footer__tagline {
  text-align: center;
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.84375rem;
  color: var(--steel);
}
.site-footer__by {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.site-footer__by svg {
  width: 60px;
  height: auto;
  margin-top: -10px;
}

@media (max-width: 640px) {
  .site-footer { padding-top: 56px; }
  .site-footer__grid { gap: 36px; padding-bottom: 40px; }
  .site-footer__legal { justify-content: center; text-align: center; }
}
