/* ============================================
   STAVEBNÁ FIRMA - Subpages Stylesheet
   All styles for Gallery, About, Services, 
   Projects, Blog, Contact, FAQ subpages
   ============================================ */

/* ── PAGE HERO ── */
.page-hero {
    position: relative;
    background: var(--secondary);
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-hero-sm {
    min-height: 250px;
    padding: 100px 0 50px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(198,40,40,0.7) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
    background: var(--gray-100);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-300);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--gray-700);
    font-weight: 600;
}

/* ── CONTAINER NARROW ── */
.container-narrow {
    max-width: 900px;
}

/* ── SECTION SHARED ── */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--gray-700);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* ── FILTER BAR ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-700);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ── GALLERY ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    margin: 0 auto;
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-size: 1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    z-index: 10001;
    transition: color var(--transition);
}

.lightbox-nav:hover {
    color: var(--primary);
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ── TEAM GRID ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gray-100);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-300);
    background: var(--gray-100);
}

.team-card-body {
    padding: 25px 20px;
}

.team-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-card-body .team-position {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card-body .team-bio {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.5;
}

.team-card-contacts {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.team-card-contacts a {
    color: var(--gray-500);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.team-card-contacts a:hover {
    color: var(--primary);
}

/* ── STATS SECTION ── */
.stats-section {
    background: var(--secondary);
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── REFERENCES / TESTIMONIALS ── */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.reference-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.reference-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
    position: absolute;
    top: 15px;
    left: 20px;
}

.reference-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 20px;
    font-style: italic;
}

.reference-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--gray-300);
    padding-top: 15px;
}

.reference-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reference-author-info strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
}

.reference-author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.reference-stars {
    color: #f59e0b;
    margin-bottom: 10px;
}

/* ── SERVICE LIST / DETAIL ── */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-row-img {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.service-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-row-img .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

.service-row-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.service-row-body h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.service-row-body p {
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ── DETAIL LAYOUT (Service/Project) ── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.detail-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 30px 0 15px;
}

.detail-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.detail-body p {
    margin-bottom: 15px;
}

/* ── SIDEBAR ── */
.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.sidebar-info-list {
    list-style: none;
}

.sidebar-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.sidebar-info-list li:last-child {
    border-bottom: none;
}

.sidebar-info-list li i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.sidebar-info-list li strong {
    color: var(--secondary);
    min-width: 80px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: color var(--transition);
}

.sidebar-list li:last-child a {
    border-bottom: none;
}

.sidebar-list li a:hover {
    color: var(--primary);
}

.sidebar-list li a span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.sidebar-cta {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.sidebar-cta h3 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.1);
}

.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Sidebar posts (blog) */
.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: opacity var(--transition);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post:hover {
    opacity: 0.7;
}

.sidebar-post img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-post strong {
    display: block;
    font-size: 0.88rem;
    color: var(--secondary);
    line-height: 1.3;
}

.sidebar-post small {
    color: var(--gray-500);
    font-size: 0.78rem;
}

/* ── PROJECT DETAIL GALLERY ── */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.project-gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity var(--transition);
}

.project-gallery-grid img:hover {
    opacity: 0.8;
}

/* ── PROJECT / BLOG NAVIGATION ── */
.project-nav,
.blog-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-100);
}

.project-nav-link,
.blog-nav-link {
    display: block;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.project-nav-link:hover,
.blog-nav-link:hover {
    background: var(--primary);
    color: var(--white);
}

.project-nav-link span,
.blog-nav-link span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.project-nav-link strong,
.blog-nav-link strong {
    display: block;
    font-size: 1rem;
    color: var(--secondary);
}

.project-nav-link:hover span,
.project-nav-link:hover strong,
.blog-nav-link:hover span,
.blog-nav-link:hover strong {
    color: var(--white);
}

.project-nav-next,
.blog-nav-next {
    text-align: right;
}

/* ── BLOG ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

.blog-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.blog-card-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap var(--transition);
}

.read-more:hover {
    gap: 10px;
}

/* ── BLOG FEATURED ── */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
}

.blog-featured-img {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.blog-featured-body h2 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-featured-body h2 a:hover {
    color: var(--primary);
}

.blog-featured-body p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ── BLOG DETAIL ── */
.blog-detail-cat {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-detail-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-detail-meta i {
    margin-right: 5px;
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.blog-detail-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-body p {
    margin-bottom: 18px;
}

.blog-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 35px 0 15px;
}

.blog-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 25px 0 12px;
}

.blog-body ul, .blog-body ol {
    margin: 15px 0 15px 25px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.blog-body img {
    border-radius: var(--radius);
    margin: 20px 0;
}

/* Blog Tags & Share */
.blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.blog-tags i {
    color: var(--gray-500);
}

.blog-tag {
    padding: 4px 14px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.blog-share span {
    font-weight: 600;
    color: var(--gray-700);
}

.blog-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition);
}

.blog-share a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-100);
}

.related-posts h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
}

/* ── CONTACT PAGE ── */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 15px;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-grid h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
}

.contact-map-wrapper h2 {
    margin-bottom: 20px;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
}

/* ── FAQ ── */
.faq-section {
    background: var(--gray-100);
}

.faq-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
    color: var(--gray-700);
}

.faq-intro a {
    color: var(--primary);
    font-weight: 600;
}

.faq-category {
    margin-bottom: 35px;
}

.faq-category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.faq-category-title i {
    color: var(--primary);
    margin-right: 8px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
    font-family: var(--font-body);
    gap: 15px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 25px 20px;
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-cta {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.faq-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.faq-cta p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

.faq-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
}

/* ── ALERT ── */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── ABOUT PAGE SPECIFIC ── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.about-value-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition);
}

.about-value-card:hover {
    transform: translateY(-3px);
}

.about-value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.about-value-card p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── CTA SECTION ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ── COOKIE CONSENT ── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    flex: 1;
}

.cookie-consent a {
    color: var(--primary-light);
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ── RESPONSIVE SUBPAGES ── */
@media (max-width: 1024px) {
    .detail-grid,
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar,
    .blog-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-img {
        min-height: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 90px 0 40px;
        min-height: 220px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .service-row {
        grid-template-columns: 1fr;
    }
    
    .service-row-img {
        min-height: 200px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .project-nav,
    .blog-nav {
        grid-template-columns: 1fr;
    }
    
    .blog-detail-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .faq-answer-inner {
        padding: 0 15px 15px;
    }
}

/* ── ADMIN GALLERY GRID ── */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-gallery-card.inactive {
    opacity: 0.5;
}

.admin-gallery-img {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.admin-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-gallery-info {
    padding: 12px;
}

.admin-gallery-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-gallery-actions {
    display: flex;
    gap: 6px;
}

/* Admin Stats Preview */
.admin-stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.admin-stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.admin-stat-card .stat-label {
    color: var(--gray-700);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.admin-stat-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

/* Admin table thumb */
.table-thumb {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.table-thumb-placeholder {
    width: 50px;
    height: 40px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-300);
}

/* Admin badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-muted {
    background: var(--gray-100);
    color: var(--gray-500);
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Admin description */
.admin-desc {
    color: var(--gray-700);
    margin-bottom: 25px;
}

/* Code editor textarea */
.code-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: var(--radius);
}

/* Form fieldset */
.form-fieldset {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.form-fieldset legend {
    font-weight: 700;
    color: var(--secondary);
    padding: 0 10px;
    font-size: 0.95rem;
}
