/* Define generic page components */

*
{
  box-sizing: border-box;
}

body
{
  margin:0;
  padding:0;
  overflow-x:hidden;
  font-family: Arial, Helvetica, sans-serif;
}

html
{
  scroll-behavior: smooth;
}

a[href^="tel"]
{
    color:inherit;
    text-decoration:none;
}


/* Define the page header */

div.header
{
  height:65px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  background:#282828;
  color:#ffffff;
}

div.header div img
{
  width: 130px;
}

div.header .contact
{
  display: block;
  text-decoration: none;
  font-size: 22px;
  color: #d5d5d5;
  text-align: right;
  line-height: 27px;
  letter-spacing: 2px;
}


/* Define the hero layout */

.hero
{
  position:relative;
  height:420px;
  overflow:hidden;
}

.hero-video
{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay
{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  color:white;
  text-align:center;
  padding: 24px 36px;
  background:rgba(0, 0, 0, 0.25);
  border-radius: 24px;
}

.hero-bg
{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-image:url('../images/page/ubiquiti-hero-01.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}


/* Define the overview */

div.overview
{
  color: #333333;
  padding-top: 33px; 
  padding-bottom: 33px;
  font-size: 24px; 
  width: 80%;
  margin: auto;
  text-align: center;
  line-height: 40px;
}

div.overviewArea
{
  width: 85%;
  text-align: center;
  margin: auto;
  padding-bottom: 30px;
  line-height: 20px;
  font-size: 17px;
  font-style: italic;
}

/* Define the process steps */

.process
{
  padding:60px 20px;
  text-align:center;
  background:#f7f7f7;
}

.process .steps
{
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  justify-content:center;
  margin-top:30px;
}

.process .step
{
  flex:1 1 250px;
  max-width:320px;
}



/* Define the products */

div.productOuter
{
  width: 100%;
  padding: 25px 20px;
  border-bottom: 1px solid #e5e5e5;
}

div.productOuter h2
{
  margin-bottom: 10px;
}

div.productOuter p
{
  max-width: 700px;
  line-height: 27px;
  margin-bottom:30px;
  margin-right: 20px;
}

div.productOuter div.productInner
{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

div.productOuter div.productInner div.product
{
  width: 150px;
  background: #f5f5f5;
  border-radius: 18px;
  padding: 14px;
  color: #333333;
}

div.productOuter div.productInner div.product img
{
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  margin-bottom: 10px;
}


/* Define the contact form */

.contact
{
    padding:60px 20px;
    text-align:center;
}

.contact form
{
    max-width:500px;
    margin:auto;
}

.contact input,
.contact textarea
{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ccc;
    border-radius:4px;
}

.contact button
{
    padding:12px 24px;
    background:#ffaf1b;
    border:none;
    color:white;
    cursor:pointer;
}


/* Define the footer contents */

.footer
{
    height:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#383838;
    color:#ffffff;
    font-size:14px;
}


/* Define the Mobile modifications */

/* MOBILE */

@media (max-width:768px)
{
    .hero
    {
        height:260px;
    }

    .hero-overlay
    {
        width:85%;
        padding:16px 18px;
        border-radius:16px;
    }

    .hero-overlay h1
    {
        font-size:1.6rem;
    }

    .hero-overlay p
    {
        font-size:1rem;
    }

    div.header .contact
    {
      font-size: 16px !important;
      line-height: 21px !important;
      letter-spacing: 1px !important;
    }

    div.productOuter div.productInner div.product
    {
      width: 80px !important;
    }

}
