/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Design tokens */
:root {
    /* Colors */
    --bg: #f8f9fa;
    --card: #ffffff;
    --muted: #666666;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #059669;
    --border: #e5e7eb;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg-hover: #f3f4f6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --accent: #2c3e50;
    --success: #28a745;
    --danger: #e74c3c;
    --warning: #ffc107;
    --info: #17a2b8;
    --glass: rgba(255,255,255,0.6);
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Utility container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ensure content sits below fixed header */
.page-content { padding-top: 80px; }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Buttons */
.btn { display:inline-block; padding:0.5rem 0.8rem; border-radius:6px; border:0; cursor:pointer; font-weight:600; }
.btn-primary { background:var(--brand); color:#fff; }
.btn-primary:hover { background:var(--brand-dark); }
.btn-ghost { background:transparent; border:1px solid rgba(0,0,0,0.06); }

/* Status tags with small icons */
.status-tag { display:inline-flex; align-items:center; gap:0.4rem; padding:0.25rem 0.6rem; border-radius:999px; font-size:0.85rem; font-weight:600; }
.status-tag::before { display:inline-block; width:1em; height:1em; line-height:1; text-align:center; }
.status-pending { background:var(--warning); color:#7a531a; }
.status-pending::before { content: '⏳'; }
.status-paid { background:#d4edda; color:#155724; }
.status-paid::before { content: '💳'; }
.status-assigned { background:#d1ecf1; color:#0c5460; }
.status-assigned::before { content: '👷'; }
.status-inspection_done { background:#c3e6cb; color:#155724; }
.status-inspection_done::before { content: '✅'; }
.status-report_done { background:#bee5ff; color:#004085; }
.status-report_done::before { content: '📝'; }
.status-approved { background: #c3e6cb; color: #155724; }
.status-approved::before { content: '📨'; }
.status-sent { background:#d1ecf1; color:#0c5460; }
.status-sent::before { content: '✉️'; }
.status-in-progress { background:#b8daff; color:#004085; }
.status-completed { background:#c3e6cb; color:#155724; }

/* Table improvements */
.orders-table { width:100%; border-collapse:collapse; background:var(--card); border-radius:8px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,0.06); }
.orders-table th, .orders-table td { padding:0.8rem 0.9rem; text-align:left; border-bottom:1px solid rgba(0,0,0,0.05); }
.orders-table thead th { background:var(--accent); color:#fff; font-weight:700; }

/* Cards and responsive utilities */
.card { background:var(--card); padding:1rem; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.04); }
.order-card { margin-bottom:1rem; }

/* Photo grid helper */
.photo-grid { display:flex; flex-wrap:wrap; gap:0.75rem; }
.photo-grid img { max-width:120px; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.06); }

/* Responsive header tweaks */
@media (max-width: 900px) {
    nav { padding:0.75rem 3%; }
    .logo { font-size:1.2rem; }
    nav ul { gap:0.5rem; }
}

@media (max-width: 600px) {
    nav { flex-direction:column; align-items:flex-start; }
    nav ul { width:100%; display:flex; flex-direction:column; }
    nav ul li { margin-left:0; width:100%; }
    nav ul li a { padding:0.5rem 0; width:100%; display:block; }
    main { padding:1rem; }
    .orders-table th, .orders-table td { padding:0.6rem; }
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--bg);
    border-radius: 10px;
    margin-bottom: 3rem;
}

/* Enhanced hero */
.hero {
    background: linear-gradient(135deg, rgba(52,152,219,0.06), rgba(44,62,80,0.03));
    padding: 4.5rem 1rem;
    border-radius: 12px;
}

.hero-inner { display:flex; align-items:center; gap:2rem; justify-content:center; flex-wrap:wrap; }
.hero-copy { max-width:640px; text-align:left; }
.hero h1 { font-size:2.25rem; margin-bottom:0.5rem; color:var(--accent); }
.hero p { color:var(--muted); margin-bottom:1rem; }
.hero-visual { width:320px; max-width:40%; min-width:220px; }
.hero-visual img { width:100%; border-radius:10px; box-shadow:0 8px 30px rgba(44,62,80,0.06); }

.cta-button, .primary-cta { display:inline-block; padding:0.9rem 1.25rem; background:var(--brand); color:#fff; text-decoration:none; border-radius:8px; transition:background 0.15s ease; font-weight:700; }
.cta-button:hover, .primary-cta:hover { background:var(--brand-dark); }

/* Services Overview */
.services-overview {
    padding: 3rem 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Pricing cards layout */
.pricing-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:1rem; margin-top:1rem; }
.pricing-card { display:flex; justify-content:space-between; align-items:center; padding:1rem; border-radius:8px; background:var(--card); box-shadow:0 2px 6px rgba(0,0,0,0.04); border-left:4px solid var(--brand); }
.pricing-price { font-size:1.2rem; font-weight:800; color:var(--brand); }
.pricing-meta { color:var(--muted); }

/* Feature list items used in hero */
.feature-list { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:0.5rem; }
.feature-item { display:inline-flex; align-items:center; gap:0.6rem; padding:0.4rem 0.6rem; border-radius:8px; background:var(--card); box-shadow:0 2px 6px rgba(0,0,0,0.04); font-weight:600; }
.feature-item .icon { font-size:1.08rem; }

/* Why Choose Us Section */
.why-choose-us {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Remarks textarea styling */
.remark { width:100%; min-height:72px; padding:0.6rem; border-radius:6px; border:1px solid rgba(0,0,0,0.08); resize:vertical; font-size:0.95rem; }

/* Inline flash messages */
.flash-wrap { position: fixed; top: 80px; right: 20px; z-index: 2000; display:flex; flex-direction:column; gap:0.5rem; }
.flash { padding:0.6rem 0.9rem; border-radius:6px; color:#fff; box-shadow:0 4px 12px rgba(0,0,0,0.12); min-width:220px; }
.flash.info { background:var(--info); }
.flash.success { background:var(--success); }
.flash.warning { background:var(--warning); color:#352100; }
.flash.danger { background:var(--danger); }
.flash .close { float:right; margin-left:0.5rem; cursor:pointer; font-weight:700; }