/* ============================================================
   The Aged Smile Foundation — Base Styles
   Design: Dark green + gold, Poppins, creamy tones, wavy dividers
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --green-darkest: #0f2c1b;
    --green: #1b4d2e;
    --green-soft: #206337;
    --yellow: #f4bb2c;
    --yellow-deep: #e3a813;
    --cream: #faf8f2;
    --offwhite: #f3f3ef;
    --text-dark: #1c2b22;
    --gray-text: #566459;
    --text-light: #fff;
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --radius: 6px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: var(--green); transition: color 0.2s; }
a:hover { color: var(--yellow); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--gray-text); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius); font-size: 1rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    border: 2px solid transparent; text-decoration: none; font-family: 'Poppins', sans-serif;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--yellow); color: var(--text-dark); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--text-dark); }
.btn-secondary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-secondary:hover { background: var(--green-darkest); border-color: var(--green-darkest); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Wave Divider – overlapping gold + green curves */
.wave-divider {
    position: relative; line-height: 0; width: 100%; display: block;
}
.wave-divider svg {
    width: 100%; height: 90px; display: block;
}

/* Section Spacing */
.section { padding: 5rem 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--green); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-title p { color: var(--gray-text); max-width: 600px; margin: 0 auto; }

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.card {
    background: #fff; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Form Elements */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control {
    width: 100%; padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0; border-radius: var(--radius);
    font-size: 1rem; font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--green); }
textarea.form-control { min-height: 120px; resize: vertical; }

.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.breadcrumb { padding: 1rem 0; font-size: 0.9rem; color: var(--gray-text); }
.breadcrumb a { color: var(--green); }

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
    .card-grid { grid-template-columns: 1fr; }
}
