/*
Theme Name: AK Bygg & Mark
Theme URI: https://byggomark.com
Author: A.Karlsson Bygg & Mark AB
Description: Specialbyggt tema för A.Karlsson Bygg & Mark AB — professionella bygg- och markarbeten i Eskilstuna.
Version: 1.0.6
Text Domain: akbyggochmark
*/

/* ================================================
   CSS Variables
   ================================================ */
:root {
    --primary: #951a0e;
    --primary-dark: #7d2e27;
    --primary-light: #b84a40;
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-strong: 0 5px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 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(--dark);
    border-color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Read More Link */
.read-more {
    display: inline-block;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    position: relative;
}

.read-more::after {
    content: ' →';
}

.read-more:hover {
    color: var(--primary);
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: var(--dark);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar-text {
    color: var(--text-muted);
}

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

.top-bar-links a {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar-links a:hover {
    color: var(--white);
}

/* ================================================
   HEADER
   ================================================ */
.header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    opacity: 0.8;
}

/* Header Info */
.header-info {
    display: flex;
    gap: 40px;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-icon::before {
    font-size: 16px;
    color: var(--white);
    font-weight: bold;
}

.phone-icon::before { content: '\260E'; }
.location-icon::before { content: '\2302'; }
.clock-icon::before { content: '\29D7'; }

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.info-sublabel {
    color: var(--text-muted);
    font-size: 13px;
}

/* Header Social */
.header-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
}

.social-icon:hover {
    background: var(--primary-dark);
}

.social-icon.facebook::before { content: 'f'; font-weight: bold; color: var(--white); }
.social-icon.instagram::before { content: 'in'; font-size: 12px; font-weight: bold; color: var(--white); }

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    background: var(--dark-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 18px 25px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--medium-gray);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ================================================
   HERO SLIDER
   ================================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 0 20px;
}

.slide-content h1,
.slide-content h2.slide-heading {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary);
    color: var(--white);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ================================================
   CTA BAR
   ================================================ */
.cta-bar {
    background: var(--light-gray);
    padding: 25px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.cta-bar p {
    font-size: 18px;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.service-card.large {
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-card.large .service-image {
    height: 250px;
    overflow: hidden;
}

.service-card.large .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card.large:hover .service-image img {
    transform: scale(1.05);
}

.service-card.large .service-content {
    padding: 25px;
}

.service-card.large h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card.large p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-list-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.service-list-item:hover {
    background: var(--light-gray);
}

.service-list-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.service-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list-content h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-list-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
}

.section-divider {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 20px;
}

.section-description {
    color: var(--text-light);
    font-size: 16px;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects-section {
    background: var(--dark-gray);
}

.projects-header {
    padding: 40px 0;
}

.projects-header .section-header h2,
.projects-header .section-header .section-description {
    color: var(--white);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary);
}

.filter-btn.active {
    border-bottom: 2px solid var(--primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.project-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(158, 58, 49, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    padding: 0 20px;
}

.view-project {
    padding: 10px 25px;
    background: var(--white);
    border: none;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.view-project:hover {
    background: var(--dark);
    color: var(--white);
}

.project-item.hidden {
    display: none;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.why-choose-us h3,
.who-we-are h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.why-divider {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 30px;
}

.why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.why-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.why-content h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--dark);
}

.why-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Who We Are */
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.about-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.about-text {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */
.testimonials-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 28px;
}

.testimonials-divider {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 40px;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 0 40px;
}

.testimonial.active {
    display: block;
}

.quote-icon {
    font-size: 60px;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author strong {
    display: block;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.stars {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* ================================================
   PROMISE BANNER
   ================================================ */
.promise-banner {
    position: relative;
    padding: 80px 0;
}

.promise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
}

.promise-banner .container {
    position: relative;
    z-index: 1;
}

.promise-banner p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    color: var(--white);
    font-weight: 500;
    line-height: 1.8;
}

/* ================================================
   PARTNERS SECTION
   ================================================ */
.partners-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.partner-name {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
}

.partner-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.partner-item:hover .partner-name {
    color: var(--primary);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    padding: 40px;
    box-shadow: var(--shadow);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-card:last-of-type {
    border-bottom: none;
}

.info-icon-large {
    width: 50px;
    height: 50px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-large::before {
    font-size: 18px;
    color: var(--white);
    font-weight: bold;
}

.info-icon-large.location::before { content: '\2302'; }
.info-icon-large.phone::before { content: '\260E'; }
.info-icon-large.email::before { content: '\2709'; }

.info-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
    font-size: 14px;
}

.info-text a {
    color: var(--text-light);
}

.info-text a:hover {
    color: var(--primary-dark);
}

.map-container {
    margin-top: 10px;
}

.map-container iframe {
    width: 100%;
    border: none;
}

/* Contact Form 7 */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form input[type="url"],
.contact-form-wrapper .wpcf7-form select,
.contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--dark);
    background: #fafafa;
    transition: var(--transition);
    box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form-wrapper .wpcf7-form input[type="text"]:focus,
.contact-form-wrapper .wpcf7-form input[type="email"]:focus,
.contact-form-wrapper .wpcf7-form input[type="tel"]:focus,
.contact-form-wrapper .wpcf7-form input[type="url"]:focus,
.contact-form-wrapper .wpcf7-form select:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(163, 82, 67, 0.1);
}

.contact-form-wrapper .wpcf7-form textarea {
    resize: vertical;
    min-height: 2.8em;
    height: 2.8em;
}

.contact-form-wrapper .wpcf7-form input[type="submit"],
.contact-form-wrapper .wpcf7-submit {
    display: block;
    width: 100%;
    padding: 16px 30px;
    margin-top: 8px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* CF7 validation */
.contact-form-wrapper .wpcf7-not-valid {
    border-color: #dc3545;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* CF7 response messages */
.contact-form-wrapper .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    border: none;
}

.contact-form-wrapper .wpcf7-form.sent .wpcf7-response-output {
    background: #d4edda;
    color: #155724;
}

.contact-form-wrapper .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrapper .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-wrapper .wpcf7-form.invalid .wpcf7-response-output {
    background: #f8d7da;
    color: #721c24;
}

/* CF7 spinner */
.contact-form-wrapper .wpcf7-spinner {
    margin: 12px auto 0;
    display: block;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--dark-gray);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--primary);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

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

/* Footer CTA */
.cta-col .btn {
    margin-top: 10px;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--primary);
    padding: 15px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--white);
    font-size: 13px;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-counter {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    max-width: 100%;
    padding: 40px 20px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.lightbox-info h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 10px;
}

.lightbox-info p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.lightbox-info .lightbox-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ================================================
   PROJECTS ARCHIVE PAGE
   ================================================ */
.projects-archive-header {
    background: var(--dark-gray);
    padding: 60px 0 40px;
    text-align: center;
}

.projects-archive-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.projects-archive-header .section-description {
    color: var(--text-muted);
}

.projects-search-bar {
    max-width: 500px;
    margin: 30px auto 0;
    position: relative;
}

.projects-search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    background: var(--white);
}

.projects-search-bar input:focus {
    outline: none;
}

.projects-search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: var(--primary);
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.projects-search-bar button:hover {
    background: var(--primary-dark);
}

/* Category Filter with Dropdowns */
.category-filter {
    background: var(--dark);
    padding: 15px 0;
}

.category-filter-content {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cat-filter-item {
    position: relative;
}

.cat-filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
    color: var(--primary);
}

.cat-filter-btn.has-children::after {
    content: ' ▾';
}

.cat-filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-gray);
    min-width: 200px;
    z-index: 100;
    box-shadow: var(--shadow-strong);
}

.cat-filter-item:hover .cat-filter-dropdown {
    display: block;
}

.cat-filter-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
}

