/* ===================================
   Laduver Construction Ltd - Main Styles
   Mobile-First Responsive Design
   =================================== */

/* CSS Variables (Theme) */
:root {
    --color-primary: #2D3748;
    --color-secondary: #4A5568;
    --color-accent: #3182CE;
    --color-accent-hover: #2C5282;
    --color-background: #FFFFFF;
    --color-surface: #F7FAFC;
    --color-text: #1A202C;
    --color-text-light: #718096;
    --color-border: #E2E8F0;
    --color-success: #38A169;
    --color-warning: #D69E2E;
    --color-error: #E53E3E;

    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    text-align: center;
}

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

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

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
}

.btn-danger {
    background-color: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background-color: #C53030;
}

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

.btn-success:hover {
    background-color: #2F855A;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

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

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu.active {
    right: 0;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: white;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(45, 55, 72, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem;
    text-align: center;
    width: 100%;
}

.hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Sections
   =================================== */

.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--color-surface);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* ===================================
   Services Grid
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

.service-card h3 {
    margin-bottom: 0.5rem;
}

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

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-text-light);
}

/* ===================================
   Gallery
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
}

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

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

.gallery-folder {
    margin-bottom: 2rem;
}

.gallery-folder-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* ===================================
   Quote Form
   =================================== */

.quote-section {
    background-color: var(--color-primary);
    color: white;
}

.quote-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.quote-section > .container > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.quote-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.quote-form .form-label {
    color: var(--color-text);
}

.quote-success {
    text-align: center;
    padding: 2rem;
}

.quote-success h3 {
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

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

.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

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

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

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

.admin-header {
    background-color: var(--color-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
}

.admin-header-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 100;
}

.admin-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.75rem;
    min-width: 60px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.admin-nav-link svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--color-accent);
    background-color: var(--color-surface);
}

.admin-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 5rem;
}

.admin-page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   Admin Dashboard
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ===================================
   Quote Cards
   =================================== */

.quote-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.quote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.quote-card-name {
    font-weight: 600;
    color: var(--color-text);
}

.quote-card-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.status-new {
    background-color: #E3F2FD;
    color: #1565C0;
}

.status-viewed {
    background-color: #FFF3E0;
    color: #E65100;
}

.status-contacted {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-completed {
    background-color: var(--color-surface);
    color: var(--color-text-light);
}

.quote-card-contact {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.quote-card-service {
    font-size: 0.875rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.quote-card-description {
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.quote-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-card-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* ===================================
   Invoice Cards
   =================================== */

.invoice-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.invoice-number {
    font-weight: 600;
    color: var(--color-accent);
    font-family: monospace;
}

.invoice-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.status-draft {
    background-color: var(--color-surface);
    color: var(--color-text-light);
}

.status-sent {
    background-color: #E3F2FD;
    color: #1565C0;
}

.status-paid {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.invoice-client {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.invoice-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.invoice-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===================================
   Invoice Form
   =================================== */

.line-items {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.line-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.line-item:last-child {
    border-bottom: none;
}

.line-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.line-item-description {
    grid-column: 1 / -1;
}

.line-item-remove {
    grid-column: 1 / -1;
    justify-self: end;
}

.invoice-totals {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.invoice-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.invoice-totals-row:last-child {
    border-top: 2px solid var(--color-border);
    font-weight: 700;
    font-size: 1.25rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ===================================
   Gallery Admin
   =================================== */

.folder-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.folder-name {
    font-weight: 600;
}

.folder-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.folder-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

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

.folder-image-delete {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-error);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.folder-image:hover .folder-image-delete {
    opacity: 1;
}

.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--color-surface);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-accent);
    background-color: rgba(49, 130, 206, 0.05);
}

.upload-zone p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ===================================
   Customization
   =================================== */

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.color-picker-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-picker-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.color-picker-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-picker-input input[type="color"] {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
}

.color-picker-input input[type="text"] {
    flex: 1;
    font-family: monospace;
}

.image-preview {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

/* ===================================
   Login Page
   =================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.login-error {
    background-color: #FEE2E2;
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
}

/* ===================================
   Alerts & Messages
   =================================== */

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #E8F5E9;
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background-color: #FEE2E2;
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-warning {
    background-color: #FFF3E0;
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

/* ===================================
   Modal
   =================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===================================
   Empty State
   =================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* ===================================
   Loading Spinner
   =================================== */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Tabs
   =================================== */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    color: var(--color-text);
}

.tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ===================================
   Utility Classes
   =================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--color-text-light); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===================================
   Tablet Styles (640px+)
   =================================== */

@media (min-width: 640px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .line-item {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: center;
    }

    .line-item-row {
        display: contents;
    }

    .line-item-description {
        grid-column: auto;
    }

    .line-item-remove {
        grid-column: auto;
        justify-self: auto;
    }

    .folder-images {
        grid-template-columns: repeat(4, 1fr);
    }

    .quote-form {
        padding: 2rem;
    }

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

/* ===================================
   Desktop Styles (1024px+)
   =================================== */

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
        flex-direction: row;
        gap: 0;
    }

    .nav-overlay {
        display: none !important;
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding: 4rem 2rem;
        text-align: left;
        max-width: 600px;
    }

    .section {
        padding: 5rem 0;
    }

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

    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .about-image,
    .about-text {
        flex: 1;
    }

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

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Admin Desktop Layout */
    .admin-layout {
        flex-direction: row;
    }

    .admin-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .admin-nav {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        width: 200px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
        border-top: none;
        border-right: 1px solid var(--color-border);
        background-color: var(--color-surface);
    }

    .admin-nav-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .admin-nav-link svg {
        margin-bottom: 0;
    }

    .admin-content {
        margin-left: 200px;
        margin-top: 60px;
        padding: 2rem;
        padding-bottom: 2rem;
    }

    .quote-card {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 1rem;
        align-items: center;
    }

    .quote-card-header {
        margin-bottom: 0;
    }

    .quote-card-actions {
        margin-top: 0;
    }

    .folder-images {
        grid-template-columns: repeat(6, 1fr);
    }

    .color-picker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .header,
    .footer,
    .admin-nav,
    .admin-header,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
