"use client";
import Nav from "./Nav";
import Link from "next/link";
import Offcanvas from "./Offcanvas";
import { openMobilemenu } from "@/utlis/toggleMobilemenu";
import Image from "next/image";

export default function Header1() {
  return (
    <>
      <header className="header-section">
        <div className="container-fluid">
          <div className="main-header-wrapper">
            <div className="logo-image">
              <Link href={`/`}>
                <Image
                  src="/assets/img/logo/logo.png"
                  width={300}
                  height={60}
                  alt="img"
                  className="responsive-logo"
                />
              </Link>
            </div>
            <div className="main-header-items">
              <div id="header-sticky" className="header-1">
                <div className="mega-menu-wrapper">
                  <div className="header-main">
                    <div className="logo">
                      <Link href={`/`} className="header-logo">
                        <Image
                          src="/assets/img/logo/logo.png"
                          alt="logo-img"
                          width={300}
                          height={60}
                          className="responsive-logo"
                        />
                      </Link>
                    </div>
                    <div className="header-left">
                      <div className="mean__menu-wrapper">
                        <div className="main-menu">
                          <nav id="mobile-menu">
                            <ul>
                              <Nav />
                            </ul>
                          </nav>
                        </div>
                      </div>
                    </div>
              <div className="header-right d-flex justify-content-end align-items-center">
  <div className="header-button">
<Link
  href="/contact"
  className="theme-btn d-inline-flex align-items-center justify-content-center gap-2"
>
  <span className="text-nowrap">GET A QUOTE</span>
  <i className="fa-regular fa-arrow-right"></i>
</Link>
  </div>
  <div className="header__hamburger my-auto ms-3">
    <div onClick={() => openMobilemenu()} className="sidebar__toggle">
      <i className="fas fa-bars"></i>
    </div>
  </div>
</div>

                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </header>
      <Offcanvas>
        <Nav />
      </Offcanvas>
    </>
  );
}