/* ---------------------------------------------------------
   CODE Digital Studio - Premium Design System (style.css)
   Aesthetic: Technical Editorial Magazine
   Colors: Deep Navy Blue, Rose Gold, and Cream Paper
   --------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
}

/* Color Tokens (Theme Variables - Cream Theme Only) */
body {
    --bg-primary: #FBF9F4;      /* Cream magazine paper */
    --bg-secondary: #F5F1E6;    /* Darker cream */
    --text-primary: #0A192F;    /* Deep navy corporate color */
    --text-secondary: #4A5568;  /* Muted slate text */
    --accent-gold: #C5A880;     /* Refined rose gold */
    --accent-gold-hover: #A38860;
    --accent-gold-soft: rgba(197, 168, 128, 0.15);
    --border-color: rgba(197, 168, 128, 0.35);
    --border-color-solid: #C5A880;
    --shadow-color: rgba(10, 25, 47, 0.05);
    --card-bg: #FFFFFF;
    --console-bg: #07111E;      /* Dashboard stays dark for contrast */
    --console-text: #FBF9F4;
    --receipt-bg: #FFFFFF;
    --receipt-text: #1C1C1C;
    --receipt-shadow: rgba(0, 0, 0, 0.08);
}

/* Typography Classes */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.serif-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-hover);
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0A192F;
    color: #FBF9F4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.preloader-content h1 {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.2rem;
    animation: letterSpacingFade 1.5s forwards;
}

.preloader-content .subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: #C5A880;
    margin-bottom: 1.5rem;
}

.preloader-bar {
    width: 100px;
    height: 1px;
    background-color: #C5A880;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background-color: #FFF;
    animation: barLoading 1.2s infinite ease-in-out;
}

@keyframes letterSpacingFade {
    0% { letter-spacing: 0.05em; opacity: 0; }
    100% { letter-spacing: 0.25em; opacity: 1; }
}

@keyframes barLoading {
    0% { left: -50px; }
    100% { left: 100px; }
}

/* General Layout & Borders */
.section-container {
    padding: 6rem 5% 5rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.border-gold {
    border: 1px solid var(--border-color);
}

.border-gold-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-gold-top {
    border-top: 1px solid var(--border-color);
}

.border-gold-left {
    border-left: 1px solid var(--border-color);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    background: rgba(251, 249, 244, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.floating-nav.visible {
    opacity: 1;
    visibility: visible;
    top: 1rem;
}

.floating-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Magazine Masthead (Cover Header) */
.magazine-masthead {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Solid white logo band to blend the boundaries of logo_03.png */
.masthead-logo-band {
    width: 100%;
    padding: 3rem 0;
    background-color: #FFFFFF; 
    border-bottom: 1px solid var(--border-color);
}

.masthead-logo-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.site-logo {
    max-width: 650px;
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends white logo border out */
}

.masthead-bottom-line {
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.masthead-bottom-line a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.masthead-bottom-line a:hover {
    color: var(--accent-gold);
}

.center-meta {
    font-weight: 600;
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* Editorial Sections Styling */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
}

.editorial-header {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.editorial-subheader {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: var(--accent-gold);
    margin-bottom: 2.5rem;
}

.manifesto-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.dropcap {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 4.2rem;
    line-height: 0.85;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: var(--accent-gold);
    font-weight: 600;
}

.sticky-quote {
    position: sticky;
    top: 7rem;
    padding: 2rem 0 2rem 3rem;
}

.quote-mark {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--accent-gold-soft);
    display: block;
    margin-top: -2rem;
    margin-bottom: -1rem;
}

.serif-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.quote-author {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: block;
}

/* Portfolio Section (The Collections) */
.section-title-wrap {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.main-section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Subtle, clean 3-column portfolio grid */
.portfolio-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
    border-color: var(--accent-gold-hover);
}

/* Delicate Portfolio Image Container with internal margins */
.portfolio-img-container {
    width: 100%;
    aspect-ratio: 16/11;
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem; /* Shrinks images inside border */
}

.portfolio-img-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-img-container img {
    transform: scale(1.04);
}

.portfolio-details {
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

.portfolio-link-btn {
    align-self: flex-start;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.portfolio-link-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold-hover);
    padding-left: 5px;
}

.portfolio-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
}

.portfolio-private-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    color: var(--accent-gold);
    background-color: var(--accent-gold-soft);
    padding: 0.2rem 0.6rem;
    font-weight: 500;
}

/* Services Section (Estructura de Servicios) */
.services-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 1.5rem;
    background-color: var(--card-bg);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold-hover);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.service-number {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold-soft);
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card:hover .service-number {
    color: var(--accent-gold);
}

.service-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.service-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Collage Section (El Equipo en Acción) */
.mosaic-collage-container {
    position: relative;
    width: 100%;
    max-width: 340px; /* Narrow container for vertical pile styling */
    height: 750px; /* Taller height to stack vertically */
    margin: 0 auto;
    padding: 2rem 0;
}

.mosaic-item {
    position: absolute;
    overflow: visible;
    border: none;
    background-color: #FFFFFF;
    padding: 0.5rem 0.5rem 2rem 0.5rem;
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                opacity 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 2px;
}

.mosaic-item.swapping {
    opacity: 0;
    transform: scale(0.9) rotate(0deg) !important;
}

.mosaic-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    opacity: 1.0;
    transition: transform 0.5s ease;
}

.mosaic-caption {
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.02em;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* Coordinates for overlapping vertical pile elements */
.item-1 {
    top: 0px;
    left: 10px;
    width: 200px;
    transform: rotate(-3deg);
    z-index: 6; /* team meeting at the top */
}

.item-2 {
    top: 110px;
    right: 10px;
    width: 150px;
    transform: rotate(4deg);
    z-index: 5;
}

.item-3 {
    top: 220px;
    left: 20px;
    width: 180px;
    transform: rotate(-2deg);
    z-index: 4;
}

.item-4 {
    top: 340px;
    right: 20px;
    width: 140px;
    transform: rotate(5deg);
    z-index: 3;
}

.item-5 {
    top: 450px;
    left: 15px;
    width: 190px;
    transform: rotate(-3deg);
    z-index: 2;
}

.item-6 {
    top: 570px;
    right: 15px;
    width: 160px;
    transform: rotate(2deg);
    z-index: 1;
}

/* Hover effects for collage items */
.mosaic-item:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.06) !important;
    z-index: 20 !important;
    box-shadow: 0 16px 32px rgba(10, 25, 47, 0.15);
}

