/* Tunnelworks sub-site shared styles.
   Same structure as the AreWeSet pages (Inter, glass header, gradient
   text, feature cards, dark-mode toggle), recoloured to the Tunnelworks
   icon: copper beam, brass cart, tunnel green. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

:root {
    color-scheme: light;
}

.dark {
    color-scheme: dark;
    background-color: #0f172a;
    color: #e2e8f0;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.gradient-text {
    background: linear-gradient(135deg, #c8743f 0%, #a8832a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #c8743f 0%, #8f4a27 100%);
}

.tunnel-bg {
    background: linear-gradient(135deg, #2f6b3f 0%, #183022 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #357d4a 0%, #234530 100%);
    border-radius: 16px;
    color: #f2c4a6;
    font-size: 32px;
}

.app-icon-frame {
    border-radius: 22.5%;
    box-shadow: 0 30px 60px rgba(24, 48, 34, 0.35);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    transition: color 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    color: #c8743f;
}

.dark .dark-mode-toggle {
    color: #94a3b8;
}

.dark .dark-mode-toggle:hover {
    color: #e89d6f;
}

/* Legal / long-form pages */
.prose-page h2 {
    scroll-margin-top: 96px;
}

.prose-page a:not(.btn) {
    color: #b05e30;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dark .prose-page a:not(.btn) {
    color: #e89d6f;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

.dark .data-table th,
.dark .data-table td {
    border-bottom-color: #334155;
}

.data-table th {
    font-weight: 600;
    color: #0f172a;
}

.dark .data-table th {
    color: #f1f5f9;
}

/* Form fields in dark mode (same treatment as AreWeSet) */
.dark input,
.dark textarea,
.dark select {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #94a3b8;
}

/* Keyboard focus that is visible on both themes */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #c8743f;
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 8px;
}
