/* ============================================
   FixItWith.AI – Main Stylesheet
   Target: DIY beginners — Clean, Clear, Precise
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #222;
    background: #ffffff;
}

/* --- Layout --- */
header, nav, section, footer, article {
    width: 100%;
}

header, main, section, footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: #0d1b2a;
    color: #ffffff;
    padding: 20px;
    max-width: 100%;
}

header > div,
header h1,
header p,
header nav {
    max-width: 960px;
    margin: 0 auto;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    padding: 0 20px;
}

header p {
    color: #90b4ce;
    font-size: 0.95rem;
    padding: 0 20px;
    margin-top: 2px;
}

/* --- Navigation --- */
nav {
    background: #0d1b2a;
    border-top: 1px solid #1e3a5f;
    max-width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #90b4ce;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
    color: #ffffff;
    background: #1e3a5f;
}

/* --- Sections --- */
section {
    padding: 48px 20px;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 16px;
}

section p {
    margin-bottom: 14px;
    max-width: 720px;
}

section ul {
    max-width: 720px;
    padding-left: 20px;
    margin-bottom: 14px;
}

section ul li {
    margin-bottom: 8px;
}

/* --- Hero Section --- */
#hero {
    background: #f0f6ff;
    text-align: center;
    padding: 64px 20px;
    border-bottom: 3px solid #1a73e8;
}

#hero h2 {
    font-size: 2rem;
    color: #0d1b2a;
    margin-bottom: 16px;
}

#hero p {
    font-size: 1.1rem;
    color: #444;
    max-width: 640px;
    margin: 0 auto 16px;
}

/* --- CTA Section --- */
#cta {
    background: #0d1b2a;
    text-align: center;
    padding: 56px 20px;
}

#cta h2 {
    color: #ffffff;
    margin-bottom: 12px;
}

#cta p {
    color: #90b4ce;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* --- Buttons & Links --- */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section a,
#hero a,
#cta a {
    display: inline-block;
    padding: 12px 28px;
    background: #1a73e8;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}

section a:hover,
#hero a:hover,
#cta a:hover {
    background: #0d5bca;
    text-decoration: none;
}

/* --- Products Grid --- */
#products {
    background: #f9f9f9;
}

#products article {
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    max-width: 720px;
}

#products article h3 {
    font-size: 1.1rem;
    color: #0d1b2a;
    margin-bottom: 8px;
}

#products article p {
    color: #555;
    margin-bottom: 12px;
}

/* --- Chapter / Book Pages --- */
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0d1b2a;
    margin: 32px 0 16px;
    padding: 0 20px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 28px 0 12px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a73e8;
    margin: 20px 0 8px;
}

p {
    margin-bottom: 14px;
    max-width: 720px;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 14px;
    max-width: 720px;
}

li {
    margin-bottom: 6px;
}

/* --- Blockquotes (ChatGPT prompts) --- */
blockquote {
    background: #f0f6ff;
    border-left: 4px solid #1a73e8;
    padding: 14px 20px;
    margin: 20px 0;
    color: #333;
    font-style: italic;
    max-width: 720px;
    border-radius: 0 6px 6px 0;
}

/* --- Tables --- */
table {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

th {
    background: #0d1b2a;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #dde4ee;
}

tr:nth-child(even) td {
    background: #f5f8ff;
}

/* --- HR Dividers --- */
hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 36px 0;
    max-width: 720px;
}

/* --- Forms --- */
form {
    max-width: 560px;
    margin-top: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0d1b2a;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid #1a73e8;
    border-color: #1a73e8;
}

button[type="submit"] {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #0d5bca;
}

/* --- Footer --- */
footer {
    background: #0d1b2a;
    color: #90b4ce;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.9rem;
    max-width: 100%;
}

footer a {
    color: #90b4ce;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    #hero h2 { font-size: 1.4rem; }
    nav ul { flex-direction: column; }
    nav ul li a { padding: 10px 16px; }
    section { padding: 32px 16px; }
}
