/*
 * Styles for Digital Handyman website
 * A clean, modern layout with responsive design.
 */

:root {
    --primary-color: #0066aa;
    --secondary-color: #2ca058;
    --text-color: #333;
    --background-light: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background-color: var(--background-light);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* Logo sizing: keep width and auto height so the logo isn’t cropped */
/* Logo sizing: keep width larger so the abstract letters are visible */
.logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.site-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #22874a;
}

.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.service-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.price-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: start;
}

.price-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price-card .price {
    font-size: 2rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

.price-card .price span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.price-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 15px 0;
}

.price-card ul li {
    margin-bottom: 8px;
}

.price-card button {
    align-self: stretch;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.price-card button:hover {
    background-color: #004f80;
}

/* Style for plan buttons (Stripe links) */
.price-card a.plan-button {
    align-self: stretch;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.price-card a.plan-button:hover {
    background-color: #004f80;
}

.payment-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

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

.payment label {
    margin-bottom: 5px;
    font-weight: 600;
}

.payment input,
.payment select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment button {
    padding: 12px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment button:hover {
    background-color: #227d46;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.contact-section a {
    color: var(--primary-color);
    text-decoration: none;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    .pricing {
        flex-direction: column;
        align-items: center;
    }
    .price-card {
        width: 90%;
        max-width: 350px;
    }
}