/* Britebyte Computer Repair - Shared Styles
   Color reference:
   Yellow - #FFCC00
   Blue   - #0054D1
   Light Blue   - #00CCFF
   Lighter Blue - #7FB2FF
   White - #FFFFFF
*/
/*
Simple guide to this stylesheet

1) CSS variables (:root)
- --yellow, --blue, etc.: brand colors.
- --bg, --card-bg, --text, --muted, --border: base UI colors.
- --shadow-soft: reusable shadow.

2) Reset-ish
- * { box-sizing: border-box; }: makes widths predictable.

3) Body base
- Removes default margin, sets system font and line-height.
- Sets text color and a soft radial-gradient background.

4) Layout container (.container)
- Centers content with a max-width and side padding.
- On small screens, reduces padding.

5) Page grid (.page-main)
- Adds page padding and a vertical grid gap.
- On wide screens, switches to two columns.
- First .card becomes a “hero” (bigger look, gradient, shadow).

6) Typography (h1–h3, p, ul)
- Tightens margins, sets heading weight.
- Paragraphs use muted color; ul gets left padding.

7) Header & nav (.header, .header-inner)
- Sticky, translucent header with blur and bottom border.
- Flex layout to space brand and navigation.

8) Brand & logo (.brand, .logo, .brand-text...)
- Aligns logo and text horizontally.
- Logo given fixed size; name bold; tagline muted.

9) Navigation (.nav ...)
- Works with links or list markup.
- Spaced inline links with pill shape.
- Hover: white background and border.
- .active: blue gradient pill with white text and shadow.

10) Cards (.card)
- Rounded white panels with border and light shadow.

11) Lists inside cards (.list)
- Slight extra spacing for list items.

12) Buttons (.btn, .btn.primary)
- Pill-shaped buttons with subtle animations.
- .primary: light-blue gradient, white text, shadow.
- :hover brighter and lifts; :active lowers shadow.

13) Forms (.contact-form, .review-form)
- Two-column grid (one column on small screens).
- .form-field styles labels and inputs.
- Inputs/textarea get padding, border, radius; textarea resizable.
- .form-actions aligns submit to the right.
- .muted-note is small helper text color.

14) Reviews section (.reviews-*)
- Vertical list of review cards.
- Header area shows name/email and rating.
- .review-rating uses yellow stars (via text color).
- .review-text is the main message.
- .review-image-wrap img is responsive with rounded corners and shadow.
- .review-date shows a small, muted timestamp.
- .empty-state shows italic placeholder text.

15) Footer (.footer ...)
- Top border, padding, centered small text.
- .footer-inner arranges items with flex.

16) Responsive tweaks (@media)
- At <= 880px: stack header items, left-align nav.
- At <= 640px: forms become one column; reduce top padding; smaller hero title.
*/

:root {
    --yellow: #ffcc00;
    --blue: #0054d1;
    --light-blue: #00ccff;
    --lighter-blue: #7fb2ff;
    --white: #ffffff;

    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #1f2933;
    --muted: #5f6c80;
    --border: #d0d7e2;

    --shadow-soft: 0 10px 30px #0F223A1F;
}

/* Reset-ish */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;              /* Make both html and body fill the viewport height */
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
            radial-gradient(circle at 0% 0%, #ffcc00, transparent 40%),
            radial-gradient(circle at 100% 100%, #0054d1, transparent 40%),
            linear-gradient(180deg, #f5f7fb 0%, #e1ebff 100%);
    background-repeat: no-repeat;   /* Don’t tile the gradients */
    background-size: cover;         /* Stretch to cover the whole viewport */
    background-attachment: fixed;   /* Keep it locked to the viewport as you scroll */
}


/* Layout shell */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.page-main {
    padding: 32px 0 48px;
    display: grid;
    gap: 24px;
}

/* First card on each page acts as a hero block */
.page-main > .card:first-of-type {
    grid-column: 1 / -1;
    background: linear-gradient(
            135deg,
            #00ccff1f,
            #7fb2ff29
    );
    border-color: transparent;
    box-shadow: var(--shadow-soft);
}

.page-main > .card:first-of-type h1 {
    font-size: 2rem;
    margin-top: 0;
}

@media (min-width: 900px) {
    .page-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Typography */

h1,
h2,
h3 {
    margin: 0 0 8px;
    font-weight: 650;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
}

ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

/* Header & nav */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffffe6;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

/* Brand with logo */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 100px;
    width: 400px;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Nav works with both:
   <nav class="nav"><a>...</a></nav>
   and
   <nav class="nav"><ul><li><a>...</a></li></ul></nav>
*/

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0;
}

.nav a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--muted);
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.nav a:hover {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}

.nav a.active {
    background: linear-gradient(135deg, var(--blue), var(--lighter-blue));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-soft);
}

/* Cards */

.card {
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 4px 16px #0f223a0f;
}

/* Lists inside cards */

.list {
    padding-left: 20px;
    margin: 0 0 8px;
}

.list li {
    margin-bottom: 4px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease,
    filter 0.15s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px #0f223a1f;
}

/* Forms (contact + reviews) */

.contact-form,
.review-form {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95rem;
}

.form-field label {
    margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: inherit;
    color: var(--text);
    background: var(--white);
}

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

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.muted-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 10px;
}

/* Reviews */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.review-card {
    text-align: left;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-weight: 600;
}

.review-email {
    font-size: 0.85rem;
    color: var(--muted);
}

.review-rating {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--yellow);
}

.review-text {
    margin: 4px 0 6px;
    color: var(--text);
}

.review-image-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 14px #0f223a38;
}

.review-date {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.empty-state {
    font-style: italic;
    color: var(--muted);
}

/* Footer */

.footer {
    border-top: 1px solid var(--border);
    padding: 14px 32px 20px;
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.footer-note {
    color: var(--muted);
}

/* Responsive tweaks */

@media (max-width: 880px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .contact-form,
    .review-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-main {
        padding-top: 24px;
    }

    .page-main > .card:first-of-type h1 {
        font-size: 1.6rem;
    }
}

/*Styling for the services table */
.service-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.95rem;
}

.service-table th,
.service-table td {
    border: 1px solid var(--border);
    padding: 6px 8px;
    text-align: left;
}

.service-table thead {
    background: #00ccff26;
}

/* Checkbox styling for newsletter opt-in */
.checkbox-field {
    grid-column: 1 / -1;            /* span full width like actions */
    flex-direction: row;             /* override .form-field column */
    align-items: center;
    gap: 10px;
}

.checkbox-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;                      /* remove extra spacing around label */
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;              /* subtle rounding to match inputs */
    border: 1px solid var(--border);
    accent-color: var(--light-blue); /* brand accent */
}

.checkbox-field input[type="checkbox"]:focus-visible {
    outline: 2px solid #0054d159; /* accessible focus ring */
    outline-offset: 2px;
}

.checkbox-field label:hover input[type="checkbox"] {
    filter: brightness(1.06);
}

/* Styling for contact media cards */
.contact-media-card .contact-image {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 14px #0F223A2D;
}
