/*
 * TENNISSA website styles.
 * Layout and visual style adapted from "apple-website-clone" by Reiyn
 * (https://github.com/iamreiyn/apple-website-clone), MIT License,
 * Copyright (c) 2023 Reiyn. See LICENSE-THIRD-PARTY.txt.
 * All images, logos and product references from the original were removed;
 * the geometric pattern used here is original artwork.
 */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --night: #002D65;      /* Tennessee flag blue */
  --night-2: #0a3d7d;
  --link: #0050b0;
  --link-dark: #a9c8ff;
  --brand: #CC0000;       /* Tennessee flag red */
  --brand-2: #ff9b9b;     /* light red for text on blue */
  --brand-dark: #a30000;
  --muted-dark: #b9c6dc;  /* quiet text on blue */
  --line: #d2d2d7;
  --good: #002D65;
  --warn: #CC0000;
  --radius: 18px;
  --nav-h: 60px;
  --max: 1080px;
}

/* HTML page */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Poppins", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--link);
}

a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Navbar */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background-color: rgba(0, 45, 101, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 5;
}

.navinner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbrand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5f5f7;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.navbrand:hover { text-decoration: none; }
.navbrand img { display: block; height: 42px; width: auto; }

.navlinks {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.navlink {
  margin-inline: 14px;
  color: #dbe4f0;
}
.navlink:hover, .navlink[aria-current="page"] { color: #ffffff; text-decoration: none; }

.navcta {
  margin-left: 10px;
  padding: 5px 14px;
  border-radius: 980px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}
.navcta:hover { text-decoration: none; background: var(--brand-dark); }

.respnavbar {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.respnavbar svg { width: 20px; height: 20px; fill: #dbe4f0; }

/* The info bar below the navbar (status banner) */

main { padding-top: var(--nav-h); }

.infobar {
  border-top: 3px solid var(--brand);
  background-color: var(--paper);
  padding: 12px 22px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #ececec;
}
.infobar a { margin-left: 6px; white-space: nowrap; }

/* Hero panels (from the clone's .mainpage sections) */

.hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 64px 22px 56px;
  position: relative;
  overflow: hidden;
}

.hero-compact { min-height: 0; padding-bottom: 72px; }

.hero-light { background: var(--paper-2); color: var(--ink); }
.hero-white { background: var(--paper); color: var(--ink); }
.hero-dark { background: var(--night); color: #f5f5f7; }
.hero-dark a { color: var(--link-dark); }

.hero-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 120px 120px;
  opacity: 0.09;
  pointer-events: none;
}
.hero-pattern > * { position: relative; }


/* Photo heroes. Replace the image file to change the photo; keep the same name. */

.hero-photo {
  background-color: var(--night);
  background-size: cover;
  background-position: center;
  min-height: 620px;
  justify-content: center;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 45, 101, 0.78) 0%, rgba(0, 45, 101, 0.55) 45%, rgba(0, 45, 101, 0.85) 100%);
  pointer-events: none;
}
.hero-photo > * { position: relative; }
.hero-photo .hero-title, .hero-photo .hero-sub { text-shadow: 0 2px 16px rgba(0, 20, 50, 0.45); }
.hero-photo-donors { --hero-photo: url("../img/donors-hero.jpg"); background-image: var(--hero-photo); background-position: center 30%; }
.hero-photo-home { --hero-photo: url("../img/home-hero.jpg"); background-image: var(--hero-photo); background-position: 70% 25%; }

/* Wide screens: text on the left, photo on the right with a soft edge */
@media (min-width: 900px) {
  .hero-photo-split {
    align-items: flex-start;
    text-align: left;
    padding-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
    background-image: none;
  }
  .hero-photo-split::before { display: none; }
  .hero-photo-split::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(64%, 1000px);
    background-image: var(--hero-photo);
    background-size: cover;
    background-position: 55% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    pointer-events: none;
  }
  .hero-photo-split > * { z-index: 1; }
  .hero-photo-split .hero-title { max-width: 520px; text-shadow: none; }
  .hero-photo-split .hero-sub { max-width: 470px; text-shadow: none; }
  .hero-photo-split .hero-title { font-size: 52px; }
  .hero-photo-split .hero-sub { font-size: 21px; }
  .hero-photo-split .hero-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-photo-split .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 470px; margin: 40px 0 0; gap: 20px 32px; text-align: left; }
  .hero-photo-split .stat-num { font-size: 38px; }
  .hero-photo-home::after { background-position: 72% 25%; }
  .hero-photo-split .hero-links .chev { color: #fff; }
}


.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-2);
  margin: 0 0 6px;
}
.hero-light .eyebrow, .hero-white .eyebrow { color: var(--brand); }

.mp1-title1, .hero-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 900px;
}

.mp1-title2, .hero-sub {
  margin: 14px 0 0;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 400;
  max-width: 760px;
}
.hero-light .hero-sub, .hero-white .hero-sub { color: var(--ink); }

.mainpagelink, .hero-links {
  margin-top: 22px;
  font-size: 20px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.chev::after { content: " \203A"; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 17px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); filter: none; }
