/*
    Author: Prince Gentillon
    Date: 10/5/2025
    File Name: styles.css
    Brand: QusarTech - Power Beyond Limits.
*/

/* ================= Reset ================= */
body, header, nav, main, footer, img, h1, ul, p {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= Base Body ================= */
html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at top right, #3a0ca3 0%, #0b0d17 60%);
    color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ================= Container ================= */
#container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ================= Header ================= */
header {
    background: rgba(15, 17, 32, 0.95);
    color: #fff;
    text-align: center;
    padding: 2.5em 5%;
    border-bottom: 3px solid #ff6600;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.2);
}

header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 1px;
}

header .tagline {
    font-size: 1.1em;
    color: #ffb347;
    margin-top: 0.5em;
    font-style: italic;
}

/* ================= Navigation ================= */
nav {
    background: rgba(24, 24, 36, 0.9);
    width: 100%;
    backdrop-filter: blur(4px);
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li {
    display: block;
    font-size: 1.1em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

nav li a {
    display: block;
    color: #f5f5f5;
    padding: 0.75em;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

nav li a.active {
    background-color: #ff6600;
}

nav li a:hover {
    background-color: #3a0ca3;
    color: #fff;
}

/* ================= Hero Section ================= */
#hero {
    width: 100%;
    background: linear-gradient(180deg, #10121f 0%, #1a1b30 100%);
    padding: 3em 2em;
    text-align: center;
    margin: 2em auto;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(255, 102, 0, 0.2);
    max-width: 1200px;
}

.hero-banner {
    margin-bottom: 2em;
}

.hero-img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(255,102,0,0.4);
}

/* Hide banner on mobile */
@media screen and (max-width: 549px) {
    .hero-banner {
        display: none;
    }
}

/* Hero Content */
.hero-content h2 {
    font-size: 2.3em;
    color: #ffb347;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 0.5em;
    text-shadow: 0 0 12px rgba(255,102,0,0.4);
}

.hero-content p {
    font-size: 1.1em;
    color: #d0d0d0;
    margin-bottom: 1.5em;
}

.hero-content .btn {
    font-size: 1.1em;
    padding: 0.9em 1.6em;
}

/* ================= Buttons ================= */
.btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 0.75em 1.25em;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}

.btn:hover {
    background-color: #ff8533;
    transform: scale(1.05);
}

/* ================= Main ================= */
main {
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    padding: 3% 5%;
    text-align: center;
    margin: 2em auto;
    border-radius: 10px;
    max-width: 1200px;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.1);
}

main h2 {
    margin-bottom: 1em;
    font-size: 1.9em;
    color: #ffb347;
}

/* Product grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    width: 100%;
    margin-top: 2em;
}

.grid article {
    background: rgba(15, 17, 32, 0.9);
    padding: 1em;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid article:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255,102,0,0.3);
}

.price {
    display: block;
    margin-top: 0.5em;
    color: #ff6600;
    font-weight: bold;
}

/* ================= Credits ================= */
.credit {
    font-size: 0.75em;
    margin-top: 0.5em;
    color: #999;
}

.credit a {
    color: #ffb347;
    text-decoration: none;
}

.credit a:hover {
    text-decoration: underline;
}

/* ================= Contact Section ================= */
#contact {
    text-align: center;
    padding: 2em 1em;
}

#contact h3 {
    color: #ffb347;
    font-size: 1.4em;
    margin-bottom: 1em;
}

#contact p {
    font-size: 1.1em;
    margin: 0.5em 0;
}

.email-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover {
    text-decoration: underline;
}

/* Phone link styling */
.tel-link {
    background-color: #ff6600;
    padding: 1em;
    margin: 1em auto;
    width: 80%;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.tel-link a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    display: block;
}

.tel-link a:hover {
    text-decoration: underline;
}

/* Map styling */
.map {
    border: 4px solid #ff6600;
    border-radius: 8px;
    width: 95%;
    height: 350px;
    margin-top: 1.5em;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

/* ================= Footer ================= */
footer {
    background: rgba(15, 17, 32, 0.95);
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    padding: 1.5em 5%;
    color: #ccc;
    border-top: 2px solid #ff6600;
}

/* ================= Responsive Layouts ================= */

/* Tablet Navigation */
@media screen and (min-width: 550px) {
    nav li {
        display: inline-block;
        border-top: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    nav li:last-child {
        border-right: none;
    }

    nav li a {
        padding: 0.75em 1.5em;
    }

    /* Map grows for tablets */
    .map {
        width: 500px;
        height: 400px;
    }
}

/* Desktop */
@media screen and (min-width: 769px) {
    #hero h2 {
        font-size: 2.6em;
    }

    main h2 {
        font-size: 2.2em;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .map {
        width: 600px;
        height: 450px;
    }
}

/* Large Desktop */
@media screen and (min-width: 1440px) {
    body {
        font-size: 1.05em;
    }

    #hero {
        padding: 4em 5em;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2em;
    }

    .map {
        width: 700px;
        height: 500px;
    }
}

/* ================= Fix Hero Box Width on Mobile ================= */
@media screen and (max-width: 600px) {
  #hero {
    padding: 2em 1em !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .hero-content {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-content h2 {
    font-size: 1.8em;
    line-height: 1.2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .btn {
    padding: 0.7em 1.3em;
  }

  /* Smaller contact map on mobile */
  .map {
      width: 90%;
      height: 300px;
  }

  .tel-link {
      width: 90%;
      padding: 0.8em;
  }
}

/* ================= Visibility Fix for Contact Numbers ================= */

/* Show mobile version only on phones */
.mobile {
  display: block;
}

.tab-desk {
  display: none;
}

/* Tablet and Desktop: hide mobile number, show tab-desk */
@media screen and (min-width: 550px) {
  .mobile {
    display: none;
  }
  .tab-desk {
    display: block;
  }
}
