/* service-styles.css */
@import url('https://fonts.googleapis.com/css2?family=GT+Walsheim+Pro:wght@300;400;500;600;700&display=swap');

/* ===== BASE STYLES ===== */
body {
    font-family: 'GT Walsheim Pro', sans-serif;
    padding: 2rem;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    margin: 0;
}

.service-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== TYPOGRAPHY ===== */
h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

/* ===== SECTIONS ===== */
.section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 15px;
    background: #f8f9fa;
}

.section-left {
    flex-direction: row;
    border-left: 5px solid #8a9aa3;
}

.section-right {
    flex-direction: row;
    border-right: 5px solid #8a9aa3;
}

.section-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(138, 154, 163, 0.2), rgba(218, 235, 246, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(138, 154, 163, 0.2);
}

.section-content {
    flex: 1;
}

.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== HIGHLIGHT SECTIONS ===== */
.highlight,
.philosophy {
    background: linear-gradient(135deg, #8a9aa3, #2c3e50);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: center;
}
.philosophy { font-style: italic; }

/* ===== ΚΟΙΝΑ STYLES ΓΙΑ ΟΛΕΣ ΤΙΣ ΚΑΡΤΕΛΕΣ ===== */
.applications-grid,
.process-grid,
.categories-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.application-card,
.process-card,
.category-item,
.benefit-item {
    background: transparent;
    border: none;
    padding: 0.3rem 0;
    margin: 0;
    line-height: 1.5;
}

/* τίτλοι καρτών (π.χ. “Δομικός Έλεγχος”) */
.application-title,
.process-title,
.category-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

/* υπότιτλοι / περιγραφές μέσα στις κάρτες */
.application-card p,
.process-card p,
.category-item p,
.benefit-item p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== GRID LAYOUTS ===== */
.applications-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.full-width {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
}

/* ===== OFFER SECTION ===== */
.offer-section {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: center;
    border-left: 4px solid #8a9aa3;
}

/* ===== LISTS ===== */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.features-list li {
    padding: 0.25rem 0 0.25rem 1.5rem;
    position: relative;
}
.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8a9aa3;
    font-weight: bold;
}
ul { margin: 0.5rem 0; }
.text-left ul { padding-left: 1.5rem; }
.text-right ul { padding-right: 1.5rem; }
li { margin-bottom: 0.25rem; line-height: 1.6; }
.document-list { background: transparent; padding: 0; }
.document-list li { margin-bottom: 0.4rem; padding: 0.15rem 0; }
.subcategory { margin: 0.25rem 0; padding-left: 1rem; }

/* ===== RESPONSIVE DESIGN ===== */

/* === TABLET (768px and below) === */
@media (max-width: 768px) {
    body { padding: 1rem; }
    .service-container { padding: 1.2rem; margin: 0.5rem; }
    h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
    h3 { font-size: 1rem; margin-bottom: 0.7rem; }

    .section {
        flex-direction: column;
        text-align: center;
        padding: 0.6rem;
        margin: 0.75rem 0;
        gap: 0.8rem;
    }
    .section-right { flex-direction: column; }

    .section-icon {
        width: 50px; height: 50px; font-size: 1.5rem;
        margin: 0 auto; border-radius: 12px;
    }

    .applications-grid,
    .process-grid { gap: 0.4rem; }

    .application-card,
    .process-card,
    .category-item,
    .benefit-item { padding: 0.5rem; }

    .highlight,
    .philosophy,
    .offer-section {
        padding: 0.6rem;
        margin: 0.6rem 0;
        font-size: 0.9rem;
    }

    .section-content { font-size: 0.85rem; line-height: 1.5; }
    .application-title,
    .process-title,
    .category-title { font-size: 0.9rem; }
    .application-card p,
    .process-card p,
    .category-item p { font-size: 0.88rem; }
}

/* === SMALL MOBILE (480px and below) === */
@media (max-width: 480px) {
    body { padding: 0.5rem; }
    .service-container { padding: 0.8rem; margin: 0.25rem; border-radius: 12px; }
    h2 { font-size: 1.1rem; margin-bottom: 0.8rem; }
    h3 { font-size: 0.9rem; margin-bottom: 0.5rem; }

    .section {
        padding: 0.4rem;
        margin: 0.5rem 0;
        gap: 0.6rem;
    }
    .highlight,
    .philosophy,
    .offer-section {
        padding: 0.4rem;
        margin: 0.4rem 0;
        border-radius: 10px;
        font-size: 0.85rem;
    }
    .section-content { font-size: 0.8rem; line-height: 1.4; }
    .application-title,
    .process-title,
    .category-title { font-size: 0.86rem; }
    .application-card p,
    .process-card p,
    .category-item p { font-size: 0.85rem; }
}

/* === EXTRA SMALL MOBILE (360px and below) === */
@media (max-width: 360px) {
    body { padding: 0.25rem; }
    .service-container { padding: 0.6rem; margin: 0.1rem; border-radius: 10px; }
    h2 { font-size: 1rem; margin-bottom: 0.6rem; }
    h3 { font-size: 0.85rem; margin-bottom: 0.4rem; }

    .section {
        padding: 0.3rem;
        margin: 0.4rem 0;
        gap: 0.5rem;
    }
    .highlight,
    .philosophy,
    .offer-section {
        padding: 0.3rem;
        margin: 0.3rem 0;
        font-size: 0.8rem;
    }
    .application-title,
    .process-title,
    .category-title { font-size: 0.84rem; }
    .application-card p,
    .process-card p,
    .category-item p { font-size: 0.82rem; }
}

/* === FINAL OVERFLOW FIX === */
*, *::before, *::after { box-sizing: border-box; }

.section,
.section-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 540px) {
  .applications-grid,
  .process-grid,
  .categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .section { padding: 0.25rem; }
}
