/* ==========================================================================
   RugbyClubhouse Design System
   Deep green + gold, Montserrat, full-bleed section bands.
   Same architecture as the Kutech site's design system.
   ========================================================================== */

:root {
    /* Brand */
    --rc-green: #1d5c2f;
    --rc-green-light: #2d7a42;
    --rc-green-deep: #14411f;
    --rc-gold: #f2b632;
    --rc-gold-dark: #d99e17;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f6f3;
    --bg-dark: #16281a;

    /* Text */
    --text-primary: #1f241f;
    --text-secondary: #5c645c;
    --text-light: #ffffff;

    /* Supporting */
    --alert: #a4212e;
    --border: #e0e4e0;
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--rc-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rc-green-light);
}

::selection {
    background-color: var(--rc-green);
    color: white;
}

.container {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 46rem;
}

.center {
    text-align: center;
}

/* --- Sections --- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-green {
    background: var(--rc-green);
}

.section-green h2,
.section-green h3 {
    color: var(--text-light);
}

.section-green p {
    color: rgba(255, 255, 255, 0.88);
}

.section-green a:not(.btn) {
    color: var(--rc-gold);
}

/* --- Gold accent underline for headings --- */
.heading-accent {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--rc-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 0.375rem;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-gold {
    background: var(--rc-gold);
    color: var(--text-primary);
}

.btn-gold:hover {
    background: var(--rc-gold-dark);
    color: var(--text-primary);
}

.btn-green {
    background: var(--rc-green);
    color: var(--text-light);
}

.btn-green:hover {
    background: var(--rc-green-light);
    color: var(--text-light);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white;
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--rc-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.brand:hover {
    color: white;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    color: var(--rc-gold);
}

/* --- Hero --- */
.hero {
    background: var(--rc-green);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(255, 255, 255, 0.07), transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 0, 0, 0.20), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.hero h1 {
    color: white;
    font-size: 2.6rem;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-short {
    padding: 3.5rem 0 2.75rem;
}

.hero-short h1 {
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.hero-short .lead {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card h2,
.product-card h3 {
    color: var(--rc-green);
    font-size: 1.25rem;
    margin-top: 0;
}

/* --- Checklists --- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.check-list li {
    position: relative;
    padding-left: 2.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rc-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
}

/* --- Docs / long-form content --- */
.docs-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--rc-gold);
}

.docs-content h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    color: var(--rc-green);
}

pre {
    background: #f4f7f4;
    border: 1px solid var(--border);
    border-left: 3px solid var(--rc-green);
    border-radius: 6px;
    padding: 0.9rem 1.1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.55;
}

code {
    font-family: Consolas, 'Cascadia Code', monospace;
    font-size: 0.9em;
}

p code, li code, td code {
    background: var(--bg-secondary);
    color: var(--rc-green);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

.tag {
    font-size: 0.65em;
    font-weight: 600;
    color: var(--rc-green);
    border: 1px solid var(--rc-green);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* --- Tables --- */
.data-table {
    border-collapse: collapse;
    min-width: 18rem;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.5rem 1.25rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table thead th {
    color: var(--rc-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Forms --- */
.auth-card {
    max-width: 26rem;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 3px solid var(--rc-green);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stacked-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.stacked-form input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stacked-form input:focus {
    outline: none;
    border-color: var(--rc-green);
    box-shadow: 0 0 0 0.2rem rgba(29, 92, 47, 0.15);
}

.stacked-form .btn {
    align-self: flex-start;
}

.error {
    color: var(--alert);
    font-weight: 600;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Info blocks --- */
.info-block {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.info-block h2,
.info-block h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.contact-email {
    font-size: 1.35rem;
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
    font-size: 0.9rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}

.footer-brand {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    color: var(--rc-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: white;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2.75rem 0;
    }
}