.mosaic-item:hover img {
    transform: scale(1.02);
}

.mosaic-item:hover .mosaic-caption {
    color: var(--accent-gold-solid);
}

/* Live Simulation Console Section */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
}

.dashboard-main {
    background-color: var(--console-bg);
    color: var(--console-text);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dashboard-header-bar {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(224, 192, 151, 0.2);
    margin-bottom: 1.5rem;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #52C41A;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: inline-block;
    box-shadow: 0 0 8px #52C41A;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #52C41A; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.dashboard-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    flex-grow: 1;
    color: var(--accent-gold);
}

#dashboard-clock {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.dashboard-charts-container {
    margin-bottom: 1.5rem;
}

.chart-box {
    width: 100%;
}

.chart-title {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--console-text);
    opacity: 0.85;
}

#traffic-canvas {
    width: 100% !important;
    height: 250px !important;
    background-color: rgba(10, 25, 47, 0.2);
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px dashed rgba(224, 192, 151, 0.2);
    padding-top: 1.5rem;
}

.metric-card {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem 0.5rem;
    border: 1px solid rgba(224, 192, 151, 0.1);
}

.metric-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-family: monospace;
}

.metric-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--console-text);
    opacity: 0.8;
}

.dashboard-sidebar {
    background-color: var(--console-bg);
    color: var(--console-text);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(224, 192, 151, 0.2);
}

.transactions-stream {
    flex-grow: 1;
    overflow-y: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
    padding-right: 0.25rem;
}

.transaction-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent-gold);
    animation: slideInTx 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInTx {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tx-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.tx-footer {
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.tx-amount {
    color: #52C41A;
}

.total-simulated-sales {
    margin-top: 1.5rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sales-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.sales-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #52C41A;
    font-family: monospace;
}

/* Budget Simulator Section */
.simulator-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.simulator-controls {
    background-color: var(--card-bg);
    padding: 2.5rem;
}

.controls-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 2rem;
}

.control-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: var(--accent-gold-solid);
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--accent-gold);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Checkboxes styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0.15rem;
    left: 0;
    height: 1.1rem;
    width: 1.1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-gold-solid);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 0.35rem;
    top: 0.1rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text.font-small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.checkbox-text.font-bold {
    font-weight: 600;
}

.checkbox-container:hover .checkbox-text.font-small {
    color: var(--accent-gold);
}

/* Complexity slider styling */
.range-slider-wrap {
    padding-top: 1rem;
}

