/* Macula Networks - Shared Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a5a7c;
}

.logo span {
    font-weight: 400;
    color: #666;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0a5a7c;
}

.nav-cta {
    background: #0a5a7c;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}

.nav-cta:hover {
    background: #084a66;
    color: white !important;
}

/* Buttons */
.btn-primary {
    background: #0a5a7c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #084a66;
}

.btn-secondary {
    background: transparent;
    color: #0a5a7c;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #0a5a7c;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #0a5a7c;
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0a5a7c 0%, #084a66 100%);
    color: white;
    padding: 6rem 5% 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.content-section.alt-bg {
    background: #f5f8fa;
    max-width: 100%;
}

.content-section.alt-bg > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    color: #0a5a7c;
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Service Detail Cards */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.service-detail-card h3 {
    font-size: 1.25rem;
    color: #0a5a7c;
    margin-bottom: 0.75rem;
}

.service-detail-card p {
    color: #666;
    font-size: 0.95rem;
}

.service-detail-card ul {
    color: #666;
    font-size: 0.95rem;
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.service-detail-card li {
    margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #444;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .check {
    color: #0a5a7c;
    font-weight: bold;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.two-column img {
    width: 100%;
    border-radius: 12px;
}

/* CTA Section */
.cta {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
    text-align: center;
}

.cta h2 {
    font-size: 2.25rem;
    color: #0a5a7c;
    margin-bottom: 1rem;
}

.cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #999;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Homepage-specific styles */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5% 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0a5a7c;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    transform: scale(1.1);
}

.trust-bar {
    background: #f5f8fa;
    padding: 2rem 5%;
    text-align: center;
}

.trust-bar p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    opacity: 0.6;
}

.trust-logos span {
    font-weight: 600;
    color: #444;
}

.services {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: #0a5a7c;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    border-color: #0a5a7c;
    box-shadow: 0 4px 20px rgba(10, 90, 124, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #e8f1f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

.why-us {
    background: #0a5a7c;
    color: white;
    padding: 6rem 5%;
}

.why-us-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.why-us p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.why-us-list {
    list-style: none;
}

.why-us-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-us-list li:last-child {
    border-bottom: none;
}

.check {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Reviews Ribbon */
.reviews-ribbon {
    background: #0a5a7c;
    color: white;
    padding: 3rem 0;
    overflow: hidden;
}

.ribbon-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 2rem;
}

.ribbon-header h2 {
    font-size: 2.25rem;
}

.ribbon-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.ribbon-track {
    display: flex;
    white-space: nowrap;
    gap: 2rem;
    animation: ribbonScroll 40s linear infinite;
}

.ribbon-track:hover {
    animation-play-state: paused;
}

/* Fade mode: single review at a time */
.ribbon-track.ribbon-fade-mode {
    animation: none;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.ribbon-track.ribbon-fade-mode.ribbon-fading {
    opacity: 0;
}

@keyframes ribbonScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ribbon-stars {
    color: #f5a623;
    font-size: 1.1rem;
}

.ribbon-text {
    font-style: italic;
    max-width: 400px;
    white-space: normal;
    font-size: 0.95rem;
    opacity: 0.95;
}

.ribbon-author {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0.85;
}

.ribbon-separator {
    opacity: 0.5;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ribbon-footer {
    text-align: center;
    padding: 0 5%;
    margin-top: 2rem;
}

.ribbon-footer .btn-secondary {
    border-color: white;
    color: white;
}

.ribbon-footer .btn-secondary:hover {
    background: white;
    color: #0a5a7c;
}

@media (max-width: 968px) {
    .ribbon-header h2 {
        font-size: 1.75rem;
    }

    .ribbon-text {
        max-width: 300px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .ribbon-header h2 {
        font-size: 1.5rem;
    }

    .ribbon-text {
        max-width: 250px;
        font-size: 0.85rem;
    }

    .ribbon-author {
        font-size: 0.8rem;
    }
}

/* Contact Section */
.contact-section {
    background: #f5f8fa;
    padding: 5rem 5%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    color: #0a5a7c;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: #1a1a1a;
    font-size: 0.9rem;
}

.contact-item a,
.contact-item span {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: #0a5a7c;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0a5a7c;
    box-shadow: 0 0 0 3px rgba(10, 90, 124, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.contact-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
