/* CU PACIFIC | Readable site stylesheet
   Staging root: /
   Keep the approved logo, navigation and harbor layout unchanged.
   Edit the named sections below rather than adding competing overrides.
*/

/* CU PACIFIC — READABLE STYLESHEET
   Formatting cleanup of the uploaded CSS; no layout redesign yet.
   Staging asset paths use /.
*/

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #205d80;
  color: #333;
  font: 16px/1.4 Arial,Helvetica,sans-serif;
}
.site {
  width: 94%;
  max-width: 1400px;
  margin: auto;
  background: white;
  border: 1px solid #8cb0c4;
  min-height: 100vh;
}
a {
  color: #397a9f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,a {
  touch-action: manipulation;
}
button:focus-visible,a:focus-visible {
  outline: 3px solid #0783bb;
  outline-offset: 3px;
}
header {
  min-height: 140px;
  background: linear-gradient(#fff 30%,#e5e5e5);
  border-bottom: 3px solid #387dba;
  display: flex;
  align-items: center;
  padding: 30px 38px;
  gap: 20px;
  position: relative;
  z-index: 200;
}
.brand img {
  width: 250px;
  max-width: 100%;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
nav a {
  color: #222;
  font-weight: 600;
}
nav>a,.dropdown>a {
  font-size: 16px;
}
.header-login {
  display: none;
  color: #333;
  margin-left: auto;
}
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 101;
}
.submenu-toggle {
  border: 0;
  background: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px #0002;
  display: none;
  z-index: 3;
}
.submenu a {
  display: block;
  padding: 12px 16px;
}
.dropdown:hover .submenu,.dropdown:focus-within .submenu,.dropdown.open .submenu {
  display: block;
}
.mobile-bar {
  display: none;
}
.panorama {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 3px 5px #0002;
}
.panels {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  padding: 70px 16px 16px;
}
.panels article {
  padding: 14px 16px 26px;
  border: 1px solid #d6d6d6;
}
.panels h2 {
  font-family: "Arial Narrow",Impact,sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  margin: 0 0 18px;
  line-height: 1.2;
}
.panels h2 span {
  color: #35789e;
}
.panels img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.panels p {
  margin: 0;
}
.contact p {
  text-align: center;
}
.contact p a[href^=tel] {
  color: inherit;
}
.article {
  border: 1px solid #d6d6d6;
  margin: 16px;
  padding: 12px 16px 20px;
  min-height: 180px;
}
.article h2 {
  font-family: "Arial Narrow",Impact,sans-serif;
  text-transform: uppercase;
  color: #387da6;
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.25;
}
.article h3,.article h4 {
  margin: 12px 0;
  font-size: 20px;
}
.article p {
  margin: 0 0 10px;
}
.article img {
  max-width: 100%;
  height: auto;
}
.article blockquote {
  border-left: 5px solid #ddd;
  margin: 20px 0;
  padding: 10px 20px;
  font-style: italic;
}
.article ul {
  padding-left: 28px;
}
.article li {
  margin: 5px 0;
}
footer {
  background: #236f9c;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  border-top: 3px solid #3581b2;
}
.top {
  position: absolute;
  right: 20px;
  color: white;
  font-size: 24px;
}
.article:after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width:1050px) {
  .mobile-bar {
    display: flex;
    background: linear-gradient(#303553,#070a0f);
    color: #a3c4df;
    height: 48px;
    align-items: center;
    position: relative;
    z-index: 5;
    font-size: 14px;
  }
  .menu-toggle {
    color: white;
    background: transparent;
    border: 0;
    border-right: 1px solid #000;
    width: 56px;
    height: 48px;
    font-size: 28px;
    cursor: pointer;
  }
  .mobile-bar span {
    padding: 0 16px;
  }
  .header-login {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    transform: none;
    white-space: normal;
    margin: 0;
    background: #222b3b;
    padding: 18px;
    z-index: 4;
    align-items: stretch;
    gap: 0;
  }
  nav.open {
    display: flex;
    flex-direction: column;
  }
  nav a {
    color: white;
    padding: 10px 12px;
  }
  .dropdown {
    flex-wrap: wrap;
  }
  .submenu-toggle {
    color: white;
  }
  .submenu {
    position: static;
    width: 100%;
    background: #172131;
    box-shadow: none;
    border: 0;
  }
  .dropdown:hover .submenu {
    display: none;
  }
  .dropdown.open .submenu,.dropdown:focus-within .submenu {
    display: block;
  }
}
@media (max-width:700px) {
  .site {
    width: 96%;
  }
  header {
    padding: 24px 18px;
    min-height: 120px;
    gap: 14px;
  }
  .brand img {
    width: 220px;
  }
  .header-login {
    font-size: 14px;
  }
  .panels {
    grid-template-columns: 1fr;
    padding: 30px 12px 12px;
  }
  .panels article {
    padding: 18px;
  }
  .article {
    margin: 12px;
    padding: 14px;
  }
  .article img {
    float: none !important;
    margin: 12px auto !important;
    display: block;
  }
  .article h2 {
    font-size: 22px;
  }
  footer {
    padding: 30px 15px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Match the original site's shallow harbor banner. */
.panorama {
  aspect-ratio: 1400 / 440;
  height: auto;
  object-fit: cover;
  object-position: center center;
}
/* Tiny CU Pacific logo marks in content lists. */
.article ul {
  list-style: none;
  padding-left: 0;
  display: flow-root;
}
.article ul>li {
  position: relative;
  padding-left: 18px;
}
.article ul>li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 9px;
  height: 8px;
  background: url("/assets/contact_logo.png") center/contain no-repeat;
}
/* Header navigation: dark text and visually centered on desktop. */
@media (min-width:1051px) and (max-width:1250px) {
  nav {
    gap: 14px;
  }
  nav>a,.dropdown>a {
    font-size: 14px;
  }
}
/* Lower desktop navigation toward bottom of logo */
@media (min-width:1051px) {
  header nav {
    top: 85px;
    margin-top: 0;
  }
}
/* Increase header logo by 10% */
@media (min-width:1051px) {
  .brand img {
    width: 275px;
  }
}

/* ============================================================
   TESTIMONIALS PAGE
   The image and first two testimonials share the top row.
   All remaining testimonials span the full page width.
   Scoped to .testimonials-page to avoid changing other pages.
   ============================================================ */
.testimonials-page .testimonials-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 24px;
  align-items: start;
}

.testimonials-page .testimonial-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  float: none;
}

