/* ==========================================================================
   Hyperkostka Theme - Light Mode with Navy Accent
   Modern, clean, premium Apple-style with Royal Blue accents
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Colors - Light Palette */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F5F5F7;
    --color-bg-tertiary: #FAFAFA;
    --color-surface: rgba(255, 255, 255, 0.95);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.15);
    --color-text-primary: #1D1D1F;
    --color-text-secondary: #424245;
    --color-text-muted: #6E6E73;

    /* Accent Colors - Brand Dark Red */
    --color-accent-primary: #b20000;      /* Deep Red */
    --color-accent-secondary: #b20000;   /* Deep Red (secondary) */
    --color-accent-hover: #8B0000;        /* Darker Red for hover */
    --brand-red: #b20000;                 /* Brand Red - globally synchronized */

    /* Buttons */
    --color-button-bg: #1D1D1F;
    --color-button-text: #FFFFFF;
    --color-button-hover: #000000;
    --color-cta-bg: var(--color-accent-secondary);

    /* Spacing */
    --header-height: 80px;
    --container-max-width: 1200px;
    --section-padding: clamp(80px, 10vh, 120px);

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(0, 0, 0, 0.06);
    --backdrop-blur: blur(10px);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding-top: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (max-width: 782px) {
    body.admin-bar { margin-top: 46px !important; }
}

main { display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin: 0 0 1.5rem 0;
    word-wrap: break-word;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin: 0 0 1.5rem 0;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

a:focus {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
picture { max-width: 100%; }
svg { display: block; fill: currentColor; }

/* Form Elements */
button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 2px;
}

blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2.5rem;
    border-left: 4px solid var(--color-accent-secondary);
    background: var(--color-bg-secondary);
    font-style: italic;
}

blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp, pre {
    font-family: "SF Mono", "Fira Code", Consolas, Monaco, monospace;
    font-size: 0.9em;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 0.2em 0.4em;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    white-space: pre;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

table th {
    font-weight: 600;
    color: var(--color-text-primary);
}

table td {
    color: var(--color-text-secondary);
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 4rem 0;
}

/* Form Styling */
form { margin: 0; }

fieldset {
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

legend {
    padding: 0 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    color: var(--color-text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder, select::placeholder {
    color: var(--color-text-muted);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-accent-secondary);
    box-shadow: 0 0 0 3px rgba(155, 27, 27, 0.15);
}

input:disabled, textarea:disabled, select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    input, textarea, select { font-size: clamp(1rem, 2vw, 1.125rem); }
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main { flex: 1 0 auto; }

/* Full Width Content for Elementor */
.full-width-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Header - Floating Premium Bar
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0.75rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-nav);
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.branding-with-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding .custom-logo {
    height: 52px;
    width: auto;
    max-height: 56px;
    display: flex;
    align-items: center;
}

.site-branding .custom-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-secondary);
    font-family: 'Montserrat', sans-serif;
}

.site-branding .site-title a {
    text-decoration: none;
    color: inherit;
}

.site-branding .site-title a:hover {
    color: var(--color-accent-primary);
}

.site-branding .custom-logo {
    height: 42px;
    width: auto;
    max-height: 50px;
}

.site-branding .site-description {
    display: none; /* Hide tagline in header for cleaner look */
}

/* Navigation - Floating bar style */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    border-radius: 15px;
}

.main-navigation .menu-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.main-navigation .menu-toggle:hover .hamburger {
    background: var(--color-accent-secondary);
}

@media (max-width: 768px) {
    .main-navigation .menu-toggle { display: flex; }
}

.main-navigation .menu-toggle.toggled .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.main-navigation .menu-toggle.toggled .hamburger:nth-child(2) { opacity: 0; }
.main-navigation .menu-toggle.toggled .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-navigation #primary-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

