/**
 * Page & global component styles – responsive.
 * Breakpoints: large (1440px+), desktop (1024–1439), tablet (768–1023), mobile (<768), small (<480).
 */

/* ---- Responsive container ---- */
.container,
.section-container {
    width: 100%;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .container,
    .section-container {
        max-width: 720px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container,
    .section-container {
        max-width: 960px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1440px) {
    .container,
    .section-container {
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ---- Page sections base ---- */
.page-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .page-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .page-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ---- Hero section ---- */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-section .section-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    .hero-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 70vh;
    }
}

/* ---- Technology / feature cards ---- */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.cards-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.tech-card {
    padding: 1.5rem;
    text-align: center;
}

.tech-card .card-icon {
    margin-bottom: 1rem;
}

.tech-card .card-icon img {
    width: auto;
    height: 48px;
}

@media (min-width: 768px) {
    .tech-card .card-icon img {
        height: 56px;
    }
}

.tech-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tech-card .card-line {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1rem auto;
    max-width: 60px;
}

.tech-card .card-description {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---- CTA section ---- */
.cta-section {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-section .section-container {
    position: relative;
    z-index: 1;
}

.cta-inner {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.cta-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.cta-line {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 1rem 0 1.5rem;
}

.cta-description {
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #F95035;
    color: #fff;
    border-radius: 1.5rem;
    font-size: 1rem;
}

.cta-button:hover {
    background: #dd4530;
}

@media (min-width: 768px) {
    .cta-section {
        min-height: 50vh;
    }
    .cta-logo img {
        max-height: 80px;
    }
}

/* ---- Text block ---- */
.text-block-inner {
    max-width: 48rem;
    margin: 0 auto;
}

.text-block-title {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ---- Contact form section ---- */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-title,
.form-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.contact-detail-item .detail-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-form {
    width: 100%;
}

@media (min-width: 1024px) {
    .contact-form-wrapper {
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
    .contact-info {
        flex: 0 0 40%;
    }
    .contact-form {
        flex: 1;
    }
}

/* ---- Global header responsive ---- */
.header-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-nav {
    order: 3;
    width: 100%;
}

.header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .header-nav {
        order: 0;
        width: auto;
    }
    .site-name {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* ---- Archive (e.g. News listing) ---- */
.archive-header {
    margin-bottom: 2rem;
}

.archive-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.archive-description {
    margin-bottom: 1rem;
}

.archive-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.archive-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.archive-card-link {
    display: block;
    color: inherit;
    padding: 1rem;
}

.archive-card-image {
    margin: -1rem -1rem 1rem;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.archive-card-date {
    font-size: 0.875rem;
    opacity: 0.8;
}

.archive-card-excerpt {
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ---- Single post (e.g. news article) ---- */
.single-article .entry-header {
    margin-bottom: 1.5rem;
}

.single-article .entry-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.single-article .entry-meta {
    font-size: 0.9375rem;
    opacity: 0.85;
}

.single-article .entry-content {
    max-width: 48rem;
}
