/* ================================
   Kim Gorman - Newborn & Infant Care
   Mobile-first responsive design
   ================================ */

:root {
    --sage-green: #7a9a8a;
    --sage-dark: #6b8b7b;
    --cream: #f7f6f3;
    --white: #ffffff;
    --text-dark: #3d3d3d;
    --text-light: #555555;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    font-size: 16px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   Header
   ================================ */

header {
    background-color: var(--sage-green);
    color: var(--white);
    padding: 48px 24px;
    text-align: center;
}

header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding-bottom: 8px;
}

header .subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

header .tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* ================================
   Main Content
   ================================ */

main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    text-align: center;
}

/* Section headings with decorative lines */
h2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--sage-green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

h2::before,
h2::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--sage-green);
    opacity: 0.5;
}

h2 span {
    white-space: nowrap;
}

h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

section p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: left;
}

section p:last-of-type {
    margin-bottom: 0;
}

/* ================================
   Services List
   ================================ */

.services-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.services-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text-light);
}

.services-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: 600;
}

.services-list li:last-child {
    margin-bottom: 0;
}

/* ================================
   Contact Section
   ================================ */

.contact p {
    text-align: center;
    margin-bottom: 24px;
}

.contact-button,
.submit-button {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--sage-green);
    border: none;
    padding: 14px 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover,
.submit-button:hover {
    background-color: var(--sage-dark);
    transform: translateY(-1px);
}

.contact-button:active,
.submit-button:active {
    transform: translateY(0);
}

/* Contact Form */
.contact-form {
    max-width: 400px;
    margin: 24px auto 0;
    text-align: left;
}

.contact-form.hidden {
    display: none;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.honeypot {
    display: none;
}

.submit-button {
    width: 100%;
    margin-top: 8px;
}

/* Form Messages */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    display: block;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: block;
}

/* ================================
   Footer
   ================================ */

footer {
    background-color: var(--sage-green);
    color: var(--white);
    text-align: center;
    padding: 24px;
    margin-top: 20px;
}

footer p {
    font-size: 0.9rem;
    font-weight: 300;
}

footer em {
    font-family: var(--font-serif);
}

/* ================================
   Thank You Page
   ================================ */

.thank-you {
    text-align: center;
    padding: 60px 24px;
}

.thank-you h2 {
    margin-bottom: 20px;
}

.thank-you p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.back-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--sage-green);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
    background-color: var(--sage-dark);
    transform: translateY(-1px);
}

/* ================================
   Tablet & Desktop (min-width: 600px)
   ================================ */

@media (min-width: 600px) {
    body {
        font-size: 17px;
    }

    header {
        padding: 64px 24px;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header .subtitle {
        font-size: 1.25rem;
    }

    header .tagline {
        font-size: 1.1rem;
    }

    main {
        padding: 60px 0;
    }

    section {
        margin-bottom: 50px;
    }

    h2 {
        font-size: 1.75rem;
    }

    h2::before,
    h2::after {
        width: 80px;
    }

    h3 {
        font-size: 1.4rem;
    }

    section p {
        font-size: 1.05rem;
    }

    .services-list li {
        font-size: 1.05rem;
    }
}

/* ================================
   Large Desktop (min-width: 900px)
   ================================ */

@media (min-width: 900px) {
    header h1 {
        font-size: 4rem;
    }

    h2::before,
    h2::after {
        width: 100px;
    }
}
