/* FidoClub - Clean Green/Yellow Theme */

:root {
    --primary-color: #28A745; /* green */
    --secondary-color: #d5d835; /* yellow */
    --text-dark: #145A32; /* deep green for body text */
    --text-light: #FFFFFF;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --success-color: #28A745;
    --footer-bg: #1B1B1B;
    --footer-secondary: #2C2C2C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: #556; }

/* Buttons */
.btn {
    display: inline-block;
    min-height: 44px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(40,167,69,0.12);
}

.btn-primary:hover {
    background-color: #218838;
    box-shadow: 0 6px 20px rgba(40,167,69,0.22);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #222; /* dark text on yellow */
    box-shadow: 0 2px 8px rgba(213,216,53,0.12);
}

.btn-secondary:hover {
    background-color: #eae94b;
    color: #222;
    box-shadow: 0 6px 20px rgba(213,216,53,0.22);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(40,167,69,0.08);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #222;
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(213,216,53,0.18);
}

/* Header */
.header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: #222; /* black text on yellow bar */
    padding: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Social block (temporarily disabled) - remove or re-enable when socials are added */
/*
.header-top .social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.header-top .social a {
    color: #222;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
}
.header-top .social a:hover { background: rgba(0,0,0,0.06); }
*/

.navbar { padding: 1rem 0; }

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-nav { list-style: none; display:flex; gap:2rem; margin:0; }

.nav-link { color: var(--text-dark); text-decoration:none; font-weight:500; padding:0.5rem 0; transition:color .2s ease; }
.nav-link:hover { color: var(--primary-color); }

/* Footer */
.footer { background-color: var(--footer-bg); color: var(--text-light); padding:3rem 0 1rem; margin-top:4rem; }
.footer h5 { color: var(--text-light); margin-bottom:1.5rem; }
.footer a { color:#ccc; text-decoration:none; transition:color .2s ease; }
.footer a:hover { color: var(--primary-color); }
.footer-bottom { background-color: var(--footer-secondary); padding:1rem 0; margin-top:2rem; text-align:center; font-size:14px; }

/* Cards */
.card { background-color: var(--background-white); border-radius:12px; box-shadow:0 4px 15px rgba(0,0,0,0.06); padding:2rem; margin-bottom:2rem; transition:transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow:0 10px 30px rgba(0,0,0,0.10); }

/* Ensure vertical spacing between stacked cards (works if cards are direct siblings) */
.card + .card { margin-top: 1.5rem; }

/* Utility for stacked card lists: use when displaying cards one-per-row.
    Grid is more robust than flex for consistent vertical gaps. */
.cards-list { display: grid; grid-auto-flow: row; gap: 1.5rem; }

/* Prevent double spacing: when using .cards-list the .card margins should be ignored */
.cards-list > .card { margin: 0; }

/* Aliases */
.stacked-cards { display: grid; grid-auto-flow: row; gap: 1.5rem; }
.stacked-cards > .card { margin: 0; }

/* Grid helper for lists of cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }

/* Span helpers: badge and muted variants */
span.badge {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    background: rgba(40,167,69,0.08);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
}

span.muted {
    color: #6b7280; /* subtle grey */
    font-weight: 500;
}

/* Container and Grid */
.container { max-width:1200px; margin:0 auto; padding:0 1rem; }
.row { display:flex; flex-wrap:wrap; margin:0 -15px; row-gap: 24px; column-gap: 30px; }
.col { flex:1; padding:0 15px; }
.col-md-4 { flex:0 0 33.333333%; max-width:33.333333%; padding:0 15px; }
.col-md-6 { flex:0 0 50%; max-width:50%; padding:0 15px; }
.col-md-12 { flex:0 0 100%; max-width:100%; padding:0 15px; }

/* Sections */
.section { padding:4rem 0; }
.section-light { background-color: var(--background-light); }

.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #222; /* ensure dark text when yellow is present */
    padding: 6rem 0;
    text-align: center;
}
.hero h1 { color: #222; font-size:3rem; margin-bottom:1.5rem; }

/* Mobile Responsive */
@media (max-width:768px) {
    .container { padding:0 1rem; }
    .navbar-nav { flex-direction:column; gap:1rem; }
    .col-md-4, .col-md-6 { flex:0 0 100%; max-width:100%; margin-bottom:2rem; }
    .hero h1 { font-size:2rem; }
    h1{ font-size:2rem; }
    h2{ font-size:1.75rem; }
    h3{ font-size:1.5rem; }
    .btn{ width:100%; margin-bottom:1rem; }
    body{ font-size:14px; }
}

@media (max-width:480px) {
    .hero { padding:4rem 0; }
    .hero h1 { font-size:1.75rem; }
    .section { padding:2rem 0; }
}
