@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400&display=swap');

:root {
    --primary-color: #ff4500; /* Fiery Orange */
    --background-color: #000000;
    --text-color: #ffffff;
    --card-background: #1a1a1a;
    --footer-background: #000000; /* Matching body background */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    font-size: 16px;
}

.page-wrapper {
    position: relative;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Admin Login Button Styles */
.admin-login {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.login-button:hover {
    background-color: rgba(255, 69, 0, 0.2);
    color: white;
    border-color: var(--primary-color);
}

main {
    flex: 1;
}

.hero-section {
    padding: 3rem 1rem;
}

.logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    margin: 0.5rem 0 1.5rem 0;
    color: #aaa;
}

.hero-section p.formerly-name {
    font-size: 0.95rem;
    margin: -1rem 0 1.5rem 0;
    color: #888;
    letter-spacing: 0.03em;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e03e00;
}

#services, #contact {
    padding: 1.5rem 1rem;
    position: relative; /* Added to position the social links */
}

#services h2, #contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
}

.services-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    height: 200px; /* Match the service height */
}

.service-link:hover {
    transform: translateY(-5px);
}

.service {
    background-color: var(--card-background);
    padding: 1.2rem;
    border-radius: 8px;
    width: 320px; /* Increased width to fit titles better */
    height: 200px; /* Increased fixed height for all service cards */
    text-align: left;
    transition: box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Ensure padding is included in the height */
}

.service:hover {
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.service h3 {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.service p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-end;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.learn-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.service:hover .learn-more::after {
    transform: translateX(3px);
}

#contact p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    margin: 0.5rem 0;
}

#contact p strong {
    color: var(--text-color);
}

#contact p.note {
    font-size: 0.95rem;
    font-style: italic;
    color: #aaa;
    margin-top: 0.5rem;
}

/* Removed the previous social links styling as it's no longer needed */

.header-social-link {
    color: #1877f2; /* Facebook blue */
    font-size: 1.8rem;
    margin-left: 15px;
    transition: color 0.3s ease;
    vertical-align: middle;
}

.header-social-link:hover {
    color: #4293ff; /* Lighter Facebook blue on hover */
}

footer {
    background-color: var(--footer-background);
    padding: 2rem 1rem 2rem 1rem; /* Reduced top padding to bring content up */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Reduced gap between elements */
}

.logo-footer {
    width: 100%;
    max-width: 180px;
    height: auto;
}

footer p {
    font-size: 1rem;
    color: #888;
}

.social-links a {
    color: #1877f2; /* Facebook blue */
    font-size: 2rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4293ff; /* Lighter Facebook blue on hover */
}

.footer-links {
    text-align: center;
    margin: 0.5rem 0;
}

.payment-link {
    display: inline-flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.payment-link:hover {
    color: white;
    background-color: rgba(255, 69, 0, 0.2);
}

.payment-link i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* Service Detail Pages */
#service-details {
    padding: 2rem 1rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
}

#service-details h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

#service-details h3 {
    color: var(--primary-color);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

#service-details p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    text-align: left;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#service-details ul, #service-details ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    text-align: left;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    list-style-position: outside;
}

#service-details li {
    margin-bottom: 0.5rem;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Content Message Styles */
.content-message {
    text-align: center;
    padding: 3rem 1rem;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    margin: 2rem 0;
}

.content-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-message p {
    color: #ccc;
    margin: 0.5rem auto;
    max-width: 600px;
}

/* Payment Page Styles */
.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-method {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
}

.payment-method h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.payment-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

/* Invoice Lookup Form Styles */
.invoice-lookup {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: 6px;
}

.invoice-lookup h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.invoice-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-row {
        flex-direction: row;
    }
}

.form-group {
    flex: 1;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}

.qb-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2CA01C; /* QuickBooks green */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin: 1rem 0;
    min-width: 200px;
}

.qb-payment-button:hover {
    background-color: #248916;
    transform: translateY(-2px);
}

.qb-payment-button i {
    margin-right: 8px;
}

.payment-note {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.5rem;
    text-align: center;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.payment-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.payment-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.payment-faq {
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.text-button {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.text-button:hover {
    color: #ff6a33;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.gallery-placeholder {
    background-color: rgba(50, 50, 50, 0.5);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.gallery-image {
    height: 300px;
    overflow: hidden;
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #555;
}

.gallery-caption {
    padding: 1rem;
}

.gallery-caption h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin: 0;
}

.gallery-note {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin: 2rem 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--card-background);
    margin: 10% auto;
    padding: 1rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: left;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--text-color);
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#contact-form label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

#contact-form input[type="text"],
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radio-group input[type="radio"] {
    transform: scale(1.2);
}

.radio-group label {
    font-size: 1rem;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

#contact-form .cta-button {
    align-self: flex-start;
    margin-top: 0.8rem;
}

/* Keep hidden galleries/messages hidden (used by js/gallery.js) */
.gallery[hidden],
.content-message[hidden] {
    display: none;
}

#contact p a {
    color: var(--primary-color);
    text-decoration: none;
}

#contact p a:hover {
    text-decoration: underline;
}
