/* ==================================
ZEDFIX — SHARED WEBSITE STYLING
================================== */

:root {
--green: #087F50;
--navy: #102A3A;
--mint: #F1F5F3;
--white: #FFFFFF;
}

* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: var(--navy);
background: var(--white);
line-height: 1.5;
}

a {
color: inherit;
}

.container {
width: min(1200px, 92%);
margin: 0 auto;
}

h1, h2, h3, p {
margin-top: 0;
}

h2 {
margin-bottom: 10px;
line-height: 1.25;
}

p {
margin-bottom: 12px;
}

/* HEADER */

.site-header {
background: var(--white);
border-bottom: 1px solid var(--mint);
}

.header-content {
min-height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 28px;
}

.logo {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--green);
text-decoration: none;
font-size: 1.65rem;
font-weight: 800;
line-height: 1.1;
flex-shrink: 0;
}

.logo-icon {
font-size: 2.5rem;
line-height: 1;
}

.logo small {
display: block;
margin-top: 4px;
color: var(--navy);
font-size: 0.65rem;
font-weight: 400;
}

.navigation {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 26px;
}

.navigation a {
padding: 10px 0;
color: var(--navy);
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
border-bottom: 3px solid transparent;
}

.navigation a:hover,
.navigation a.active {
color: var(--green);
border-bottom-color: var(--green);
}

/* BUTTONS */

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 20px;
border: 2px solid var(--green);
border-radius: 6px;
font-family: inherit;
font-size: 0.95rem;
font-weight: 700;
text-align: center;
text-decoration: none;
transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
color: var(--white);
background: var(--green);
}

.btn-primary:hover {
color: var(--green);
background: var(--white);
}

.btn-secondary {
color: var(--navy);
background: var(--white);
border-color: var(--navy);
}

.btn-secondary:hover {
color: var(--white);
background: var(--navy);
}

.header-button {
white-space: nowrap;
}

/* HERO SECTION */

.hero {
padding: 48px 0;
background: var(--mint);
}

.hero-layout {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 48px;
}

.eyebrow {
margin-bottom: 10px;
color: var(--green);
font-size: 0.82rem;
font-weight: 800;
letter-spacing: 0.8px;
}

.hero .eyebrow {
display: inline-block;
padding: 5px 12px;
border-radius: 20px;
color: var(--navy);
background: var(--white);
letter-spacing: 0;
}

.hero h1 {
margin-bottom: 16px;
font-size: clamp(2.3rem, 4vw, 3.4rem);
line-height: 1.08;
letter-spacing: -1px;
}

.hero h1 span {
display: block;
color: var(--green);
}

.hero-text {
max-width: 440px;
margin-bottom: 24px;
font-size: 1.05rem;
}

.hero-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.hero-visual {
    min-height: 270px;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    background: transparent;
}

.hero-visual img {
    width: 100%;
    max-width: 520px;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.house-symbol {
color: var(--green);
font-size: 6rem;
line-height: 1.1;
}

.hero-visual h2 {
margin: 12px 0 2px;
font-size: 1.35rem;
}

.hero-visual p {
margin-bottom: 0;
}

/* BENEFITS STRIP */

.benefits {
padding: 25px 0;
background: var(--white);
border-bottom: 1px solid var(--mint);
}

.benefits-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}

.benefit,
.why-item {
display: flex;
align-items: center;
gap: 13px;
}

.benefit:not(:first-child) {
border-left: 1px solid var(--mint);
padding-left: 18px;
}

.benefit-icon {
width: 54px;
height: 54px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border-radius: 50%;
color: var(--green);
background: var(--mint);
font-size: 1.7rem;
font-weight: 700;
}

.benefit h3,
.why-item h3 {
margin-bottom: 3px;
font-size: 1rem;
}

.benefit p,
.why-item p {
margin-bottom: 0;
font-size: 0.88rem;
}

/* GENERAL SECTIONS */

.section {
padding: 48px 0;
}

.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 25px;
}

.section-heading h2 {
font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading p:not(.eyebrow) {
margin-bottom: 0;
}

.text-link {
flex-shrink: 0;
color: var(--navy);
font-weight: 700;
text-decoration: none;
}

.text-link:hover,
.service-card a:hover {
color: var(--green);
}

/* SERVICE CARDS */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
    gap: 24px;
}

.technicians-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.service-card,
.technician-card {
min-width: 0;
padding: 22px;
border: 1px solid var(--mint);
border-radius: 8px;
background: var(--white);
box-shadow: 0 3px 12px var(--mint);
}

.service-card {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 14px;
}

.card-icon {
width: 52px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
border-radius: 50%;
color: var(--navy);
background: var(--mint);
font-size: 1.8rem;
}

.service-card h3,
.technician-card h3 {
margin-bottom: 6px;
font-size: 1.05rem;
}

.service-card p {
margin-bottom: 18px;
font-size: 0.92rem;
}

.service-card a {
margin-top: auto;
color: var(--navy);
font-weight: 700;
text-decoration: none;
}

/* WHY CHOOSE ZEDFIX */

.why-us {
padding: 48px 0;
background: var(--mint);
}

.why-layout {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 55px;
}

.why-content h2 {
font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.why-content > p:not(.eyebrow) {
max-width: 480px;
margin-bottom: 22px;
}

.why-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 25px 20px;
}

