/* ============================================
   STAVEBNÁ FIRMA - Complete Stylesheet
   Matches mockup design exactly
   ============================================ */

/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d31e1e;
    --primary-dark: #b30000;
    --dark: #1b1b1b;
    --gray-900: #212121;
    --gray-700: #616161;
    --gray-300: #e0e0e0;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; }
.text-white { color: #ffffff; }
.text-red { color: var(--primary); }
.mt-5 { margin-top: 40px; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border: 2px solid transparent;
    border-radius: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 30, 30, 0.4);
}

.btn-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1300px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text i {
    font-size: 2rem;
    color: var(--primary);
}

.logo-text strong {
    color: var(--primary);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-900);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

/* Header CTA button */
.btn-header-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-left: 15px;
    border: 2px solid var(--primary) !important;
}

.btn-header-cta:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-new {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    margin-top: 80px;
}

/* Right side - full bleed background image */
.hero-image-side {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

/* Left dark panel with diagonal edge */
.hero-dark-side {
    position: absolute;
    left: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background: #1d1e22;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    z-index: 1;
}

/* Dark subtle shape at bottom-left */
.hero-dark-side::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 420px;
    height: 220px;
    background: #14151a;
    clip-path: polygon(0 30%, 75% 100%, 0 100%);
    z-index: 2;
}

/* Red accent triangle at bottom-left */
.hero-dark-side::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 320px;
    height: 200px;
    background: var(--primary);
    clip-path: polygon(0 55%, 80% 100%, 0 100%);
    z-index: 3;
}

.hero-container {
    position: relative;
    z-index: 5;
    max-width: 1300px;
    width: 100%;
}

.hero-content {
    max-width: 50%;
    padding-left: 20px;
}

.hero-title-mockup {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-new .hero-subtitle {
    color: #ccc;
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 30px;
}

.btn-hero-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   SERVICES BAR (hidden per mockup)
   ============================================ */
.services-bar { display: none !important; }

/* ============================================
   SECTIONS (generic)
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-900);
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-300);
}

.section-header h2::after {
    display: none;
}

.section-header p {
    color: var(--gray-700);
    font-size: 1.05rem;
    margin-top: 10px;
}

.section-footer {
    text-align: center;
    margin-top: 45px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: #fdfdfd;
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.services-section .section-header,
.services-header {
    text-align: left;
}

.services-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    border-bottom: 3px solid var(--gray-300);
    padding-bottom: 12px;
    display: inline-block;
    margin-bottom: 50px;
}

.services-header h2::after {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Service Card - icon centered layout matching mockup */
.service-card {
    background: var(--white);
    padding: 45px 30px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-radius: 0;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Large icon - no background box, just the icon */
.service-card-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 25px 0;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: auto;
}

.service-card-icon i {
    font-size: 5rem;
    color: var(--primary);
}

/* Middle card icon dark per mockup */
.service-card:nth-child(2) .service-card-icon i {
    color: var(--dark);
}

.service-card h3,
.service-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p,
.service-card-body p {
    color: #777;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Red bottom accent line */
.service-card-bottom-line {
    width: 50%;
    height: 5px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: #f0f0f0;
    padding: 80px 0 110px;
    position: relative;
    overflow: visible;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-header-text h2,
.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text {
    margin-bottom: 30px;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.btn-about {
    padding: 13px 30px;
    font-size: 1rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.about-image-accent { display: none; }

/* Red downward triangle at bottom */
.about-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-top: 65px solid var(--primary);
    z-index: 10;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    background: var(--white);
    padding: 80px 0;
}

.proj-header {
    text-align: left;
}

.proj-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    display: inline-block;
    border-bottom: 3px solid var(--gray-300);
    padding-bottom: 12px;
    margin-bottom: 5px;
}

.proj-header h2::after {
    display: none;
}

.proj-header p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #666;
    margin-top: 8px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-body {
    padding: 18px;
    text-align: center;
    background: #f8f9fa;
}

.project-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.project-category {
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.align-center { text-align: center; }

.btn-zobrazit-viac {
    padding: 13px 35px;
    font-size: 1.05rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 70px 0;
    background: var(--primary);
    overflow: hidden;
}

/* Dark triangle accents at corners */
.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #111;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #111;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.cta-bg { display: none; }

.container-cta {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-content p,
.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin-bottom: 30px;
}

.btn-cta {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 13px 40px;
    font-size: 1.1rem;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============================================
   FOOTER INFO BAR
   ============================================ */
.footer-info-bar {
    background: #111;
    color: #bbb;
    padding: 22px 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.footer-info-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-item i {
    color: var(--white);
    margin-right: 6px;
    font-size: 0.85rem;
}

.info-item a {
    color: #bbb;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--white);
}

.info-social {
    display: flex;
    gap: 10px;
}

.info-social a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.info-social a:hover {
    background: var(--primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--white);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--gray-100);
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* ============================================
   FULL FOOTER (hidden per mockup layout)
   ============================================ */
.site-footer { display: none !important; }

/* Contact Map */
.contact-map {
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(211, 30, 30, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
