/*--------------------------------------------------------------
# Fixit24 custom styles (shared page components)
--------------------------------------------------------------*/


/* ---------- Services page ---------- */
.services-hero .heading {
    text-align: center;
    padding: 120px 0 80px 0;
}

.services-hero .heading h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 12px;
}

.services-hero .heading p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.services-grid .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(34, 52, 99, 0.08);
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 92%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-grid .service-card:hover,
.services-grid .service-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(34, 52, 99, 0.16);
}

.services-grid .service-card .thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f5fe;
}

.services-grid .service-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-grid .service-card:hover .thumb img {
    transform: scale(1.07);
}

.services-grid .service-card .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(34, 52, 99, 0.45));
    pointer-events: none;
}

.services-grid .service-card .badge-icon {
    position: absolute;
    right: 18px;
    bottom: -22px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(115, 179, 226, 0.5);
    transition: transform 0.3s ease;
}

.services-grid .service-card:hover .badge-icon {
    transform: rotate(-12deg) scale(1.08);
}

.services-grid .service-card .body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 24px 24px;
}

.services-grid .service-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--heading-color);
}

.services-grid .service-card p {
    margin: 0 0 20px;
    font-size: 15px;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.services-grid .service-card .service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 15px;
    color: var(--heading-color);
    text-decoration: none;
}

.services-grid .service-card .service-link i {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.services-grid .service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Make the whole card clickable */
.services-grid .service-card .service-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.services-empty {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed color-mix(in srgb, var(--heading-color), transparent 80%);
    border-radius: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.services-empty i {
    font-size: 48px;
    color: var(--accent-color);
}

.services-cta {
    text-align: center;
    padding: 70px 0;
}

.services-cta h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 10px;
}

.services-cta p {
    color: color-mix(in srgb, var(--contrast-color), transparent 25%);
    margin-bottom: 28px;
}

.services-cta .btn-cta {
    display: inline-block;
    padding: 11px 30px 12px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.services-cta .btn-cta.primary {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.services-cta .btn-cta.primary:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: translateY(-2px);
}

.services-cta .btn-cta.ghost {
    margin-left: 12px;
    color: var(--contrast-color);
    border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 40%);
    box-shadow: none;
}

.services-cta .btn-cta.ghost:hover {
    background: var(--contrast-color);
    color: var(--heading-color);
}

@media (max-width: 575px) {
    .services-hero .heading h1 { font-size: 32px; }
    .services-cta .btn-cta.ghost { margin: 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .services-grid .service-card,
    .services-grid .service-card * {
        transition: none !important;
    }
}

/* ---------- Gallery page ---------- */
.gallery-hero .heading {
    text-align: center;
    padding: 120px 0 80px 0;
}

.gallery-hero .heading h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 12px;
}

.gallery-hero .heading p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-grid .gallery-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f5fe;
    box-shadow: 0 4px 18px rgba(34, 52, 99, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-tile:hover,
.gallery-grid .gallery-tile:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(34, 52, 99, 0.20);
}

.gallery-grid .gallery-tile:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.gallery-grid .gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid .gallery-tile:hover img,
.gallery-grid .gallery-tile:focus-visible img {
    transform: scale(1.1);
}

.gallery-grid .gallery-tile .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(transparent 45%, rgba(34, 52, 99, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid .gallery-tile:hover .overlay,
.gallery-grid .gallery-tile:focus-visible .overlay {
    opacity: 1;
}

.gallery-grid .gallery-tile .overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--contrast-color);
}

.gallery-grid .gallery-tile .overlay span {
    font-size: 13px;
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.gallery-grid .gallery-tile .zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-size: 18px;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-grid .gallery-tile:hover .zoom,
.gallery-grid .gallery-tile:focus-visible .zoom {
    transform: scale(1);
    opacity: 1;
}

/* Touch devices have no hover: keep the caption visible */
@media (hover: none) {
    .gallery-grid .gallery-tile .overlay,
    .gallery-grid .gallery-tile .zoom {
        opacity: 1;
        transform: none;
    }
}

.gallery-count {
    text-align: center;
    margin-bottom: 28px;
    font-weight: 600;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed color-mix(in srgb, var(--heading-color), transparent 80%);
    border-radius: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.gallery-empty i {
    font-size: 48px;
    color: var(--accent-color);
}

.gallery-cta {
    text-align: center;
    padding: 70px 0;
}

.gallery-cta h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 10px;
}

.gallery-cta p {
    color: color-mix(in srgb, var(--contrast-color), transparent 25%);
    margin-bottom: 28px;
}

.gallery-cta .btn-cta {
    display: inline-block;
    padding: 11px 30px 12px;
    border-radius: 50px;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-family: var(--heading-font);
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.gallery-cta .btn-cta:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: translateY(-2px);
}

@media (max-width: 575px) {
    .gallery-hero .heading h1 { font-size: 32px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-grid .gallery-tile .overlay h3 { font-size: 14px; }
    .gallery-grid .gallery-tile .overlay span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-grid .gallery-tile,
    .gallery-grid .gallery-tile * {
        transition: none !important;
    }
}

/* ---------- Home page ---------- */
.hero .hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.hero .hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 17px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .hero-points i {
    color: var(--accent-color);
}

.hero .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 26px 11px;
    border-radius: 50px;
    border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 40%);
    color: var(--contrast-color);
    font-family: var(--heading-font);
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
}

.hero .btn-hero-secondary:hover {
    background: var(--contrast-color);
    color: var(--heading-color);
}

.hero .btn-get-started:focus-visible,
.hero .btn-hero-secondary:focus-visible,
.btn-cta:focus-visible {
    outline: 3px solid var(--contrast-color);
    outline-offset: 3px;
}

.how-it-works .step-card {
    position: relative;
    height: 100%;
    text-align: center;
    padding: 44px 28px 32px;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 92%);
    box-shadow: 0 4px 20px rgba(34, 52, 99, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works .step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(34, 52, 99, 0.16);
}

.how-it-works .step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--heading-color);
    color: var(--contrast-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

.how-it-works .step-card > i {
    font-size: 42px;
    color: var(--accent-color);
}

.how-it-works .step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--heading-color);
}