.range-slider {
    width: 100%;
    appearance: none;
    height: 2px;
    background: var(--border-color);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gold-solid);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Simulator Receipt Styling */
.simulator-receipt-pane {
    background-color: var(--card-bg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.receipt-paper {
    background-color: var(--receipt-bg);
    color: var(--receipt-text);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--receipt-shadow);
    margin-bottom: 2rem;
    position: relative;
}

/* Dashed edge visual */
.receipt-paper::before, .receipt-paper::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background-size: 10px 6px;
}

.receipt-paper::before {
    top: -6px;
    background-image: linear-gradient(135deg, transparent 50%, var(--card-bg) 50%), linear-gradient(-135deg, transparent 50%, var(--card-bg) 50%);
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.receipt-header h4 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.receipt-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.receipt-divider {
    border-top: 1px dashed var(--border-color);
    margin: 1rem 0;
}

.receipt-items {
    font-family: monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
}

.receipt-item-name {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* Styled total label for non-pricing technical sheet */
.total-price-label {
    font-size: 1.25rem;
    color: var(--accent-gold-solid);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.receipt-disclaimer {
    font-size: 0.65rem;
    line-height: 1.4;
    opacity: 0.8;
    margin-top: 1.5rem;
    text-align: center;
}

/* Receipt Form Capture */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.form-instructions {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-gold-solid);
}

.form-textarea {
    resize: none;
    height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-gold-solid);
    border-color: var(--accent-gold-solid);
    color: #FFF;
}

.form-success {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--accent-gold);
    background-color: var(--accent-gold-soft);
    animation: fadeIn 0.4s ease;
}

.form-success h4 {
    color: var(--accent-gold-solid);
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Footer Styles */
.site-footer {
    padding: 5rem 5% 2rem 5%;
    max-width: 1600px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

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

.footer-address {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.handcrafted-credit {
    font-style: italic;
    color: var(--accent-gold);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .portfolio-magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    .mosaic-collage-container {
        grid-auto-rows: 200px;
    }
}

@media (max-width: 1024px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .col-right.quote-col {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
    }
    .sticky-quote {
        position: static;
        padding-left: 0;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .simulator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        display: none; /* Hide floating nav on mobile */
    }
    .masthead-logo-band {
        padding: 2rem 0;
    }
    .masthead-logo-container {
        min-height: 120px;
    }
    .masthead-bottom-line {
        flex-direction: column;
        gap: 0.5rem;
    }
    .portfolio-magazine-grid {
        grid-template-columns: 1fr;
    }
    .services-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-columns {
        grid-template-columns: 1fr;
    }
    
    /* Shrink the vertical polaroid stack slightly on narrow mobile viewports */
    .mosaic-collage-container {
        max-width: 290px;
        height: 640px;
    }
    
    .item-1 { width: 170px; top: 0px; left: 10px; }
    .item-2 { width: 130px; top: 90px; right: 10px; }
    .item-3 { width: 150px; top: 180px; left: 15px; }
    .item-4 { width: 120px; top: 280px; right: 15px; }
    .item-5 { width: 160px; top: 370px; left: 12px; }
    .item-6 { width: 140px; top: 480px; right: 12px; }
}

/* =========================================================
   7. Floating WhatsApp Stamp (Editorial Style)
   ========================================================= */
.wpp-stamp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 90px;
    height: 90px;
    z-index: 999;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.wpp-stamp-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color-solid);
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.1);
}

.wpp-stamp-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateStamp 20s linear infinite;
    pointer-events: none;
}

.wpp-stamp-text {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    font-weight: 600;
    fill: var(--text-primary);
    letter-spacing: 0.15em;
}

.wpp-stamp-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.wpp-icon-svg {
    width: 20px;
    height: 20px;
}

/* Hover effects */
.wpp-stamp:hover {
    transform: scale(1.08) rotate(5deg);
}

.wpp-stamp:hover .wpp-stamp-center {
    background-color: var(--accent-gold-solid);
    color: #FFFFFF;
    transform: scale(1.04);
}

@keyframes rotateStamp {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Adjustments for smaller mobile screens */
@media (max-width: 768px) {
    .wpp-stamp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 75px;
        height: 75px;
    }
    .wpp-stamp-center {
        width: 36px;
        height: 36px;
    }
    .wpp-icon-svg {
        width: 16px;
        height: 16px;
    }
    .wpp-stamp-text {
        font-size: 8.5px;
    }
}
