/* ===================================================================
   DC Doubles — shared stylesheet
   Palette: Teal #008080 · Sun Orange #ff9800 · Sand #f4f1ea
   =================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f1ea; /* Sand */
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

a {
    color: #008080;
}

/* -------------------------------------------------------------------
   Header banner — three logos, vertically centred, each 200px tall.
   The whole banner is a single clickable link back to the home page.
   ------------------------------------------------------------------- */
.site-header {
    /* Self-contained CSS treatment — no external image dependency */
    background:
        radial-gradient(circle at 20% 120%, rgba(255, 152, 0, 0.25), transparent 55%),
        radial-gradient(circle at 85% -20%, rgba(0, 194, 168, 0.35), transparent 50%),
        linear-gradient(135deg, #006d6d 0%, #008080 50%, #00a0a0 100%);
    padding: 32px 20px;
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner {
    display: flex;
    align-items: center;         /* vertical centring */
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner img {
    height: 200px;               /* every logo shares the same height */
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.banner img:hover {
    transform: translateY(-4px) scale(1.02);
}

/* -------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------- */
nav.site-nav {
    background-color: #ff9800; /* Sun Orange */
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.site-nav ul {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

nav.site-nav a:hover {
    color: #fff3e0;
    border-bottom-color: #ffffff;
}

nav.site-nav a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* -------------------------------------------------------------------
   Generic content page
   ------------------------------------------------------------------- */
main.content {
    max-width: 900px;
    margin: 45px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 6px solid #008080;
    padding: 40px 45px;
}

.page-title {
    color: #008080;
    margin: 0 0 25px;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    line-height: 1.7;
    color: #444;
}

.card h2 {
    color: #008080;
    font-size: 1.35rem;
    margin-top: 30px;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* Highlight / call-out box */
.callout {
    background: #e0f2f1;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #008080;
    line-height: 1.6;
}

/* Link list (Links, Results pages) */
.link-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 12px;
}

.link-list li {
    margin: 0;
}

.link-list a {
    display: block;
    background: #fafafa;
    border: 1px solid #eee;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 13px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.link-list a:hover {
    background: #fff7ec;
    border-left-color: #008080;
    transform: translateX(4px);
}

/* Compact grid for the long Results archive */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.link-grid a {
    display: block;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 11px 14px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.link-grid a:hover {
    background: #008080;
    color: #ffffff;
}

/* Rules list */
.rules-list {
    line-height: 1.9;
    color: #444;
    padding-left: 22px;
}

.rules-list li {
    margin-bottom: 6px;
}

/* Schedule cards (home page) */
.schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 26px 0;
}

.schedule .event {
    background: #fafafa;
    border: 1px solid #eee;
    border-top: 4px solid #ff9800;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
}

.schedule .event .num {
    display: block;
    color: #008080;
    font-weight: 700;
    font-size: 1.5rem;
}

.schedule .event .date {
    display: block;
    font-weight: 700;
    margin: 4px 0;
}

.schedule .event .fmt {
    display: block;
    color: #666;
    font-size: 0.85rem;
}

/* Sponsor card */
.sponsor-card {
    max-width: 440px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 24px auto 0;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.sponsor-card .logo-wrap {
    background: #f8fafc;
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.sponsor-card .logo-wrap img {
    max-height: 48px;
    width: auto;
    margin: 0;
}

.sponsor-card .body {
    padding: 24px;
}

.sponsor-card .body h2 {
    margin: 0 0 12px;
}

/* Buttons / inline links styled as pills */
.btn-link {
    display: inline-block;
    background: #ff9800;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-link:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* -------------------------------------------------------------------
   Registration page (form + venmo widget)
   ------------------------------------------------------------------- */
main.registration {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
        url('assets/img/frontimage.jpg');
    padding: 80px 40px;
    background-size: cover;
    background-position: 50% 30%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.form-card {
    max-width: 750px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-top: 6px solid #008080;
}

.form-card .intro-text h1 {
    color: #008080;
    margin-top: 0;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-card .intro-text p {
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin-bottom: 30px;
    background: #e0f2f1;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #008080;
}

fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fafafa;
}

legend {
    background: #008080;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-card label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-card input,
.form-card select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-card input:focus,
.form-card select:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.3);
}

.form-card button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.form-card button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* Embedded original JotForm */
.jotform-embed {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 700px;              /* fallback before the resize handler runs */
    border: none;
    border-radius: 8px;
    background: #ffffff;
}

.venmo-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 6px solid #008080;
    padding: 20px;
    align-self: flex-start;
}

.venmo-widget img {
    width: 260px;
    height: auto;
}

.venmo-widget p {
    margin: 10px 0 0;
    font-weight: 700;
    color: #008080;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer {
    background: #008080;
    color: #e0f2f1;
    text-align: center;
    padding: 26px 20px;
    font-size: 0.85rem;
}

.site-footer a {
    color: #ffffff;
    font-weight: 600;
}

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 700px) {
    .banner img {
        height: 130px;
    }

    .card {
        padding: 28px 22px;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    main.registration {
        padding: 40px 18px;
    }
}
