/* Tailwind-like CraftCMS Matching CSS */

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

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.5;
}

body.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-gray-800 {
    color: #1f2937;
}

/* ========== CONTAINERS & LAYOUTS ========== */
.container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.container.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Padding Utilities */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

/* Margin Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

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

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

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

/* ========== NAVIGATION ========== */
nav.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.bg-white {
    background-color: #ffffff;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-600 a {
    color: #16a34a;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #1f2937;
    text-decoration: none;
}

.hover\:text-green-600:hover {
    color: #16a34a;
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ========== HERO SECTION ========== */
section.bg-gradient-to-r {
    background-image: linear-gradient(to right, #16a34a, #15803d);
}

section.from-green-600.to-green-700 {
    background: linear-gradient(to right, #16a34a 0%, #15803d 100%);
}

.text-white {
    color: #ffffff;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.opacity-90 {
    opacity: 0.9;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

.hover\:bg-green-700:hover {
    background-color: #15803d;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-green-600 {
    border-color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

/* ========== BUTTONS ========== */
.bg-white.text-green-600 {
    background-color: #ffffff;
    color: #16a34a;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ========== TEXT ========== */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-900 {
    color: #111827;
}

.font-normal {
    font-weight: 400;
}

/* ========== FOOTER ========== */
.bg-gray-900 {
    background-color: #111827;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-800 {
    border-color: #1f2937;
}

.pt-8 {
    padding-top: 2rem;
}

.hover\:text-green-400:hover {
    color: #4ade80;
}

.inline-block {
    display: inline-block;
}

/* ========== MAX-WIDTH ========== */
.max-w-4xl {
    max-width: 56rem;
}

/* ========== TYPOGRAPHY ========== */
strong {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* ========== LINKS ========== */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== MISC ========== */
.max-width\:1200px {
    max-width: 1200px;
}

/* Generic size classes */
h1.text-5xl {
    font-size: 3rem;
}

p.text-xl {
    font-size: 1.25rem;
}

a.text-green-600 {
    color: #16a34a;
}

a.text-white {
    color: #ffffff;
}

/* Content sections */
section {
    width: 100%;
}

main {
    width: 100%;
}

main > section {
    width: 100%;
}

/* Extra padding for sections */
section.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ========== FORM STYLING ========== */
.form-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
}

form {
    display: flex;
    flex-direction: column;
}

.form-field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
}

.form-label label {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.form-label label .required {
    color: #ef4444;
    font-weight: bold;
}

.form-data {
    display: flex;
    flex-direction: column;
}

.form-input-wrapper {
    display: flex;
}

form input[type="text"],
form input[type="email"],
form input[type="phone"],
form input[type="tel"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="phone"]:focus,
form input[type="tel"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-button-wrapper,
.form-button {
    display: flex;
    justify-content: center;
}

form input[type="submit"],
form button {
    background-color: #10b981;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 100%;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

form input[type="submit"]:active,
form button:active {
    transform: scale(0.98);
}

.form-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-errors p {
    margin: 0.25rem 0;
}

.form-field.has-errors {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    padding-left: 1rem;
}

.form-field.has-errors input,
.form-field.has-errors textarea,
.form-field.has-errors select {
    border-color: #ef4444;
}

/* Success message */
.form-wrapper .alert-success,
.form-wrapper .notices.success,
.form-status-message.alert-success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.form-wrapper .alert-success strong,
.form-wrapper .notices.success strong,
.form-status-message.alert-success strong {
    font-weight: 700;
}

.form-status-message.alert-success p,
.form-wrapper .notices.success p {
    margin: 0;
}

/* Error/validation messages */
.form-wrapper .alert-danger,
.form-wrapper .notices.error,
.form-status-message.alert-danger {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #7f1d1d;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.form-status-message.alert-danger p,
.form-wrapper .notices.error p {
    margin: 0;
}

/* ========== GRID RESPONSIVE FIXES ========== */
@media (max-width: 767px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container.mx-auto {
        padding: 1rem;
    }
    
    .form-wrapper {
        padding: 1rem;
    }
}