/* TECHNICIAN CARDS */

.technician-card {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.avatar {
width: 55px;
height: 55px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
border-radius: 50%;
color: var(--navy);
background: var(--mint);
font-size: 2rem;
}

.technician-card p {
margin-bottom: 5px;
font-size: 0.9rem;
}

.technician-card .location {
margin-top: 4px;
}

.rating {
color: var(--navy);
font-weight: 800;
}

.rating span {
font-size: 0.8rem;
font-weight: 400;
}

.technician-button {
width: 100%;
margin-top: 12px;
padding: 9px 12px;
color: var(--white);
background: var(--navy);
border-color: var(--navy);
}

.technician-button:hover {
color: var(--navy);
background: var(--white);
}

/* BOOKING BANNER */

.booking-cta {
padding: 35px 0;
background: var(--mint);
}

.booking-layout {
display: flex;
align-items: center;
gap: 25px;
}

.booking-icon {
width: 82px;
height: 82px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border-radius: 50%;
color: var(--navy);
background: var(--white);
font-size: 2.5rem;
}

.booking-copy {
flex: 1;
}

.booking-copy h2 {
font-size: 1.6rem;
}

.booking-copy p:last-child {
max-width: 520px;
margin-bottom: 0;
}

/* FOOTER */

.site-footer {
padding: 40px 0 25px;
color: var(--white);
background: var(--navy);
}

.footer-grid {
display: grid;
grid-template-columns: 1.3fr 0.8fr 1.2fr 0.8fr;
gap: 30px;
}

.footer-logo,
.footer-logo small {
color: var(--white);
}

.footer-brand > p {
margin-top: 35px;
font-size: 0.82rem;
}

.site-footer h3 {
margin-bottom: 12px;
font-size: 1rem;
}

.site-footer p,
.site-footer a:not(.logo) {
font-size: 0.9rem;
}

.site-footer a:not(.logo) {
display: block;
width: fit-content;
margin-bottom: 7px;
color: var(--white);
text-decoration: none;
}

.site-footer a:not(.logo):hover {
text-decoration: underline;
}

/* TABLETS */

@media (max-width: 950px) {
.header-content {
flex-wrap: wrap;
justify-content: center;
padding: 16px 0;
}

.navigation {
    gap: 18px;
}

.hero-layout,
.why-layout {
    gap: 28px;
}

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

.benefit:not(:first-child) {
    border-left: 0;
    padding-left: 0;
}

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

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

}

/* PHONES */

@media (max-width: 600px) {
.container {
width: 90%;
}

.header-content {
    gap: 15px;
}

.navigation {
    gap: 10px 18px;
}

.navigation a {
    font-size: 0.9rem;
}

.header-button {
    width: 100%;
}

.hero {
    padding: 38px 0;
}

.hero-layout,
.why-layout {
    grid-template-columns: 1fr;
}

.hero h1 {
    font-size: 2.4rem;
}

.hero-visual {
    min-height: 210px;
    padding: 22px;
}

.house-symbol {
    font-size: 4.5rem;
}

.hero-buttons {
    flex-direction: column;
}

.hero-buttons .btn {
    width: 100%;
}

.benefits-grid,
.card-grid,
.why-grid,
.footer-grid {
    grid-template-columns: 1fr;
}

.benefit {
    padding: 5px 0;
}

.section,
.why-us {
    padding: 35px 0;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
}

.service-card,
.technician-card {
    padding: 20px;
}

.booking-layout {
    align-items: flex-start;
    flex-direction: column;
}

.booking-layout > .btn {
    width: 100%;
}

.footer-brand > p {
    margin-top: 20px;
}

}

/* FIX ZEDFIX HEADER AND FOOTER LOGO SIZES */
.site-header .site-logo {
    width: 180px;
    height: 55px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.site-footer .site-logo {
    width: 180px;
    height: 55px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* ADMIN DASHBOARD STYLING */

.admin-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
}

.admin-container h1 {
    color: #252b45;
    margin-bottom: 10px;
}

.admin-container > p {
    color: #666;
    margin-bottom: 25px;
}

.admin-container #load-bookings {
    margin-bottom: 20px;
}

.admin-container #message {
    margin: 12px 0;
    color: #25834a;
    font-weight: 600;
}

.admin-container #booking-search,
.admin-container #status-filter {
    padding: 11px 14px;
    border: 1px solid #d8ded8;
    border-radius: 7px;
    margin: 8px 12px 18px 6px;
    font-size: 14px;
}

.admin-container #booking-search {
    min-width: 280px;
}

.admin-container label {
    font-weight: 600;
    color: #343a40;
}

.booking-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 25px 0 35px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e4e9e4;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    font-size: 15px;
    color: #626b65;
    margin-bottom: 12px;
}

.summary-card p {
    font-size: 28px;
    font-weight: 700;
    color: #18774f;
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
}

.admin-table th {
    background: #173f32;
    color: #fff;
}

.admin-table tr:hover {
    background: #f7faf7;
}

.admin-table select {
    padding: 8px;
    border: 1px solid #d8ded8;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .booking-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-container {
        padding: 18px;
    }

    .booking-summary {
        grid-template-columns: 1fr;
    }

    .admin-container #booking-search {
        min-width: 100%;
        margin-left: 0;
    }
}