/* ==========================================================================
   about.css - Premium Design System for IDEÁLNE DOMY
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --primary-color: #1e293b;       /* Dark slate gray */
    --accent-color: #e64a19;        /* Warm red/orange */
    --accent-hover: #d84315;
    --text-main: #334155;           /* Readability gray */
    --text-dark: #0f172a;           /* Strong headings */
    --text-light: #64748b;          /* Secondary gray */
    --bg-light: #f8fafc;            /* Clean light grey-blue */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-primary: 'Outfit', sans-serif;
    --font-quote: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --max-width: 1200px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Layout Grids --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.text-center {
    text-align: center;
}

/* --- Typography & Components --- */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 16px 0 24px 0;
    border-radius: 2px;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bg-white) !important;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* --- Top Bar --- */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-menu {
    display: flex;
    gap: 20px;
}

.top-menu a:hover, .top-menu a.active {
    color: var(--accent-color);
}

.top-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-dark);
}

.top-contact a:hover {
    color: var(--accent-color);
}

/* --- Main Header --- */
.main-header {
    padding: 30px 0;
    background-color: var(--bg-white);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.logo-link:hover .main-logo {
    opacity: 0.85;
    transform: scale(1.02);
}

/* --- Main Navigation --- */
.main-nav {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

.nav-links a:not(.btn-accent):hover {
    color: var(--accent-color);
}

.nav-links .btn-accent {
    padding: 8px 20px;
    border-radius: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
}

.about-hero .subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.about-hero .main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.about-hero .highlight {
    color: var(--text-dark);
    font-weight: 400;
}

/* ==========================================================================
   Company Profile (O Nás Content)
   ========================================================================== */
.company-profile {
    padding: 100px 0;
}

.profile-text .lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.profile-text p {
    margin-bottom: 20px;
    color: var(--text-main);
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.profile-image-container {
    position: relative;
    padding: 20px;
}

.profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.02);
}

.image-overlay-card {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d84315 100%);
    color: var(--bg-white);
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.profile-image-container:hover .image-overlay-card {
    transform: translateY(-5px);
}

.image-overlay-card .card-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.image-overlay-card .card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card h3 {
    margin: 20px 0 12px 0;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-list {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
    color: var(--text-main);
}

.service-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* ==========================================================================
   Philosophy & Values Section
   ========================================================================== */
.values-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.values-grid {
    margin-top: 60px;
    row-gap: 48px;
}

.value-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.value-badge {
    background-color: var(--bg-light);
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 800;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.value-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.value-text p {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimonial-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f172a 100%);
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
}

.testimonial-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-avatar {
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: 800;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(230, 74, 25, 0.4);
}

.quote-text {
    font-family: var(--font-quote);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.quote-author {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* ==========================================================================
   Credentials / Badges Section
   ========================================================================== */
.credentials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.credentials-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    text-transform: uppercase;
}

.badges-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.badge-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.badge-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
    background-color: var(--bg-light);
    position: relative;
}

/* Mocking premium badges using CSS styling */
.badge-icon::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    top: 14px;
    left: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.icon-iepd::before { background-color: #3b82f6; border-color: #3b82f6; }
.icon-sksi::before { background-color: #1e293b; border-color: #1e293b; }
.icon-green::before { background-color: #10b981; border-color: #10b981; }
.icon-angel::before { background-color: #f43f5e; border-color: #f43f5e; }

.badge-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.contact-info-block h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.contact-info-block .divider {
    width: 40px;
    margin: 12px 0 20px 0;
}

.contact-info-block p, .contact-info-block ul {
    font-size: 0.95rem;
    color: var(--text-main);
}

.contact-info-block strong {
    color: var(--text-dark);
}

.branches li {
    margin-bottom: 12px;
    padding-left: 14px;
    position: relative;
}

.branches li::before {
    content: "■";
    color: var(--accent-color);
    font-size: 0.65rem;
    position: absolute;
    left: 0;
    top: 1px;
}

.contact-info-block a {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-info-block a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    padding: 60px 0 40px 0;
    background-color: #0f172a;
    color: var(--text-light);
    border-top: 1px solid #1e293b;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin: 0 auto;
}

.footer-description {
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 24px auto;
}

.footer-links {
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.footer-links a {
    color: #e2e8f0;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .contact-section.grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .badges-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-hero .main-title {
        font-size: 2.25rem;
    }
    .nav-links {
        gap: 20px;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .top-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .profile-image-container {
        order: -1;
    }
    .cta-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .badges-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-links .btn-accent {
        width: 100%;
    }
}