.how-it-works .step-card p {
    margin: 0;
    font-size: 15px;
}

.testimonials .testimonial-item .testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.home-cta {
    text-align: center;
    padding: 70px 0;
}

.home-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 10px;
}

.home-cta p {
    color: color-mix(in srgb, var(--contrast-color), transparent 25%);
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-block;
    padding: 11px 30px 12px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.btn-cta.primary {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.btn-cta.primary:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    transform: translateY(-2px);
}

.btn-cta.ghost {
    margin-left: 12px;
    color: var(--contrast-color);
    border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 40%);
    box-shadow: none;
}

.btn-cta.ghost:hover {
    background: var(--contrast-color);
    color: var(--heading-color);
}

@media (max-width: 575px) {
    .btn-cta.ghost { margin: 12px 0 0; }
    .home-cta h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .how-it-works .step-card { transition: none; }
}

/* ---------- Legal pages (Terms, Privacy) ---------- */
.page-hero .heading {
    text-align: center;
    padding: 120px 0 80px 0;
}

.page-hero .heading h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 12px;
}

.page-hero .heading p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.legal-page .legal-toc {
    position: sticky;
    top: 110px;
    padding: 22px;
    background: #f4f5fe;
    border-radius: 14px;
}

.legal-page .legal-toc h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
    color: var(--heading-color);
}

.legal-page .legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.legal-page .legal-toc li + li {
    margin-top: 6px;
}

.legal-page .legal-toc a {
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    text-decoration: none;
}

.legal-page .legal-toc a:hover {
    color: var(--accent-color);
}

.legal-page .legal-content {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.75;
}

.legal-page .legal-content section {
    scroll-margin-top: 110px;
    margin-bottom: 34px;
}

.legal-page .legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.legal-page .legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 18px 0 8px;
}

.legal-page .legal-content ul {
    padding-left: 22px;
}

.legal-page .legal-content li {
    margin-bottom: 6px;
}

.legal-page .legal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.legal-page .legal-content address {
    font-style: normal;
    padding: 16px 20px;
    border-left: 4px solid var(--accent-color);
    background: #f4f5fe;
    border-radius: 0 10px 10px 0;
}

.legal-page .legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 28px;
    border-radius: 50px;
    background: #f4f5fe;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}

html { scroll-behavior: smooth; }

@media (max-width: 575px) {
    .page-hero .heading h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- Auth pages (sign up, verify) ---------- */
.auth-section .auth-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 30px rgba(34, 52, 99, 0.10);
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 92%);
}

.auth-section .auth-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.auth-section .auth-card.text-center h2 {
    margin-bottom: 10px;
}