.btn-blue { background: #0071e3; color: #fff; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--link); }
.hero-dark .btn-ghost { color: var(--link-dark); border-color: var(--link-dark); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Key numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  width: 100%;
  margin: 48px auto 0;
}
.stat-num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero-dark .stat-num { color: #fff; }
.stat-label { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.hero-dark .stat-label { color: var(--muted-dark); }


/* Statement band */

.band {
  background: var(--night);
  color: #fff;
  text-align: center;
  padding: 72px 22px;
  border-top: 6px solid var(--brand);
  border-bottom: 6px solid var(--brand);
}
.band-title {
  margin: 0 auto;
  max-width: 900px;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.band .title-accent { color: var(--brand-2); }
.band-sub {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 20px;
  color: var(--muted-dark);
}

/* Grid tiles (from the clone's .mainpage4 / .grid-item) */

.mainpage4, .tiles {
  background-color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  padding: 6px;
}

.grid-item, .tile {
  flex-basis: calc(50% - 12px);
  flex-grow: 1;
  margin: 6px;
  min-height: 500px;
  padding: 56px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tile-light { background: var(--paper-2); }
.tile-dark { background: var(--night-2); color: #f5f5f7; }
.tile-dark a { color: var(--link-dark); }
.tile-brand { background: linear-gradient(160deg, #CC0000 0%, var(--brand-dark) 100%); color: #fff; }
.tile-brand a { color: #ffffff; text-decoration: underline; }

.motherday, .tile-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.motherday2, .tile-desc {
  margin: 12px 0 0;
  font-size: 19px;
  max-width: 420px;
}
.tile .hero-links { font-size: 17px; margin-top: 16px; }

.tile-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 28px 0 0;
  text-align: left;
  max-width: 380px;
  width: 100%;
}
.tile-steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  font-size: 16px;
}
.tile-steps li::before {
  content: counter(step);
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
}
.tile-brand .tile-steps li::before { background: #fff; color: var(--brand); }

.tile-art {
  margin-top: auto;
  padding-top: 28px;
  width: 160px;
  height: 160px;
  opacity: 0.9;
}

/* Content sections */

.section { padding: 88px 22px; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #f5f5f7; }
.section-dark a { color: var(--link-dark); }

.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.container-wide { max-width: 1240px; }
.title-accent { display: block; color: var(--brand); }
.hero-dark .title-accent { color: var(--brand-2); }

.section-title {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-lead {
  margin: 0 auto 48px;
  font-size: 21px;
  color: var(--ink-2);
  text-align: center;
  max-width: 720px;
}
.section-dark .section-lead { color: var(--muted-dark); }

.prose h2 { font-size: 32px; line-height: 1.15; margin: 48px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; }
.prose ul { padding-left: 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards-4 .card { padding: 28px 22px; }
.cards-4 .card p { font-size: 15px; line-height: 1.55; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.section-alt .card { background: var(--paper); }
.section:not(.section-alt):not(.section-dark) .card { background: var(--paper-2); box-shadow: none; }
.section-dark .card { background: var(--night-2); box-shadow: none; }
.card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.section-dark .card p { color: var(--muted-dark); }
.card .num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 600;
  margin-bottom: 16px;
}
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }

.callout {
  border-left: 4px solid var(--brand);
  background: var(--paper-2);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  margin: 28px 0;
}
.callout-warn { border-left-color: var(--warn); }

/* Tools: eligibility checker and tax calculator */

.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.panel h3 { margin: 0 0 20px; font-size: 21px; }

.field { margin-bottom: 18px; }
.field label, .field legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }

input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(0, 45, 101, 0.2); }

.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.money input { padding-left: 28px; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-weight: 400; font-size: 15px; cursor: pointer;
  margin: 0;
}
.radio-row input:checked + span { font-weight: 600; }

.result {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper-2);
  min-height: 200px;
}
.result-big { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 4px 0 8px; }
.result-good { color: var(--good); }
.result-warn { color: var(--warn); }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 16px 0 0; font-size: 16px; }
.result dt { color: var(--ink-2); }
.result dd { margin: 0; font-weight: 600; text-align: right; }
.result .total { border-top: 1px solid var(--line); padding-top: 8px; }
.fineprint { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* Forms */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-status { margin-top: 14px; font-size: 15px; }
.hp { position: absolute; left: -9999px; }

/* FAQ */

.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  font: inherit; font-size: 15px;
  padding: 8px 18px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-size: 19px;
  font-weight: 600;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 14px;
  font-size: 26px; font-weight: 300; color: var(--ink-2);
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p, details.faq ul { margin: 0 0 18px; font-size: 17px; color: #3a3a3c; }
details.faq ul { padding-left: 22px; }

/* Board */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { text-align: center; padding: 28px 20px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 24px;
}
.person h3 { margin: 0; font-size: 18px; }
.person p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

.placeholder { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

/* Footer (from the clone's footer) */

footer {
  background-color: rgb(243, 243, 243);
  display: flex;
  justify-content: center;
}

.footertext1 {
  margin: 25px;
  width: 980px;
  max-width: 100%;
  font-size: 12px;
  color: rgb(71, 71, 71);
  line-height: 1.6;
}
.footertext1 p { margin: 0 0 10px; }
.footer-logo { display: inline-block; margin: 4px 0 18px; }
.footer-logo img { display: block; height: 60px; width: auto; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #d6d6d6;
  border-bottom: 1px solid #d6d6d6;
  margin: 14px 0;
}
.footer-cols h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: rgb(71, 71, 71); }
.footer-cols a:hover { color: var(--ink); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
