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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.container {
    width: 480px;
    border: 1px solid black;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    border-bottom: 1px solid black;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 47px;
    position: relative;
}

.logo-space {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.american-flag {
    width: 24px;
    height: auto;
    margin-left: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    display: block;
}

.service-area {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    line-height: 1.1;
    margin-left: 10px;
}

/* Main content */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 65px);
}

/* Sidebar */
.sidebar {
    width: 100%;
    border-bottom: 1px solid black;
    padding: 8px;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.categories-section {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    flex: 1;
}

.category {
    border: 1px solid black;
    padding: 6px 8px;
    background-color: white;
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    min-width: 70px;
    white-space: nowrap;
    text-decoration: none;
    color: black;
}

.category:hover {
    background-color: #f0f0f0;
}

/* Filter Section */
.filter-section {
    width: 100%;
    border-bottom: 1px solid black;
    background-color: #111;
    padding: 8px 0;
    overflow: hidden;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Service grid */
.service-grid {
    flex: 1;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
}

.service-card {
    border: 1px solid black;
    padding: 8px;
    background-color: white;
    width: 100%;
}

.service-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid black;
    background-color: #f8f8f8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.service-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.service-image a:hover img {
    transform: scale(1.05);
}

.service-title {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
    min-height: 20px;
    line-height: 1.2;
}

.service-title a {
    color: black;
    text-decoration: none;
}

.service-title a:hover {
    text-decoration: underline;
}

.service-description {
    font-size: 8px;
    margin-bottom: 4px;
    color: #666;
    line-height: 1.1;
    min-height: 16px;
}

.service-price {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
}

.contact-button {
    width: 100%;
    padding: 4px 6px;
    font-size: 9px;
    border: 2px outset #ddd;
    background-color: #e8e8e8;
    cursor: pointer;
    margin-bottom: 6px;
}

.contact-button:active {
    border: 2px inset #ddd;
}

.contact-button:hover {
    background-color: #d8d8d8;
}

/* About Section */
.about-section {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid black;
    background-color: #f8f8f8;
}

.about-section h2 {
    font-size: 14px;
    margin-bottom: 10px;
    color: black;
    font-weight: bold;
}

.about-section p {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid black;
    background-color: #f8f8f8;
}

.contact-section h2 {
    font-size: 14px;
    margin-bottom: 15px;
    color: black;
    font-weight: bold;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-item h3 {
    font-size: 11px;
    margin-bottom: 5px;
    color: black;
    font-weight: bold;
}

.contact-item p {
    font-size: 10px;
    color: #333;
    line-height: 1.3;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Code blocks */
.code-block {
    background-color: #000;
    color: #fff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
    border: 1px solid #333;
    overflow-x: auto;
}

code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #333;
}

/* Manual page specific styles */
.service-page-content h3 {
    font-size: 11px;
    margin: 15px 0 8px 0;
    color: black;
    font-weight: bold;
}

.service-page-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.service-page-content li {
    margin: 5px 0;
    font-size: 10px;
    line-height: 1.3;
}

/* Service page specific styles */
.service-page-content {
    flex: 1;
    padding: 10px;
}

.breadcrumb {
    font-size: 9px;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: black;
}

.service-header {
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid black;
    padding: 15px;
    background-color: #f8f8f8;
}

.service-header h1 {
    font-size: 16px;
    margin-bottom: 8px;
    color: black;
}

.service-header p {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.service-section {
    border: 1px solid black;
    padding: 10px;
    background-color: white;
}

.certification-trio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.certification-trio img {
    width: 60px;
    height: auto;
    display: block;
}

.service-section h2 {
    font-size: 12px;
    margin-bottom: 8px;
    color: black;
    font-weight: bold;
}

.service-section ul {
    list-style: none;
    padding-left: 0;
}

.service-section li {
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 9px;
    line-height: 1.2;
}

.service-section li:before {
    content: "• ";
    color: black;
    font-weight: bold;
}

.pricing-section {
    border: 1px solid black;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
}

.pricing-section h2 {
    font-size: 12px;
    margin-bottom: 10px;
    color: black;
    text-align: center;
}

.price-items {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.price-item {
    text-align: center;
    padding: 8px;
    background: white;
    border: 1px solid black;
    flex: 1;
}

.price-item h3 {
    font-size: 10px;
    margin-bottom: 4px;
    color: black;
}

.price-item .price {
    font-size: 12px;
    font-weight: bold;
    color: black;
    margin-bottom: 4px;
}

.price-item p {
    font-size: 8px;
    color: #666;
    line-height: 1.1;
}

.contact-cta {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid black;
    margin-bottom: 20px;
}

.contact-cta h2 {
    font-size: 14px;
    margin-bottom: 8px;
    color: black;
}

.contact-cta p {
    font-size: 11px;
    margin-bottom: 8px;
    color: #666;
}

.contact-cta a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}

.contact-cta a:hover {
    text-decoration: underline;
}

/* Support page styles */
.support-content {
    flex: 1;
    padding: 10px;
}

.support-header {
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid black;
    padding: 15px;
    background-color: #f8f8f8;
}

.support-header h1 {
    font-size: 16px;
    color: black;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.support-item {
    border: 1px solid black;
    padding: 10px;
    background-color: white;
    text-align: center;
}

.support-item h2 {
    font-size: 12px;
    margin-bottom: 6px;
    color: black;
}

.support-item p {
    font-size: 9px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.2;
}

.support-item a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 9px;
}

.support-item a:hover {
    text-decoration: underline;
}

.support-intro {
    border: 1px solid black;
    background-color: #f8f8f8;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 1.3;
    color: #333;
}

.support-intro p {
    margin-bottom: 8px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.button-link {
    display: inline-block;
    border: 1px solid black;
    padding: 4px 10px;
    background-color: #f0f0f0;
    font-size: 9px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.button-link:hover {
    background-color: #e0e0e0;
}

.remote-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.remote-support-column {
    border: 1px solid black;
    padding: 10px;
    background-color: white;
}

.remote-support-column h2 {
    font-size: 12px;
    margin-bottom: 6px;
    color: black;
}

.remote-support-column h3 {
    font-size: 11px;
    margin: 10px 0 6px 0;
    color: black;
}

.remote-support-column ol,
.remote-support-column ul {
    margin-left: 18px;
    margin-bottom: 10px;
}

.remote-support-column li {
    font-size: 9px;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #333;
}

.tip-card {
    border: 1px dashed black;
    background-color: white;
    padding: 10px;
    font-size: 9px;
    line-height: 1.3;
    color: #444;
    margin-bottom: 15px;
}

.tip-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    color: black;
}

.business-card-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.business-card-preview {
    border: 1px solid black;
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
}

.business-card-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.asset-note {
    font-size: 9px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    border-top: 1px solid black;
    padding: 8px 10px;
    margin-top: auto;
    background-color: #f9f9f9;
    font-size: 9px;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

.footer p {
    margin-bottom: 3px;
}

.footer a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
    color: black;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .container {
        width: 100%;
        border: none;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .price-items {
        flex-direction: column;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }

    .remote-support-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

/* Tally Popup Customization */
iframe[src*="tally.so"] {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 400px !important;
    height: 85vh !important;
    max-height: 700px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
}

/* Additional Tally selectors */
div[data-tally-widget-id] iframe,
.tally-widget iframe,
iframe[title*="Tally"],
iframe[id*="tally"] {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 400px !important;
    height: 85vh !important;
    max-height: 700px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
}

/* Tally overlay background */
div[data-tally-overlay] {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px) !important;
}

/* Mobile responsiveness for Tally popup */
@media (max-width: 768px) {
    iframe[src*="tally.so"],
    div[data-tally-widget-id] iframe,
    .tally-widget iframe,
    iframe[title*="Tally"],
    iframe[id*="tally"] {
        width: 85vw !important;
        max-width: 350px !important;
        height: 85vh !important;
        max-height: 600px !important;
        border-radius: 8px !important;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    iframe[src*="tally.so"],
    div[data-tally-widget-id] iframe,
    .tally-widget iframe,
    iframe[title*="Tally"],
    iframe[id*="tally"] {
        width: 90vw !important;
        max-width: 320px !important;
        height: 80vh !important;
        max-height: 550px !important;
        border-radius: 6px !important;
    }
}
