/* ricktew.com — exact copy of the Google Sites design */

:root {
  --blue-band: #1e73bd;
  --blue-bar: #1e73bd;
  --blue-button: #3367d6;
  --blue-announce: #3367d6;
  --text: #202124;
  --text-muted: #5f6368;
  --gray-card: #f1f3f4;
  --gray-bubble: #e9ebee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #1e73bd; }
mark { background: #ffff00; color: #000; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--blue-announce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 16px;
  font-size: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.announce a.announce-btn {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 16px;
  white-space: nowrap;
}
.announce a.announce-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header / nav ---------- */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand img { height: 30px; width: auto; }
.brand .brand-sub {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
nav.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav.main-nav > ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}
nav.main-nav li { position: relative; }
nav.main-nav a {
  display: block;
  padding: 7px 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
}
nav.main-nav a:hover { text-decoration: underline; }
nav.main-nav a.active {
  background: #000;
  color: #fff;
  text-decoration: none;
}
/* dropdown */
li.has-sub > a .caret {
  display: inline-block;
  margin-left: 6px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  padding: 2.5px;
  transform: rotate(45deg) translateY(-2px);
}
li.has-sub > a.active .caret { border-color: #fff; }
li.has-sub ul.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  list-style: none;
  min-width: 220px;
  padding: 6px 0;
  z-index: 200;
}
li.has-sub:hover ul.sub,
li.has-sub.open ul.sub { display: block; }
li.has-sub ul.sub a { padding: 9px 18px; font-size: 15px; }

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; }
  li.has-sub ul.sub { position: static; box-shadow: none; display: block; padding-left: 18px; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 24px;
}
section.block { padding: 28px 0; }

/* ---------- Page head ---------- */
.pagehead { text-align: center; padding: 90px 0 30px; }
.pagehead h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 1000px;
  margin: 0 auto;
}
.pagehead .title-bar {
  height: 11px;
  background: var(--blue-bar);
  max-width: 1122px;
  margin: 26px auto 0;
}
.pagehead.narrow .title-bar { max-width: 732px; }
.pagehead .subtitle {
  font-family: "Oswald", sans-serif;
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 33px;
  line-height: 1.35;
  max-width: 1060px;
  margin: 34px auto 0;
}

/* ---------- Blue band headings ---------- */
.band {
  background: var(--blue-band);
  color: #fff;
  text-align: center;
  padding: 52px 40px;
  margin: 34px 0;
}
.band h1, .band h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 42px;
  line-height: 1.25;
  max-width: 1120px;
  margin: 0 auto;
}
.band.sub h2 { font-size: 30px; }

/* plain big heading on white */
h2.plain-head, h1.plain-head {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 1.25;
  text-align: center;
  margin: 44px auto 18px;
  max-width: 1100px;
}
h3.minor-head {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 26px;
  margin: 30px 0 10px;
}

/* ---------- Prose ---------- */
.prose { max-width: 1128px; margin: 0 auto; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 6px; list-style: square; }
.prose .lead-bold { font-weight: 700; }
.center { text-align: center; }
.italic { font-style: italic; }

/* ---------- Two-column media rows ---------- */
.row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 38px 0;
}
.row > div { flex: 1; min-width: 0; }
.row .col-img { flex: 0 0 42%; }
.row.img-right { flex-direction: row-reverse; }
.row h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.row p { margin: 0 0 16px; }
.row ul { margin: 0 0 16px 22px; }
.row li { list-style: square; margin-bottom: 6px; }
@media (max-width: 800px) {
  .row { flex-direction: column !important; }
  .row .col-img { flex: 1 1 auto; }
}

/* image grids */
.imgrow { display: flex; gap: 28px; margin: 34px 0; justify-content: center; }
.imgrow img { flex: 1 1 0; min-width: 0; object-fit: contain; align-self: center; }
@media (max-width: 700px) { .imgrow { flex-direction: column; } }

figure.fig { margin: 34px auto; text-align: center; }
figure.fig img { margin: 0 auto; }
figure.fig.medium img { max-width: 760px; width: 100%; }
figure.fig.large img { max-width: 880px; width: 100%; }
figure.fig.full img { width: 100%; max-width: 1122px; }
figure.fig.small img { max-width: 480px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue-button);
  color: #fff;
  text-decoration: none;
  font-size: 15.5px;
  padding: 9px 26px;
  border-radius: 4px;
}
.btn:hover { filter: brightness(1.08); }
.btn.wide { display: block; text-align: center; }

/* ---------- Quote bubble (gray speech bubble + avatar) ---------- */
.bubble-quote { margin: 46px auto; max-width: 620px; text-align: center; }
.bubble-quote .bubble {
  background: var(--gray-bubble);
  color: #5f6368;
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  padding: 30px 36px;
  position: relative;
}
.bubble-quote .bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--gray-bubble);
}
.bubble-quote .who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.bubble-quote .who img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
}
.bubble-quote .who .name { font-weight: 700; color: #5f6368; }

/* ---------- Gray testimonial card / band ---------- */
.gray-card {
  background: var(--gray-card);
  padding: 40px 0;
  margin: 40px 0;
}
.gray-card .title { font-weight: 700; margin-bottom: 14px; }
.gray-card .quote { font-style: italic; margin-bottom: 14px; }
.gray-card .name { }

/* ---------- Embeds ---------- */
.embed-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 40px 0;
}
.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-tall iframe {
  width: 100%;
  border: 0;
}

/* ---------- Carousel ---------- */
.carousel { position: relative; margin: 34px auto; }
.carousel .slides { position: relative; overflow: hidden; }
.carousel .slide { display: none; }
.carousel .slide.active { display: block; }
.carousel .slide img { margin: 0 auto; max-height: 640px; object-fit: contain; }
.carousel .c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.carousel .c-prev { left: 10px; }
.carousel .c-next { right: 10px; }
.carousel .dots { text-align: center; margin-top: 14px; }
.carousel .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c4c7cc;
  margin: 0 4px;
  cursor: pointer;
  padding: 0;
}
.carousel .dots button.active { background: var(--blue-button); }

/* ---------- Social icons ---------- */
.social-row { display: flex; justify-content: center; gap: 22px; margin: 40px 0; }
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Footer ---------- */
footer.site-footer {
  text-align: center;
  padding: 70px 20px 40px;
  font-family: "Oswald", sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

/* responsive type */
@media (max-width: 700px) {
  .pagehead h1 { font-size: 34px; }
  .pagehead .subtitle { font-size: 23px; }
  .band h1, .band h2 { font-size: 28px; }
  h2.plain-head, h1.plain-head { font-size: 28px; }
  .row h2 { font-size: 25px; }
}
