/* ========================================
   CSS Variables (Custom Properties)
   ======================================== */
:root {
    /* Colors */
    --color-primary: #005b97;
    --color-primary-dark: #004a7a;
    --color-primary-light: #e6f4fb;
    --color-secondary: #cbd5e1;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-lighter: #666;
    --color-text-muted: #9ca3af;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-700: #374151;
    --color-gray-900: #00194a;
    --color-danger: #ef4444;
    --color-overlay: rgba(0, 0, 0, 0.4);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    height: 60px;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

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

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--color-text);
}

.mobile-nav a:hover {
    background: var(--color-gray-100);
}

/* Page header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/pageheader.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
}

/* Hero section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/top_03.jpg') center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.section-bg-white {
    background: white;
}

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

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

.section h2 {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 3rem;
}

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

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

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

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

.card-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--color-secondary);
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
    line-height: 1.6;
}

.card-footer {
    padding: 1.5rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

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

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

.btn-white:hover {
    background: var(--color-gray-100);
}

.btn-ghost {
    color: var(--color-text-lighter);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    color: var(--color-primary);
}

/* Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

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

.company-table th {
    background: var(--color-gray-50);
    font-weight: 600;
    width: 25%;
}

/* Contact section */
.contact-section {
    text-align: center;
}

.contact-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.contact-section p {
    color: white;
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.business-hours {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--color-gray-900);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    padding-top: 1rem;
    color: var(--color-text-muted);
}

/* Utility classes */
.text-center {
    text-align: center;
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .company-table th,
    .company-table td {
        padding: 0.75rem;
    }
    
    .company-table th {
        width: 30%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* Map container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Access info box */
.access-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.access-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Order classes for responsive design */
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
    .md-order-1 { order: 1; }
    .md-order-2 { order: 2; }
}

/* Product page specific styles */
.category-icon {
    display: inline-flex;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-secondary);
}

.custom-order-card {
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.material-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.material-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.material-item {
    display: flex;
    align-items: center;
}

.material-name {
    width: 6rem;
    font-weight: 500;
    flex-shrink: 0;
}

.material-detail {
    color: var(--color-text-light);
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-item-right .timeline-content {
    grid-column: 1;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item-left .timeline-content {
    grid-column: 2;
    text-align: left;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Featured work cards */
.featured-work-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.featured-work-image {
    position: relative;
    height: 256px;
    overflow: hidden;
}

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

.featured-work-content {
    padding: 1.5rem;
}

.featured-work-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-work-content p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Timeline responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 0;
        transform: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 2rem;
    }
    
    .timeline-item-right .timeline-content,
    .timeline-item-left .timeline-content {
        grid-column: 1;
        text-align: left;
        padding: 0;
    }
    
    .timeline-dot {
        left: 0;
        transform: translateX(-50%);
    }
}

/* FAQ styles */
.faq-list {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-item h3 {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
}

.faq-content {
    padding: 1.5rem;
}

.faq-content p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Contact form styles */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-phone {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-hours {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.required {
    color: var(--color-danger);
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 91, 151, 0.1);
}

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

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    padding: 0.875rem 2rem;
}

.form-disclaimer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

.form-disclaimer p {
    margin-bottom: 0.25rem;
}

/* Form responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-row.grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-phone {
        font-size: 1.5rem;
    }
}

/* ========================================
   Animations and Effects
   ======================================== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.scroll-reveal-left {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.revealed {
    animation: fadeInLeft 0.8s ease forwards;
}

.scroll-reveal-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.revealed {
    animation: fadeInRight 0.8s ease forwards;
}

.scroll-reveal-scale {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-scale.revealed {
    animation: scaleIn 0.8s ease forwards;
}

/* Enhanced hover effects */
.card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.btn {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Link hover effects */
.nav a,
.footer-section a {
    position: relative;
    transition: color var(--transition-base);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

/* Image hover effects */
.card-image {
    transition: transform var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 91, 151, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 91, 151, 0);
    }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* Lazy load images */
img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[data-src].loaded {
    opacity: 1;
}

/* Smooth transition for all interactive elements */
a, button, input, textarea, select {
    transition: all var(--transition-base);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-to-main:focus {
    top: 0;
}

/* Reduced motion for accessibility */
@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;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-nav,
    .contact-section,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