.auth-section .auth-icon {
    font-size: 54px;
    color: var(--accent-color);
}

.auth-section .form-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.auth-section .form-control:focus,
.auth-section .form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(115, 179, 226, 0.25);
}

.auth-section .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.auth-section .field-error {
    margin-top: 4px;
    font-size: 13px;
    color: #dc3545;
}

.auth-section .service-picker {
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 85%);
    border-radius: 12px;
    padding: 16px;
}

.auth-section .service-picker legend {
    float: none;
    width: auto;
    padding: 0 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
}

.auth-section .btn-outline-primary {
    --bs-btn-color: var(--heading-color);
    --bs-btn-border-color: color-mix(in srgb, var(--heading-color), transparent 70%);
    --bs-btn-hover-bg: color-mix(in srgb, var(--accent-color), transparent 80%);
    --bs-btn-hover-color: var(--heading-color);
    --bs-btn-hover-border-color: var(--accent-color);
    --bs-btn-active-bg: var(--accent-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-border-color: var(--accent-color);
    --bs-btn-disabled-color: #999;
    --bs-btn-disabled-border-color: #ddd;
}

.auth-section .otp-input {
    max-width: 220px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 28px;
    letter-spacing: 10px;
    font-weight: 700;
}

.auth-section .auth-card a {
    color: var(--accent-color);
}

.auth-section .btn-cta {
    cursor: pointer;
    color: var(--contrast-color);
}

.auth-section .btn-cta:disabled {
    opacity: 0.7;
}

/* ---------- Contact page ---------- */
.contact .contact-form .form-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.contact .contact-form .form-control {
    padding: 11px 14px;
    border-radius: 10px;
}

.contact .contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(115, 179, 226, 0.25);
}

.contact .contact-form .field-error {
    margin-top: 4px;
    font-size: 13px;
    color: #dc3545;
}

.contact .contact-form .btn-cta,
.btn-cta.border-0 {
    cursor: pointer;
    color: var(--contrast-color);
}

.contact .contact-form .btn-cta:disabled {
    opacity: 0.7;
}

.contact .info-item a {
    color: var(--default-color);
}

/* ---------- About page ---------- */
.about-page .about-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 16px;
}

.about-page p {
    font-size: 17px;
    line-height: 1.7;
}

.about-page .about-image {
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(34, 52, 99, 0.18);
}

.btn-cta.outline {
    color: var(--heading-color);
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 60%);
    box-shadow: none;
}

.btn-cta.outline:hover {
    background: var(--heading-color);
    color: var(--contrast-color);
}

.about-values .value-card {
    height: 100%;
    text-align: center;
    padding: 36px 26px;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 92%);
    box-shadow: 0 4px 20px rgba(34, 52, 99, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-values .value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(34, 52, 99, 0.16);
}

.about-values .value-card i {
    font-size: 42px;
    color: var(--accent-color);
}

.about-values .value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 8px;
    color: var(--heading-color);
}

.about-values .value-card p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .about-values .value-card { transition: none; }
}

/* ---------- Team page ---------- */
.team-page .team-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: 0 6px 24px rgba(34, 52, 99, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.team-page .team-card:hover,
.team-page .team-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(34, 52, 99, 0.22);
}

.team-page .team-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.team-page .team-card .photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e9ecf7;
}

.team-page .team-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-page .team-card:hover .photo img,
.team-page .team-card:focus-visible .photo img {
    transform: scale(1.05);
}

.team-page .team-card .info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 22px 22px;
    background: linear-gradient(transparent, rgba(34, 52, 99, 0.92));
}

.team-page .team-card .info::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.team-page .team-card:hover .info::after,
.team-page .team-card:focus-visible .info::after {
    width: 90px;
}

.team-page .team-card h3 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    color: var(--contrast-color);
}

.team-page .team-card p {
    margin: 0;
    font-size: 15px;
    color: color-mix(in srgb, var(--contrast-color), transparent 15%);
}

.team-values .team-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    height: 100%;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 90%);
    background: var(--surface-color);
}

.team-values .team-value > i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    color: var(--heading-color);
    background: color-mix(in srgb, var(--accent-color), transparent 75%);
}

.team-values .team-value h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
}

.team-values .team-value p {
    margin: 0;
    font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
    .team-page .team-card,
    .team-page .team-card .photo img,
    .team-page .team-card .info::after {
        transition: none;
    }
}
