/* =============================================
   DM Milling — Professional Industrial CSS
   Inspired by Hilti: bold, sharp, industrial
   ============================================= */

:root {
    --red: #d2051e;
    --red-dark: #ab0115;
    --red-light: rgba(210,5,30,0.08);
    --dark: #1a1a1a;
    --dark-900: #111111;
    --dark-800: #222222;
    --dark-700: #333333;
    --gray-600: #555555;
    --gray-500: #777777;
    --gray-400: #999999;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f4;
    --white: #ffffff;
    --off-white: #f8f8f7;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ---- OVERLINE PATTERN (Hilti signature) ---- */
.overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

.overline-sm {
    font-size: 0.6875rem;
    margin-bottom: 8px;
}

.overline-light {
    color: rgba(255,255,255,0.7);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-600);
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ---- BUTTONS (Sharp corners — industrial) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    padding: 14px 32px;
    text-transform: uppercase;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 160px 0 120px;
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-dark {
    background: var(--dark-900);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-title-light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-subtitle-light {
    color: rgba(255,255,255,0.5);
}

/* ---- SERVICES (Card grid with images) ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

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

.service-img {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-body {
    padding: 28px 24px;
}

.service-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-body p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---- BANNER ---- */
.banner {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-text {
    max-width: 560px;
}

.banner-text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img {
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 400;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- PROCESS ---- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ---- MATERIALS ---- */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.material-card {
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    transition: var(--transition);
}

.material-card:hover {
    border-color: var(--red);
    background: rgba(210,5,30,0.05);
}

.material-icon {
    color: var(--red);
    margin-bottom: 16px;
}

.material-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.material-card p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(210,5,30,0.9) 0%, rgba(140,3,15,0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: var(--off-white);
}

/* ---- CONTACT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-item svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 0.9375rem;
    color: var(--dark);
}

.contact-item a:hover {
    color: var(--red);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 0;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(210,5,30,0.08);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark-900);
    color: var(--gray-400);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ---- FLOATING CONTACT BUTTONS ---- */
.floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.float-whatsapp {
    background: #25D366;
}

.float-phone {
    background: var(--red);
}

/* Pulse animation on phone button */
.float-phone {
    animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(210,5,30,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(210,5,30,0); }
    100% { box-shadow: 0 0 0 0 rgba(210,5,30,0); }
}

/* ---- INTERACTIVE IMAGE HOVER ---- */
.img-hover-zoom {
    overflow: hidden;
    position: relative;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* Tilt effect applied via JS */
.tilt-active {
    transition: transform 0.1s ease;
}

/* ---- PARALLAX ---- */
.parallax-section {
    overflow: hidden;
}

.parallax-img {
    will-change: transform;
    height: 130%;
    object-fit: cover;
}

/* ---- COUNTER ANIMATION ---- */
.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for children */
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }
.material-card:nth-child(2) { transition-delay: 0.05s; }
.material-card:nth-child(3) { transition-delay: 0.1s; }
.material-card:nth-child(4) { transition-delay: 0.15s; }
.material-card:nth-child(5) { transition-delay: 0.2s; }
.material-card:nth-child(6) { transition-delay: 0.25s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-phone { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active { display: flex; }

    .nav-links a::after { display: none; }

    .hero-content { padding: 140px 0 160px; }

    .stats-grid {
        flex-wrap: wrap;
        gap: 0;
        padding: 20px 0;
    }

    .stat {
        flex: 0 0 50%;
        padding: 12px 0;
    }

    .stat-divider { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: 1fr; }
    .materials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .section { padding: 72px 0; }
    .banner { padding: 80px 0; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; }

    .contact-form-wrap { padding: 24px; }
}