.cat-filter-dropdown a:hover {
    color: var(--white);
    background: var(--medium-gray);
}

/* Projects Archive Grid */
.projects-archive-grid {
    padding: 40px 0 80px;
}

.projects-archive-grid .projects-grid {
    gap: 4px;
}

.projects-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .header-info {
        display: none;
    }

    .header-social {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-list {
        grid-column: span 2;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo img {
        height: 100px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-gray);
        flex-direction: column;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px;
        border-bottom: 1px solid var(--medium-gray);
    }

    .hero-slider {
        height: 500px;
    }

    .slide-content h1,
    .slide-content h2.slide-heading {
        font-size: 2.5rem;
    }

    .cta-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-list {
        grid-column: span 1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 450px;
    }

    .slide-content h1,
    .slide-content h2.slide-heading {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .project-filters {
        gap: 5px;
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 11px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.project-item,
.why-item,
.testimonial,
.partner-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.project-item:nth-child(1) { animation-delay: 0.05s; }
.project-item:nth-child(2) { animation-delay: 0.1s; }
.project-item:nth-child(3) { animation-delay: 0.15s; }
.project-item:nth-child(4) { animation-delay: 0.2s; }
.project-item:nth-child(5) { animation-delay: 0.25s; }
.project-item:nth-child(6) { animation-delay: 0.3s; }
.project-item:nth-child(7) { animation-delay: 0.35s; }
.project-item:nth-child(8) { animation-delay: 0.4s; }

/* ================================================
   Page Headers (shared across archive & page templates)
   ================================================ */
.page-header {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--white);
}

.page-header .section-divider {
    background: var(--accent);
}

.page-header .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   Section CTA (centered button below previews)
   ================================================ */
.section-cta {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* ================================================
   Services Archive
   ================================================ */
.services-archive {
    padding: 50px 0;
}

/* ================================================
   About Page
   ================================================ */
.about-page {
    padding: 50px 0;
}

.about-page-hero {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.about-page-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.about-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
}

.about-page-content p {
    margin-bottom: 1.2em;
}

.about-page-content h2 {
    font-size: 1.6rem;
    margin: 2em 0 0.8em;
    color: var(--text-dark);
}

.about-page-content h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.6em;
    color: var(--text-dark);
}

/* ================================================
   Single Service Page
   ================================================ */
.service-single-header {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.service-single-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.service-single-content {
    padding: 50px 0;
}

.service-single-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.service-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-single-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
}

.service-single-text p {
    margin-bottom: 1.2em;
}

.service-single-cta {
    margin-top: 40px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.service-single-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-single-cta .btn {
    margin: 0 10px;
}

/* ================================================
   Tips Archive & Single
   ================================================ */
.tips-archive {
    padding: 60px 0 80px;
    background: var(--light-gray);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Card as clickable link */
.tips-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tips-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.tips-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card image area */
.tips-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--dark-gray);
}

.tips-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tips-card:hover .tips-card-image img {
    transform: scale(1.05);
}

/* Placeholder when no featured image */
.tips-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
}

.tips-card-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Card content */
.tips-card-content {
    padding: 25px 25px 30px;
}

.tips-card-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.tips-excerpt {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 18px;
}

.tips-card-content .read-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tips-card:hover .read-more {
    color: var(--primary-dark);
}

.tips-card-content .read-more::after {
    content: ' →';
    transition: margin-left 0.2s ease;
}

.tips-card:hover .read-more::after {
    margin-left: 4px;
}

/* Meta (date + category badge) */
.tips-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tips-category {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.tips-archive .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.tips-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tips-archive .page-numbers.current,
.tips-archive .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
}

.no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ---- Single Tips ---- */
.tips-single-header {
    background: var(--dark-gray);
    color: var(--white);
    padding: 70px 0 50px;
    text-align: center;
}

.tips-single-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.tips-single-header .section-divider {
    background: var(--primary);
}

.tips-single-header .tips-meta {
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    margin-bottom: 0;
}

.tips-single-header .tips-category {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.tips-single-content {
    padding: 60px 0 80px;
}

.tips-single-content > .container {
    max-width: 800px;
}

.tips-single-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tips-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tips-single-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.tips-single-text p {
    margin-bottom: 1.4em;
}

.tips-single-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.2em 0 0.7em;
    color: var(--dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
}

.tips-single-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    color: var(--dark);
}

.tips-single-text ul,
.tips-single-text ol {
    margin: 1em 0 1.4em;
    padding-left: 1.5em;
}

.tips-single-text li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.tips-single-text strong {
    color: var(--dark);
}

.tips-single-cta {
    margin-top: 50px;
    padding: 35px 30px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.tips-single-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tips-single-cta .btn {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tips-single-header {
        padding: 50px 0 35px;
    }

    .tips-single-header h1 {
        font-size: 1.5rem;
    }

    .tips-single-content {
        padding: 40px 0 60px;
    }

    .tips-single-text {
        font-size: 1rem;
    }

    .tips-single-cta .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Project Manager (Frontend)
   ========================================== */
.pm-page {
    padding: 80px 0 60px;
    min-height: 70vh;
    background: #f5f5f5;
}

.pm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pm-header h1 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin: 0;
}

.pm-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pm-filters select,
.pm-filters input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}

.pm-filters select { min-width: 200px; }
.pm-filters input { flex: 1; }

.pm-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pm-loading, .pm-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
}

