/* Amplified Consulting – shared styles */

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

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.8;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #a10303;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 5px 5px;
    z-index: 200;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Header */
header {
    background: #ffffff;
    color: #000000;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .logo-link {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

header .logo {
    max-width: 80px;
    height: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    text-align: center;
    color: black;
    min-width: 0;
}

.header-text h1 {
    font-size: 2rem;
    font-family: Georgia, serif;
    margin: 0;
    line-height: 1.2;
}

.header-text h4 {
    font-size: 1rem;
    font-style: italic;
    font-family: 'Trebuchet MS', sans-serif;
    margin-top: 0.3rem;
    font-weight: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.call-button {
    background: #a10303;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.call-button:hover,
.call-button:focus-visible {
    background: #7a0202;
    outline: 2px solid #a10303;
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle:focus-visible {
    outline: 2px solid #a10303;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
nav {
    background: #a10303;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    background: #ffffff;
    color: #000000;
    outline: none;
}

nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

main h2 {
    color: #a10303;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #a10303;
    display: inline-block;
}

main p {
    margin-bottom: 1.5rem;
}

main a {
    color: #a10303;
}

main a:hover {
    text-decoration: underline;
}

.page-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    color: #a10303;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    margin: 0.5rem 0;
    text-align: left;
    padding-left: 0;
}

.service-card ul li::before {
    content: "\2714";
    color: #a10303;
    margin-right: 0.5rem;
}

/* Why us section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.why-us-card {
    padding: 1rem;
    border-left: 3px solid #a10303;
    background: #f8f9fa;
}

.why-us-card h3 {
    color: #a10303;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.why-us-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Hero section */
.hero-section {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.hero-section .background-image {
    background: url('Consultation Bg.png') no-repeat center center/cover;
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .background-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(161, 3, 3, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 1.5rem;
}

.hero-content h2 {
    font-family: Georgia, serif;
    font-size: 2rem;
    border: none;
    display: block;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #f2f2f2;
}

.cta-button {
    background: #a10303;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s, color 0.3s;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover,
.cta-button:focus-visible {
    background: #fff;
    color: #000000;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* FAQ / posts image grid */
.faq-images {
    margin-top: 2rem;
}

.faq-images h2 {
    text-align: center;
    display: block;
    width: 100%;
    border-bottom: none;
}

.faq-images .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.faq-images .grid button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    width: 100%;
}

.faq-images .grid button:focus-visible {
    outline: 3px solid #a10303;
    outline-offset: 2px;
}

.faq-images .grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.faq-images .grid button:hover img,
.faq-images .grid button:focus-visible img {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #a10303;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: #7a0202;
    outline: 2px solid #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(161, 3, 3, 0.85);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: #a10303;
    outline: 2px solid #fff;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #a10303;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-card p {
    margin-bottom: 0;
}

.contact-card a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.contact-card a:hover,
.contact-card a:focus-visible {
    color: #a10303;
    text-decoration: underline;
}

.map {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #a10303;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 50;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#back-to-top.visible {
    display: flex;
}

#back-to-top:hover,
#back-to-top:focus-visible {
    background: #a62425;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.25rem 1rem;
    background: #a10303;
    color: #fff;
    font-size: 0.9rem;
}

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

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-wrap: nowrap;
        padding: 0.75rem;
    }

    header .logo {
        max-width: 56px;
        margin-right: 0.5rem;
    }

    .header-text h1 {
        font-size: 1.15rem;
    }

    .header-text h4 {
        font-size: 0.72rem;
    }

    .call-button span.call-text {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    nav.open {
        display: flex;
        padding: 0.5rem 0;
    }

    nav a {
        margin: 0.2rem 1rem;
    }

    main {
        margin: 0.75rem;
        padding: 1rem;
    }

    .hero-section .background-image {
        min-height: 280px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .map iframe {
        height: 250px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .map iframe {
        height: 200px;
    }
}
