/*
Theme Name: HDP IT Services
Theme URI: https://hdp-it-services.co.uk
Author: Gemini
Author URI: https://gemini.google.com
Description: A modern, professional, and custom theme for HDP IT Services, an MSP specializing in cloud and cybersecurity.
Version: 2.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: it-services, msp, corporate, modern, purple
Text Domain: hdp-it-services
*/

/* --- Global Styles & Variables --- */
:root {
    --primary-purple: #5E35B1;
    --primary-purple-dark: #4527A0;
    --dark-grey: #212121;
    --medium-grey: #616161;
    --light-grey-bg: #F5F5F5;
    --white: #FFFFFF;
    --border-radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-grey);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

body.mobile-menu-open {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-grey);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem;}
h2 { font-size: 2.5rem; margin-bottom: 1rem;}
h3 { font-size: 1.75rem; margin-bottom: 1rem;}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-purple-dark);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-grey);
}
.site-title a:hover {
    color: var(--primary-purple);
}

/* Desktop Navigation */
.main-navigation {
    display: none; /* Hidden by default */
}
@media (min-width: 769px) {
    .main-navigation {
        display: block; /* Shown on desktop */
    }
}
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}
.main-navigation li a {
    color: var(--medium-grey);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}
.main-navigation li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-purple);
    transition: width 0.3s ease;
}
.main-navigation li a:hover:after,
.main-navigation li.current-menu-item a:after {
    width: 100%;
}
.main-navigation .contact-button a {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}
.main-navigation .contact-button a:hover {
    background-color: var(--primary-purple-dark);
}
.main-navigation .contact-button a:after {
    display: none;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Shown on mobile */
    }
}
.mobile-menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}
body.mobile-menu-open .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
.mobile-menu-container li a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}
.mobile-menu-container .contact-button a {
    font-size: 1.2rem;
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
}
.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-purple-dark);
    color: var(--white);
}

/* --- Homepage Specific Styles --- */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: #4527a0;
    background-image: linear-gradient(315deg, #4527a0 0%, #5e35b1 74%);
    color: var(--white);
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
}
.hero .sub-headline {
    font-size: 1.25rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.hero .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-purple-dark);
}

.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.services-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.service-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-item svg {
    width: 50px;
    height: 50px;
    color: var(--primary-purple);
    margin-bottom: 20px;
}
.service-item h3 {
    font-size: 1.5rem;
}
.service-item p {
    color: var(--medium-grey);
}
.text-center { text-align: center; margin-top: 40px;}

.bespoke-services {
    background-color: var(--light-grey-bg);
}
.bespoke-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.bespoke-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}
.bespoke-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.bespoke-item .sub-title {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.why-us {
    background-color: var(--white);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-us-item {
    text-align: center;
}
.why-us-item h3 { font-size: 1.5rem; }
.why-us-item p { color: var(--medium-grey); }

/* --- Services Page Styles --- */
.page-header {
    background-color: #4527a0;
    background-image: linear-gradient(315deg, #4527a0 0%, #5e35b1 74%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 60px;
    font-size: 0.95rem;
}
.services-table th, .services-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.services-table th {
    background-color: var(--light-grey-bg);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}
.services-table thead th:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}
.services-table thead th:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
.services-table td:first-child {
    font-weight: 600;
    color: var(--dark-grey);
}
.services-table td {
    color: var(--medium-grey);
    text-align: center;
}
.services-table .plan-name { text-align: center; }
.services-table .plan-price { font-size: 2rem; font-weight: 700; color: var(--dark-grey); display: block; }
.services-table .plan-period { font-size: 0.9rem; color: var(--medium-grey); }
.services-table .check {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: bold;
}
.services-table .cross {
    color: #bdbdbd;
    font-size: 1.5rem;
}

/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.founder-profile {
    background-color: var(--light-grey-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}
.founder-profile img {
    max-width: 150px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.founder-profile h3 { text-align: center; margin-bottom: 0.5rem; font-size: 1.75rem; }
.founder-profile .title { text-align: center; color: var(--primary-purple); font-weight: 600; margin-bottom: 20px; display: block; }
.founder-profile ul { list-style: none; padding: 0;}
.founder-profile ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
.founder-profile ul li:before {
    content: '✔';
    color: var(--primary-purple);
    position: absolute;
    left: 0;
}


/* --- Blog Styles --- */
.blog-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.post-card-image a {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
}
.post-card-content {
    padding: 30px;
}
.post-card-title a {
    color: var(--dark-grey);
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}
.post-card-title a:hover {
    color: var(--primary-purple);
}
.post-meta {
    font-size: 0.9rem;
    color: var(--medium-grey);
    margin-bottom: 15px;
}
.post-excerpt p {
    color: var(--medium-grey);
}
.read-more-link {
    font-weight: 600;
}
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}
.single-post-content .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.single-post-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}


/* --- Contact Page --- */
.contact-form-section {
    background-color: var(--light-grey-bg);
}
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary-purple);
    border-color: var(--primary-purple);
}
/* Use this class on the element that contains the shortcode */
.wpforms-container {
    margin: 0;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--dark-grey);
    color: #e0e0e0;
    padding: 40px 0 20px 0;
    text-align: center;
    margin-top: 80px;
}
.site-footer a {
    color: var(--white);
}
.site-footer a:hover {
    color: var(--primary-purple);
}

.social-media-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-media-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-media-links a:hover {
    transform: translateY(-3px);
}

.social-media-links svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: fill 0.3s ease;
}

.social-media-links a:hover svg {
    fill: var(--primary-purple);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }

    .about-content { grid-template-columns: 1fr; }
    .founder-profile { margin-top: 40px; }

    .services-overview { grid-template-columns: 1fr; }
    .bespoke-services-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; gap: 50px; }

    .services-table { font-size: 0.8rem; }
    .services-table th, .services-table td { padding: 10px 5px; }
}
