@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* ======================
   RESET & VARIABLES
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-blue: #5c6c7d;
    --text-white: #ffffff;
}

.what-we-offer,
.what-we-stand-for,
.get-in-touch{
    scroll-margin-top: 50px;
}

/* ======================
   BASE STYLES
====================== */
body {
    font-family: 'Anton', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======================
   HEADER
====================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.75rem 2rem;
    background-color: var(--accent-blue);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header .title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

.header .links {
    display: flex;
    gap: 2rem;
    font-size: 1.4rem;
}

.header .links a {
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.header .links a:hover {
    color: var(--primary-bg);
    text-decoration: underline;
}

/* ======================
   HAMBURGER MENU
====================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* ======================
   HERO
====================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
}

.logo {
    width: 50vw;
    height: 50vw;
    max-width: 80vh;
    max-height: 80vh;
    border-radius: 10px;
    background: center / cover no-repeat url('./images/logoPlain.jpg');
}

.tagline p {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.3;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.highlight-blue {
    color: var(--accent-blue);
    font-weight: 700;
    font-style: italic;
}

/* ======================
   WHAT WE OFFER
====================== */
.what-we-offer,
.services-grid,
.service-card,
.services-grid h3 {
    text-align: center;
    width: 100%;
}

.what-we-offer {
    padding: 5% 2%;
    background-color: var(--secondary-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2%;
}

.section-subtitle {
    max-width: 80vw;
    margin: 0 auto 6%;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.5;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
}

.service-card {
    position: relative;
    width: 30vw;
    min-width: 300px;
    max-width: 350px;
    height: 35vh;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.1);
    z-index: 3;
}

.service-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.service-image.it-support { background-image: url('./images/ITSupport.webp'); }
.service-image.cctv      { background-image: url('./images/CCTV.jpg'); }
.service-image.hardware  { background-image: url('./images/HardwareSales.jpg'); }

.services-grid h3 {
    z-index: 4;
    font-size: clamp(3rem, 2vw, 2rem);
    letter-spacing: 0.15rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* ======================
   WHAT WE STAND FOR
====================== */
.what-we-stand-for {
    padding: 5% 2%;
}

.stand-for-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.stand-for-text {
    flex: 1 1 400px;
    min-width: 300px;
}

.stand-for-text h2 {
    font-size: 2.5rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.stand-for-text p {
    font-size: 1.3rem;
    line-height: 1.5;
}

.stand-for-images {
    flex: 1 1 400px;
    display: flex;
    gap: 1rem;
}

.person-image,
.pc-image {
    width: 48%;
    height: 450px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.person-image { background-image: url('./images/Matthew.JPG'); }
.pc-image     { background-image: url('./images/PC.jpg'); }

/* ======================
   GET IN TOUCH
====================== */
.get-in-touch {
    min-height: 80vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5% 2%;
    background: center / cover url('./images/GetInTouch.jpg');
}

.cta-title {
    font-size: 4rem;
    font-style: italic;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* ======================
   CONTACT FORM
====================== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    background-color: var(--primary-bg);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
}

.form-group {
    padding: 0.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    padding: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--accent-blue);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Anton', sans-serif;
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: var(--accent-blue);
}

/* ======================
   FOOTER
====================== */
.footer {
    padding-top: 2rem;
    background-color: var(--secondary-bg);
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.footer-item {
    padding: 0.5rem;
}

.footer-item h4 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.footer-item p,
.copyright {
    color: var(--text-gray);
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.footer-item a {
    color: var(--accent-blue);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.footer-item a:hover {
    color: var(--text-white);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--text-gray);
}

/* ----------------------------
   MOBILE MENU SLIDE-OUT
----------------------------- */
@media (max-width: 900px) {
    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Make nav links slide out */
    .header .links {
        position: fixed;
        top: 0;
        right: -100%;        /* hide off-screen initially */
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    /* Slide in when active */
    .header .links.active {
        right: 0;
    }

    /* Full width link styling */
    .header .links a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(74, 158, 255, 0.2);
    }

    .header .links a:hover {
        color: var(--accent-blue);
        padding-left: 10px;
        transition: padding-left 0.3s ease;
    }
}
