/*
Theme Name: WE Consult IT
Theme URI: https://weconsultit.co.uk
Author: WE Consult IT
Author URI: https://weconsultit.co.uk
Description: A professional, tech-forward WordPress theme for IT consulting services targeting small and medium businesses.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weconsultit
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #00a8e8;
    --accent-color: #00d4ff;
    --dark-bg: #1a1a2e;
    --dark-section: #16213e;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-logo img {
    max-height: 50px;
    margin-right: 1rem;
}

.logo-text {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 0.9rem;
    }
}

/* Desktop navigation - target the ul inside nav */
nav.main-navigation ul.main-navigation,
.main-navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav.main-navigation ul.main-navigation a,
.main-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav.main-navigation ul.main-navigation a:hover,
.main-navigation a:hover {
    color: var(--primary-color);
}

nav.main-navigation ul.main-navigation a::after,
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav.main-navigation ul.main-navigation a:hover::after,
.main-navigation a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-section) 100%);
    color: var(--text-light);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 1.5rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item h4::before {
    content: '✓';
    background: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.feature-item p {
    color: var(--text-secondary);
    margin-left: 2rem;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries-section {
    background: var(--light-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.industry-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
}

.industry-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-card-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-card a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ============================================
   CONTACT FORM 7 STYLING
   ============================================ */
/* Force styling on all Contact Form 7 elements */
.wpcf7 * {
    box-sizing: border-box;
}

.wpcf7 {
    max-width: 100%;
    margin: 0 auto;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form .form-group {
    margin-bottom: 1.5rem;
}

/* Form Labels - More specific selectors */
.wpcf7 label,
.wpcf7-form label,
.wpcf7-form p label {
    display: block !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
}

.wpcf7 label .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
}

/* Form Inputs - More specific selectors */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select,
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
    background-color: var(--white) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

.wpcf7 textarea,
.wpcf7-form textarea,
.wpcf7-form-control-wrap textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Submit Button - More specific selectors */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit,
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-block !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    background: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2) !important;
    width: auto !important;
    min-width: 150px !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3) !important;
    transform: translateY(-1px) !important;
}

.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

/* Validation Messages */
.wpcf7-response-output {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.wpcf7-spam {
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

/* Field Validation */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-not-valid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.wpcf7-valid {
    border-color: #28a745;
}

/* Cloudflare Turnstile Styling */
.wpcf7 .g-recaptcha,
.wpcf7 .cf-turnstile,
.wpcf7-turnstile {
    margin: 1rem 0;
}

/* Turnstile widget container */
.wpcf7 .cf-turnstile {
    display: block;
    width: 100%;
}

/* Loading Spinner */
.wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wpcf7 input[type="submit"],
    .wpcf7 .wpcf7-submit {
        width: 100%;
        padding: 1rem;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-numbers.current {
    font-weight: 600;
}

/* ============================================
   ENTRY CONTENT STYLING
   ============================================ */
.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content img {
    margin: 2rem 0;
    border-radius: 8px;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    border-radius: 5px;
    transition: var(--transition);
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   PAGE TITLE HIDING (Pages have hero sections with titles)
   ============================================ */
.page .entry-header,
.page .entry-title {
    display: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav.main-navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0;
        box-shadow: var(--shadow);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    nav.main-navigation.active {
        max-height: 500px;
        padding: 1rem;
    }

    nav.main-navigation ul.main-navigation {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
        width: 100%;
    }

    nav.main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav.main-navigation li:last-child {
        border-bottom: none;
    }

    nav.main-navigation a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    nav.main-navigation a::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