@media (max-width: 768px) {
    .main-navigation #primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: var(--glass-border);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

.main-navigation #primary-menu.toggled { display: flex; }

.main-navigation .menu-item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-navigation .menu-item a:hover,
.main-navigation .menu-item a.current-menu-item,
.main-navigation .menu-item a.current-page-item {
    color: var(--color-accent-secondary);
}

.main-navigation .menu-item a:after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-accent-secondary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    border-radius: 1px;
}

.main-navigation .menu-item a:hover:after,
.main-navigation .menu-item a.current-menu-item:after {
    transform: scaleX(1);
}

/* Contact CTA Button in Menu */
.main-navigation .menu-item.cta-button a {
    background: var(--color-accent-secondary);
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.main-navigation .menu-item.cta-button a:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178, 0, 0, 0.2);
}

.main-navigation .menu-item.cta-button a:after {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
}

.footer-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-brand .site-info .site-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-brand .site-info .site-tagline {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-legal-info {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.footer-legal-info strong {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* Footer Contact Section */
.footer-contact {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.footer-contact-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: var(--color-accent-primary);
}

@media (max-width: 768px) {
    .footer-contact-details {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-contact-text {
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none;
    color: inherit;
}

@media (max-width: 768px) {
    .btn { padding: 0.875rem 2rem; font-size: 0.9375rem; }
}

/* Primary Button - Blue */
.btn-primary {
    background: var(--color-accent-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Secondary Button - Navy (for CTA) */
.btn-secondary {
    background: var(--color-accent-secondary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Sections & Animations
   ========================================================================== */

.section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-accent-secondary);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

@media (max-width: 768px) {
    .section-title { margin-bottom: 2.5rem; }
}

/* Underline accent for section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Fade-in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.fade-in-up:nth-child(5) { transition-delay: 0.5s; }
.fade-in-up:nth-child(6) { transition-delay: 0.6s; }
.fade-in-up:nth-child(7) { transition-delay: 0.7s; }
.fade-in-up:nth-child(8) { transition-delay: 0.8s; }
.fade-in-up:nth-child(9) { transition-delay: 0.9s; }
.fade-in-up:nth-child(10) { transition-delay: 1s; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero Section - Full Width with Background Image
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Full-width background image container */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Ensure image covers on mobile without excessive scroll */
@media (max-width: 768px) {
    .hero-bg-image {
        background-attachment: scroll;
    }
}

/* Fallback gradient when no image uploaded */
.hero-bg-fallback {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Content container above background */
.hero-section .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    text-align: center;
}

.hero-section .hero-headline {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    color: #fff;
}

.hero-headline--narrow {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-section .hero-headline { margin-bottom: 1rem; }
}

.hero-section .hero-subheadline {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .hero-section .hero-subheadline { margin-bottom: 2.5rem; }
}

.hero-section .hero-cta-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@media (max-width: 768px) {
    .hero-section .hero-cta-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

.hero-section .hero-cta {
    background: var(--color-accent-primary);
    color: #fff;
    padding: 1.125rem 2.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-cta:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-section .hero-cta:focus {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero-section .hero-cta { padding: 1rem 2rem; width: 100%; }
}

.hero-section .hero-image {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-section .hero-image img {
    width: 100%;
    border-radius: 15px;
    background: var(--color-surface);
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   About Section
   ========================================================================== */

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

.about-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 768px) {
    .about-wrapper { flex-direction: column; }
}

.about-content { flex: 1; }

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-content p:last-child { margin-bottom: 0; }

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    background: var(--color-surface);
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Liquid Glass Card Component
   ========================================================================== */

.liquid-glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.liquid-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.liquid-glass-card { padding: 2.5rem; height: 100%; }

@media (max-width: 768px) {
    .liquid-glass-card { padding: 1.5rem; }
}

.liquid-glass-card .card-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.liquid-glass-card .card-content {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.liquid-glass-card .card-content p:last-child { margin-bottom: 0; }

.liquid-glass-card .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-accent-secondary);
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-section { background: var(--color-bg-secondary); }

.process-section .process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

@media (min-width: 992px) {
    .process-section .process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .process-section .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .process-section .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.process-section .process-step {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.process-section .process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 102, 0.2);
}

.process-step .step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-accent-secondary);
    background: rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.15);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--color-accent-secondary);
    color: #fff;
}

.process-step .step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.process-step .step-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Locations Section
   ========================================================================== */

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

.locations-section .locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.locations-section .location-card {
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.locations-section .location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 102, 0.15);
}

.locations-section .location-card .location-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-accent-secondary);
    margin-top: 2px;
}

.locations-section .location-card .location-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Specs Section - Side-by-Side Layout
   ========================================================================== */

.specs-section { background: var(--color-bg-secondary); }

.specs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .specs-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.specs-content {
    /* Takes left side */
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: 15px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.specs-list li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 102, 0.2);
}

.specs-list li:last-child { margin-bottom: 0; }

.specs-list .spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-secondary);
    min-width: 120px;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

.specs-list .spec-label {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Construction image - Right side */
.specs-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specs-image img {
    width: 100%;
    border-radius: 15px;
    background: var(--color-surface);
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.specs-image img:hover {
    transform: scale(1.02);
}

/* Specs image - ensure proper sizing and visibility */
.specs-img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.specs-image .image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==========================================================================
   Gallery Section - Clickable with Lightbox
   ========================================================================== */

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

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.gallery-section .gallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: var(--glass-border);
    background: var(--color-surface);
}

.gallery-section .gallery-grid a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-section .gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-section .gallery-grid a:hover img {
    transform: scale(1.05);
}

/* Lightbox Overlay */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.gallery-lightbox.active img {
    transform: scale(1);
}

.gallery-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

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

/* No gallery message */
.no-gallery-message {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border-radius: 15px;
    border: var(--glass-border);
}

/* Gallery show-more pagination */
.gallery-item-hidden {
    display: none !important;
}

.gallery-show-more-wrapper {
    margin-top: 2rem;
    text-align: center;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section { background: var(--color-bg-secondary); }

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.contact-card {
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    padding: 4rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .contact-card { padding: 2.5rem 1.5rem; }
}

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

.contact-card .contact-icon {
    width: 64px;
    height: 64px;
    color: var(--color-accent-secondary);
}

.contact-card .contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card .contact-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card .contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.contact-card .contact-link {
    color: var(--color-text-primary);
    text-decoration: none;
}

.contact-card .contact-link:hover {
    color: var(--color-accent-secondary);
}

/* Social Links */
.contact-card .social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-card .social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--color-surface);
    border: var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-card .social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-secondary);
}

.contact-card .social-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.contact-card .social-link:hover svg {
    color: var(--color-accent-secondary);
}

/* Contact Form */
.contact-section .contact-form-wrapper {
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    padding: 4rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .contact-section .contact-form-wrapper { padding: 2.5rem; }
}

.contact-section .contact-form-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-section .contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-section .contact-form-wrapper form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-section .contact-form-wrapper form input[type="text"],
.contact-section .contact-form-wrapper form input[type="email"],
.contact-section .contact-form-wrapper form input[type="tel"],
.contact-section .contact-form-wrapper form textarea {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.contact-section .contact-form-wrapper form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-section .contact-form-wrapper form .submit-btn {
    background: var(--color-accent-secondary);
    color: #fff;
    padding: 1rem 3rem;
    font-weight: 600;
    margin-top: 1rem;
    align-self: flex-start;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .contact-section .contact-form-wrapper form .submit-btn { width: 100%; }
}

.contact-section .contact-form-wrapper form .submit-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-section .contact-form-wrapper .success-message,
.contact-section .contact-form-wrapper .error-message {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.contact-section .contact-form-wrapper .success-message {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34c759;
}

.contact-section .contact-form-wrapper .error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* External Form Button */
.external-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-accent-secondary);
    color: #fff;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.external-form-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.external-form-btn:focus {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .external-form-btn {
        padding: 1rem 2rem;
        font-size: 0.9375rem;
        width: 100%;
    }
}
