/* ===================================
   GJ-Zaun - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #6565a6;
    --primary-dark: #5555a0;
    --primary-light: #7575b6;
    --secondary-color: #25D366;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    overflow: hidden;
    transition: all 0.28s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

/* Stats grid: make sure stats cards show 1 column on very small screens,
   2 columns on small screens, and 4 columns on large screens. Also cap
   the max width of each stats card so they don't stretch too wide on
   very large viewports. */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stats-grid > div {
    /* make each stats card fill its grid column so all are equal width */
    width: 100%;
    display: block;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Smaller header when scrolled */
header.scrolled {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.header-top a {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.header-top a:hover {
    color: var(--primary-color);
}

/* Cards-grid overlay icons: ensure glyphs are white and centered with a circular background */
.cards-grid .card .overlay .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.cards-grid .card .overlay .icon-box .icon {
    color: #ffffff; /* white glyphs */
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* On hover, lift the icon slightly and increase background opacity for contrast */
.cards-grid .card.group:hover .overlay .icon-box,
.cards-grid .card.group:focus-within .overlay .icon-box {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.6);
}

/* Cards-grid layout: responsive grid for gallery cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

/* Basic card styling */
.card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.card.group {
    position: relative;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.card.group:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image wrapper keeps aspect ratio and overflow hidden */
.card.group .img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}
.card.group .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease;
}

/* Overlay sits on top of image with gradient and content centered
   Support two DOM patterns:
   1) overlay INSIDE .img-wrapper (used in galerie)
   2) overlay as sibling directly AFTER .img-wrapper (used in index)
*/
.card.group .overlay {
    /* default: keep inline flow for generic cards */
    position: relative;
    margin-top: 0.75rem;
    text-align: left;
}

/* --- Small utility helpers to emulate the used Tailwind-like classes --- */
.bg-gradient-to-r {
    background-image: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}
.rounded-2xl { border-radius: 1rem; }
.p-8 { padding: 2rem; }
.md\:p-12 { padding: 3rem; }
.text-white { color: #fff; }
.mb-16 { margin-bottom: 4rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.gap-8 { gap: 2rem; }
.items-center { align-items: center; }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.backdrop-blur-sm { backdrop-filter: blur(6px); }
.rounded-xl { border-radius: 0.75rem; }
.p-6 { padding: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.leading-relaxed { line-height: 1.7; }
.text-xl { font-size: 1.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.flex { display: flex; }
.items-start { align-items: flex-start; }
.gap-3 { gap: 0.75rem; }
.flex-shrink-0 { flex-shrink: 0; }

/* Ensure SVG icons inherit white color within the gradient block */
.bg-gradient-to-r svg { color: white; stroke: currentColor; }

/* small responsiveness for padding */
@media (max-width: 767px) {
    .md\:p-12 { padding: 2rem; }
}

/* End utilities */
.card.group .overlay h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
}
.card.group .overlay p {
    margin: 0;
    color: var(--text-gray);
}

/* When overlay is the immediate sibling of .img-wrapper, position it absolutely over the image
   so the image and text overlay line up (this matches the .img-wrapper .overlay behavior). */
.card.group > .img-wrapper + .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    z-index: 2;
    pointer-events: none; /* allow clicks on image/card to pass through */
}
.card.group > .img-wrapper + .overlay h3,
.card.group > .img-wrapper + .overlay p {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    position: relative;
    z-index: 3;
}

/* Slight zoom on hover for image */
.card.group:hover .img-wrapper img {
    transform: scale(1.04);
}

/* Overlay placed absolutely over the image: title top-left, meta bottom-left */
.card.group .img-wrapper { position: relative; }
.card.group .img-wrapper .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    pointer-events: none; /* allow clicking through to open lightbox */
}
.card.group .img-wrapper .overlay h3 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.card.group .img-wrapper .overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Ensure overlay text is ignored for pointer events on the image, but the card still clickable */
.card.group .img-wrapper .overlay * { pointer-events: none; }

/* Grid System for Cards */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Card styling for grid system */
.grid .card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.grid .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid .card-content {
    padding: 1.5rem;
}

.grid .card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grid .card-content li {
    margin-bottom: 0.5rem;
}

.grid .card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.grid .card-content p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

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

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

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

.max-w-4xl {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-gray);
}

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

.mb-5 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

strong {
    font-weight: 600;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
}

.nav-container {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a.btn-primary {
    color: white !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border-color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-light:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

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

.text-white {
    color: white;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 70px;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: white;
}

.slide-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.slider-btn {
    display: none;
}

.slider-btn:hover {
    display: none;
}

.slider-btn.prev {
    display: none;
}

.slider-btn.next {
    display: none;
}

.slider-dots {
    display: none;
}

.slider-dots button {
    display: none;
}

.slider-dots button.active {
    display: none;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(101, 101, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
}

.service-icon svg {
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Quality Section */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.quality-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.quality-icon svg {
    color: white;
}

.quality-item h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quality-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(101, 101, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon svg {
    color: var(--primary-color);
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    border-radius: 8px;
}

.why-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

/* Service Area */
.service-area {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.location-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-list li {
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-section h2 {
    color: white;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-buttons .btn {
    flex: 1;
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-slider {
        height: 600px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.25rem;
    }
    
    .service-detail,
    .contact-wrapper,
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .cookie-consent {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .services-grid,
    .quality-grid,
    .values-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-btn,
    .cookie-consent,
    .slider-btn,
    .slider-dots {
        display: none !important;
    }
    
    .hero-slider {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Compact service-detail styles (mobile-first) */
.service-detail-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

.service-detail-compact .service-detail-image-compact {
    order: -1; /* image first on small screens */
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.service-detail-compact .service-detail-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-detail-compact .service-detail-content-compact {
    padding: 1.5rem;
    min-height: 0;
}

.service-detail-compact .service-detail-content-compact h3 {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 2.6rem;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-detail-compact .service-detail-content-compact p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-gray);
    min-height: 4.8rem;
    max-height: 4.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Toggle & details */
.toggle-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-details-compact {
    display: none;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-details-compact.show { 
    display: block; 
}

.service-details-compact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details-compact ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0.4rem;
}

.service-details-compact strong {
    color: var(--text-dark);
    font-weight: 600;
}

.details-toggle-compact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-align: left;
    height: 42px;
    min-height: 42px;
}

.details-toggle-compact:hover {
    color: var(--primary-dark);
}

.details-toggle-compact .chevron-icon-compact {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.details-toggle-compact.open .chevron-icon-compact { 
    transform: rotate(180deg); 
}

@media (min-width: 993px) {
    /* Desktop: two-column layout with 1fr / 2fr */
    .service-detail-compact {
        grid-template-columns: 1fr 2fr;
        align-items: stretch;
        height: 465px;
        transition: height 0.3s ease;
    }
    
    /* When any toggle is open, allow card to grow */
    .service-detail-compact:has(.service-details-compact.show) {
        height: auto;
        min-height: 465px;
    }
    
    .service-detail-compact .service-detail-image-compact { 
        order: 0; 
        height: 100%;
        align-self: stretch;
    }
    .service-detail-compact .service-detail-content-compact { 
        padding: 2.5rem;
    }
    .service-detail-compact .service-detail-content-compact h3 {
        font-size: 1.75rem;
    }
    .service-detail-compact .service-detail-content-compact p {
        font-size: 1.05rem;
    }
}

/* Category Navigation */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 600;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-link i {
    font-size: 1.2rem;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-header .lead {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 0.6rem 1.2rem;
    margin: 0.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