.pm-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pm-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.pm-item-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pm-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pm-item:hover .pm-item-thumb img {
    transform: scale(1.03);
}

.pm-no-thumb {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pm-item-info {
    padding: 16px;
    flex: 1;
}

.pm-item-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-family: var(--heading-font);
    color: var(--dark-gray);
}

.pm-item-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pm-tag {
    background: var(--accent-color, #b5634b);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pm-item-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-item-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.pm-btn-edit, .pm-btn-delete, .pm-btn-toggle {
    border: 1px solid #ddd;
    background: #f8f8f8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.pm-btn-edit:hover { background: #e8f0fe; border-color: #b0c4de; }
.pm-btn-delete { color: #dc3545; }
.pm-btn-delete:hover { background: #fde8e8; border-color: #dc3545; }

.pm-btn-activate { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.pm-btn-activate:hover { background: #c8e6c9; }
.pm-btn-deactivate { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.pm-btn-deactivate:hover { background: #ffe0b2; }

.pm-item-draft { opacity: 0.6; }
.pm-item-draft:hover { opacity: 0.85; }

.pm-item-thumb { position: relative; }

.pm-draft-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Modal overlay */
.pm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.pm-modal-overlay.active { display: flex; }

.pm-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.pm-modal-small { max-width: 440px; }

.pm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.pm-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--heading-font);
}

.pm-modal-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
}

.pm-modal-close:hover { color: #333; }

.pm-modal-body { padding: 24px; }

.pm-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pm-field { margin-bottom: 18px; }

.pm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.pm-field input[type="text"],
.pm-field textarea,
.pm-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.pm-field textarea { resize: vertical; }

.pm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Images in modal */
.pm-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pm-image-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: visible;
    cursor: grab;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pm-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}

.pm-image-drag-handle {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.pm-dragging {
    opacity: 0.3;
    transform: scale(0.95);
}

.pm-drag-over {
    outline: 2px solid var(--accent-color, #b5634b);
    outline-offset: 2px;
    border-radius: 6px;
}

.pm-touch-clone {
    position: fixed;
    z-index: 99999;
    opacity: 0.85;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-radius: 6px;
    overflow: hidden;
    width: 90px;
    height: 90px;
}

.pm-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pm-image-remove:hover { background: rgba(220,50,50,0.9); }

/* Upload zone */
.pm-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s;
}

.pm-upload-zone.dragover {
    border-color: var(--accent-color, #b5634b);
    background: rgba(181,99,75,0.05);
}

.pm-upload-zone p { margin: 0; font-size: 0.9rem; }

.pm-upload-btn {
    border: none;
    background: none;
    color: var(--accent-color, #b5634b);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Upload progress */
.pm-upload-progress {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pm-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.pm-progress-fill {
    height: 100%;
    background: var(--accent-color, #b5634b);
    width: 0;
    transition: width 0.3s;
    border-radius: 3px;
}

/* Delete button */
.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover { background: #c82333; }

/* Responsive */
@media (max-width: 600px) {
    .pm-header { flex-direction: column; gap: 12px; align-items: stretch; }
    .pm-header .btn { text-align: center; padding: 14px 20px; font-size: 1rem; }
    .pm-filters { flex-direction: column; }
    .pm-filters select, .pm-filters input { padding: 12px 14px; font-size: 1rem; }
    .pm-list { grid-template-columns: 1fr; }
    .pm-item-thumb { height: 180px; }
    .pm-item-actions { justify-content: stretch; flex-wrap: wrap; }
    .pm-btn-edit, .pm-btn-delete, .pm-btn-toggle {
        font-size: 0.85rem;
        padding: 12px 10px;
        min-height: 44px;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }
    .pm-field-row { grid-template-columns: 1fr; }
    .pm-modal { max-height: 95vh; }
    .pm-modal-body { padding: 16px; }
    .pm-modal-footer { flex-direction: column; }
    .pm-modal-footer .btn { padding: 14px 20px; font-size: 1rem; text-align: center; }
    .btn-danger { padding: 14px 20px; font-size: 1rem; }
}
