/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #1a5490;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.4rem;
    color: #34495e;
}

h4 {
    font-size: 1.2rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

a {
    color: #1a5490;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0f3c6c;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1a5490 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-text h1 {
    color: white;
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
}

.logo-text p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 84, 144, 0.8), rgba(44, 62, 80, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f4f8" width="1200" height="600"/><path fill="%231a5490" opacity="0.1" d="M0,300 Q300,200 600,300 T1200,250 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #ecf0f1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Featured Posts Section */
.featured-posts {
    padding: 5rem 0;
    background-color: white;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-posts h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: #1a5490;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-card.featured {
    grid-column: span 2;
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-card.featured .post-image {
    height: 250px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.post-card:hover .placeholder-image {
    transform: scale(1.05);
}

.dublin-skyline {
    background: linear-gradient(45deg, #1a5490, #2c3e50);
}

.legal-docs {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.technology {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.maintenance {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.finance {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.tenant-relations {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.sustainability {
    background: linear-gradient(45deg, #16a085, #1abc9c);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: #1a5490;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-bottom: 1rem;
}

.post-content h3 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #1a5490;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Recent Posts Section */
.recent-posts {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.recent-posts h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: #1a5490;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.posts-list {
    display: grid;
    gap: 2rem;
}

.post-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 200px;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.post-details h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.post-details p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #1a5490 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

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

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* ─── Contact Section ─── */
.contact-section {
    background: #ffffff;
    padding: 5rem 0 4rem;
    border-top: 4px solid #1a5490;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: #1a5490;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.contact-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1a5490;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 84, 144, 0.12);
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #e8f0fb;
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: #1a5490;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.contact-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.contact-link {
    color: #1a5490;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    word-break: break-word;
}

.contact-link:hover {
    text-decoration: underline;
    color: #0f3460;
}

.contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    color: #64748b;
}

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

.contact-cta-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    background: #1a5490;
    color: #ffffff;
}

.contact-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.contact-cta-btn--outline {
    background: transparent;
    color: #1a5490;
    border: 2px solid #1a5490;
}

.contact-cta-btn--outline:hover {
    background: #1a5490;
    color: #ffffff;
    opacity: 1;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin-right: 1rem;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .post-card.featured {
        grid-column: span 1;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .featured-posts,
    .recent-posts {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-details {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .newsletter,
    .main-footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: #2c3e50;
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        color: #2c3e50;
    }
    
    .post-card,
    .post-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #1a5490;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .post-card,
    .post-item {
        border: 2px solid #000;
    }
    
    .placeholder-image {
        border: 1px solid #000;
    }
}

/* ============================= */
/* App Promotion Section Styles  */
/* ============================= */
.app-promo {
    background: linear-gradient(160deg, #ffffff 0%, #f3f7fa 60%, #e8f1f7 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.app-promo::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(26,84,144,0.15), transparent 70%);
    pointer-events: none;
}

.app-promo-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: center;
}

.app-visual {
    display: flex;
    justify-content: center;
}

.app-icon-frame {
    background: linear-gradient(135deg, #1a5490, #2c3e50);
    padding: 12px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.05);
    position: relative;
    isolation: isolate;
}

.app-icon-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.app-icon {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) inset;
}

.app-info {
    max-width: 760px;
}

.app-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #1a5490, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-tagline {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: #425b6e;
}

.app-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem 1.2rem;
    margin-bottom: 1.75rem;
}

.app-feature-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    color: #4d6476;
}

.app-feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: #1a5490;
    font-weight: 600;
}

.download-area {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.qr-area {
    text-align: center;
    min-width: 200px;
    position: relative;
}

.qr-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #d9e3ea;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.qr-area:hover .qr-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.06);
}

.qr-status {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #1a5490;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    animation: pulseFade 1.2s ease-in-out infinite;
}

@keyframes pulseFade {
    0%,100% { opacity: 0.75; }
    50% { opacity: 0.3; }
}

.qr-caption {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #587085;
    font-weight: 600;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Store platform switch */
.store-switch {
    display: inline-flex;
    background: #e8f1f7;
    border: 1px solid #d9e3ea;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.store-tab {
    appearance: none;
    background: transparent;
    border: none;
    color: #425b6e;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.store-tab.active {
    background: white;
    color: #1a5490;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Google Play badge styled button (SVG + text) */
.play-store-link .play-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.play-store-link .play-badge .play-icon {
    width: 22px;
    height: 22px;
}
.play-store-link .play-badge .play-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.play-store-link .play-badge .small {
    font-size: 10px;
    opacity: 0.85;
}
.play-store-link .play-badge .big {
    font-size: 16px;
    font-weight: 700;
}
.play-store-link:hover .play-badge {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.play-store-link:focus-visible .play-badge {
    outline: 3px solid #1a5490;
    outline-offset: 4px;
}

/* Optional active highlight on current store link */
.store-links a.is-active { filter: saturate(1.2) brightness(1.05); }

.app-store-link {
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.app-store-link:focus-visible {
    outline: 3px solid #1a5490;
    outline-offset: 4px;
}

.app-store-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.app-store-badge {
    width: 160px;
    height: auto;
    display: block;
}

.mobile-cta-note {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7f8e;
    font-weight: 600;
}

.no-js-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7f8e;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-promo-wrapper {
        grid-template-columns: 180px 1fr;
        gap: 2rem;
    }
    .app-title { font-size: 2.1rem; }
}

@media (max-width: 768px) {
    .app-promo {
        padding: 4rem 0 3.5rem;
    }
    .app-promo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-info { margin: 0 auto; }
    .download-area { justify-content: center; }
    .store-links { align-items: center; }
    .store-switch { margin-bottom: 0.5rem; }
    .app-feature-list { grid-template-columns: 1fr 1fr; }
    .qr-area { display: none; }
    .mobile-cta-note { font-size: 0.7rem; }
}

@media (max-width: 520px) {
    .app-feature-list { grid-template-columns: 1fr; }
    .app-title { font-size: 1.9rem; }
    .app-tagline { font-size: 1rem; }
}

/* High contrast adjustments inside promo */
@media (prefers-contrast: high) {
    .qr-wrapper { border: 2px solid #000; }
    .app-store-link { box-shadow: none; border: 2px solid #000; }
    .play-store-link .play-badge { box-shadow: none; border: 2px solid #000; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .qr-area:hover .qr-wrapper,
    .app-store-link:hover { transform: none; }
    .qr-status { animation: none; }
}