/* ==========================================================
   Elliotts Canine Collective
   styles.css
   ========================================================== */

   :root {
     --bg: #c0d9ef;
     --bg-light: #f1f8ff;
     --bg-dark: #d5e8f8;
     --text: #172a45;
     --white: #ffffff;
     --white-70: rgba(255,255,255,.70);
     --accent: #8fb7dc;
     --accent-dark: #6f9fca;
     --border: rgba(0,0,0,.18);
   }

/* Global */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #c0d9ef;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  background: var(--bg);
  background-image: radial-gradient(
    ellipse at 50% 0%,
    var(--bg-light) 0%,
    var(--bg) 45%,
    var(--bg-dark) 100%
  );
}

/* Header / Nav */

header {
  padding: 28px 0 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.main-nav a {
  font-family: Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  line-height: 1;
  padding-bottom: 18px;
}

.main-nav a:hover {
  opacity: .65;
}

.header-divider {
  width: min(1100px, calc(100% - 40px));
  height: 1px;
  margin: 0 auto;
  background: rgba(23, 42, 69, .18);
}

/* Hero / Home */

.hero {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 35px 0 35px;
}

.hero-logo img {
  width: min(840px, 90vw);
  display: block;
  transform: translateX(-62px);
}

.tagline {
  margin: 15px auto 0;
  max-width: 760px;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 35px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */

.button {
  font-family: Helvetica, Arial, sans-serif;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .15em;
  border-radius: 999px;
  padding: 14px 26px;
  transition: .2s;
}

.button:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.button.primary {
  background: #062f70;
  color: white;
  border: 1px solid #062f70;
}

.button.secondary {
  background: rgba(255,255,255,.70);
  color: #062f70;
  border: 1px solid rgba(6, 47, 112, .55);
}

/* Contact */

.ecc-contact {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.ecc-contact-box {
  text-align: center;
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 36px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 24px 70px rgba(0,0,0,.06);
}

.ecc-contact-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.ecc-kicker {
  margin: 0 0 14px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .65;
}

.ecc-contact h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: #062f70;
}

.ecc-contact-text {
  max-width: 560px;
  margin: 28px auto 42px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.ecc-contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}

.ecc-contact-links a {
    padding: 22px 20px;
    display: grid;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 18px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.ecc-contact-links a:hover {
  background: rgba(255,255,255,.70);
}

.ecc-contact-links span {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.ecc-contact-links i {
    font-size: 1.6rem;
}

.ecc-contact-links strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ecc-contact-links em {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
}

.ecc-contact h1::after{
    content:"";
    display:block;
    width:90px;
    height:3px;
    margin:18px auto 0;
    background:var(--accent);
    border-radius:2px;
}

/* Footer */

footer {
  text-align: center;
  padding: 10px 20px 18px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #172a45;
}

footer p {
  margin: 0;
}

.photo-credit {
  margin: 2px 0 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .72rem;
  color: rgba(23, 42, 69, .78);
}

.photo-credit a {
  color: #172a45;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 42, 69, .35);
}

.photo-credit a:hover {
  color: #172a45;
  border-bottom-color: #172a45;
}

/* Responsive */

@media (max-width: 900px) {
  .main-nav {
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }
}

@media (max-width: 650px) {
  .ecc-contact-links {
    grid-template-columns: 1fr;
    }

    .hero-logo img {
      transform: none;
    }

    .tagline br {
   display: none;
    }
  }

@media (max-width: 600px) {
  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    font-size: .72rem;
  }

  .hero {
    min-height: auto;
  }
}


/* ==========================================================
   Calendar Page
   ========================================================== */

.ec-calendar-page {
  width: min(1400px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 50px;
}

.ec-calendar-top {
  position: relative;
  min-height: 115px;
  margin-bottom: 8px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.ec-logo-space {
  position: absolute;
  left: -25px;
  top: -35px;
  width: 320px;
  height: 260px;
  background: transparent;
  border: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.ec-logo-space img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ec-calendar-title {
  text-align: center;
}

.ec-calendar-title h1 {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: .04em;
  color: #062f70;
  text-transform: uppercase;
}

.ec-calendar-title h1 span {
  color: #062f70;
  font-weight: 300;
}

.ec-calendar-title p {
  margin: 12px auto 0;
  font-family: "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: 1rem;
  color: #062f70;
}

.ec-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid rgba(40, 90, 150, .35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.ec-day-name {
  padding: 11px 8px;
  background: #063374;
  color: white;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .88rem;
}

.ec-day {
  min-height: 112px;
  padding: 12px 10px 8px;
  border-right: 1px solid rgba(40, 90, 150, .22);
  border-bottom: 1px solid rgba(40, 90, 150, .22);
  background: rgba(255,255,255,.72);
}

.ec-day:nth-child(7n) {
  border-right: none;
}

.ec-day.empty {
  background: rgba(255,255,255,.45);
}

.ec-date {
  display: block;
  margin-bottom: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #062f70;
  line-height: 1;
}

.ec-event {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  column-gap: 7px;
  margin-bottom: 5px;

  font-family: "Open Sans", Arial, sans-serif;
  font-size: .78rem;
  line-height: 1.18;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
}

.ec-event span,
.legend-item > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ec-event time {
  justify-self: end;
  font-weight: 400;
  color: #061f4a;
  text-transform: uppercase;
}

.foundation {
  color: #2d75dc;
}

.foundation span {
  background: #2d75dc;
}

.novice {
  color: #5b8f9a;
}

.novice span {
  background: #5b8f9a;
}

.field {
  color: #6e95c4;
}

.field span {
  background: #8fb0d0;
}

.rally {
  color: #8f6ed5;
}

.rally span {
  background: #8f6ed5;
}

.tricks {
  color: #f06f5d;
}

.tricks span {
  background: #f06f5d;
}

.cgc {
  color: #cf8500;
}

.cgc span {
  background: #cf8500;
}

.scentwork {
  color: #b05f7a;
}

.scentwork span {
  background: #b05f7a;
}

.ec-legend {
  margin-top: 14px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  border: 1px solid rgba(40, 90, 150, .25);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Open Sans", Arial, sans-serif;
}

.legend-item > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.legend-item strong {
  display: block;
  font-size: .78rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: .01em;
}

.legend-item small {
  display: block;
  margin-top: 3px;
  color: #001d63;
  font-size: .72rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: .01em;
}

.ec-calendar-note {
  margin: 14px 0 0;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .9rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .01em;
  color: #001d63;
}

/* Calendar Responsive */

@media (max-width: 1000px) {
  .ec-calendar-top {
    grid-template-columns: 1fr;
  }

  .ec-logo-space {
    max-width: 360px;
  }

  .ec-calendar {
    overflow-x: auto;
  }

  .ec-day {
    min-width: 150px;
  }

  .ec-legend {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .ec-calendar-page {
    width: calc(100% - 20px);
  }

  .ec-calendar {
    grid-template-columns: repeat(7, 150px);
    overflow-x: scroll;
  }

  .ec-legend {
    grid-template-columns: 1fr;
  }

  .ec-calendar-title h1 {
    font-size: 2.6rem;
  }
  .ec-calendar-top {
    min-height: auto;
    margin-bottom: 12px;
    flex-direction: column;
    gap: 4px;
  }

  .ec-logo-space {
    position: static;
    width: 180px;
    height: auto;
    max-width: 70%;
    margin: 0 auto -4px;
    transform: translateX(-12px);
  }

  .ec-logo-space img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* ==========================================================
   Services Page
   ========================================================== */

.ecc-services {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 35px;
}

.services-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 34px;
}

.services-kicker {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  font-weight: 600;
  color: #062f70;
}

.services-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: #062f70;
}

.services-hero p {
  margin: 20px auto 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #17395f;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(6, 47, 112, .18);
  box-shadow: 0 10px 24px rgba(6, 47, 112, .08);
  position: relative;
  overflow: hidden;
  padding-bottom: 24px;
}

.service-card-icon {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.service-card h2 {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #062f70;
}

.service-card p {
  margin: 0 0 16px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: #17395f;
  position: relative;
  z-index: 2;
}

.service-card a {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: #062f70;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 47, 112, .35);
  position: relative;
  z-index: 2;
}

.service-card a:hover {
  border-bottom-color: #062f70;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin: 0 0 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 143, 189, .18);
  border: 1px solid rgba(6, 47, 112, .18);
  color: #062f70;
  font-size: 1.15rem;
}

.services-cta {
  margin: 34px auto 0;
  padding: 28px 24px;
  max-width: 760px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(6, 47, 112, .16);
}

.services-cta h2 {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #062f70;
}

.services-cta p {
  margin: 0 auto 18px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .98rem;
  line-height: 1.6;
  color: #17395f;
}

.services-button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: #062f70;
  color: white;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.services-button:hover {
  opacity: .9;
}
.services-note {
  margin: 30px auto 0;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .95rem;
  color: #17395f;
}

.services-note a {
  color: #062f70;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 47, 112, .35);
}

.services-note a:hover {
  border-bottom-color: #062f70;
}

/* Services Responsive */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .ecc-services {
    width: calc(100% - 24px);
    padding-top: 34px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 22px 20px;
  }
}

/* ==========================================================
   About Page
   ========================================================== */

.ecc-about {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 35px;
}

.about-hero {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.about-kicker {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  font-weight: 600;
  color: #062f70;
}

.about-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: #062f70;
}

.about-hero p {
  margin: 20px auto 0;
  max-width: 760px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #17395f;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-card {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(6, 47, 112, .18);
  box-shadow: 0 10px 24px rgba(6, 47, 112, .08);
}

.about-card h2 {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #062f70;
}

.about-card p {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #17395f;
}

.about-cta {
  margin: 34px auto 0;
  padding: 24px 22px;
  max-width: 820px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(6, 47, 112, .18);
  box-shadow: 0 10px 24px rgba(6, 47, 112, .08);
}

.about-cta h2 {
  margin: 0 0 10px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #062f70;
}

.about-cta p {
  margin: 0 auto 18px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #17395f;
}

.about-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.about-buttons a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: #062f70;
  color: white;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.about-buttons a:hover {
  opacity: .9;
}

/* About Responsive */

@media (max-width: 850px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ecc-about {
    width: calc(100% - 24px);
    padding-top: 34px;
  }

  .about-card {
    padding: 22px 20px;
  }
}

/* Tighten spacing before footer on interior pages */

.ecc-contact,
.ec-calendar-page,
.ecc-services,
.ecc-about {
  padding-bottom: 35px;
}