.testimonials-page .testimonials-first {
  min-width: 0;
}

/* This is the critical fix: the remaining quotes occupy BOTH columns. */
.testimonials-page .testimonials-rest {
  grid-column: 1 / -1;
  min-width: 0;
}

.testimonials-page .testimonial {
  margin: 0 0 24px;
}

.testimonials-page .testimonial blockquote {
  position: relative;
  border: 0;
  margin: 0;
  padding: 10px 44px 8px;
  min-height: 50px;
  font-style: italic;
}

.testimonials-page .testimonial blockquote p {
  margin: 0;
}

.testimonials-page .testimonial blockquote::before,
.testimonials-page .testimonial blockquote::after {
  position: absolute;
  color: #c8c8c8;
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: bold;
  font-style: normal;
  line-height: 1;
}

.testimonials-page .testimonial blockquote::before {
  content: "\201C";
  top: 0;
  left: 0;
}

.testimonials-page .testimonial blockquote::after {
  content: "\201D";
  right: 0;
  bottom: -10px;
}

.testimonials-page .testimonial figcaption {
  text-align: right;
  margin: 12px 0 0;
  font-style: normal;
}

@media (max-width: 800px) {
  .testimonials-page .testimonials-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-page .testimonial-art {
    max-width: 380px;
    margin: 0 auto;
  }

  .testimonials-page .testimonials-rest {
    grid-column: 1;
  }

  .testimonials-page .testimonial blockquote {
    padding-left: 34px;
    padding-right: 34px;
  }
}
