/* Global layout */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f5f7;
    color: #222;
}

/* Header */
header {
    background: #111827;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 22px;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Main container */
.container {
    max-width: 1000px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

/* Hero section */
.hero {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hero-text {
    flex: 1 1 260px;
}

.hero-text h2 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-text p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.5;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Hero image */
.hero-image {
    flex: 0 1 260px;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    border-radius: 14px;
    display: block;
}

/* Features section */
.features {
    margin-top: 32px;
}

.features h3 {
    margin-bottom: 16px;
    font-size: 22px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

/* Contact form */
.contact-form {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 500px;
}

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font: inherit;
}

/* Messages table (admin) */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.messages-table th,
.messages-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    font-size: 14px;
}

.messages-table th {
    background: #f3f4f6;
    text-align: left;
}

/* Footer */
footer {
    text-align: center;
    padding: 14px 0;
    font-size: 13px;
    color: #6b7280;
}
