/* 
 * CECURE TECHNOLOGIES WEBSITE - https://cecure.uk
 * 
 * This website uses Bootstrap 5.3.2 for:
 * - Responsive navigation with mobile hamburger menu
 * - Grid system and responsive utilities
 * - Component styling and JavaScript functionality
 * 
 * Header Design:
 * - Professional blue header (#5f7d9e) with white text
 * - Contact button in complementary blue (#a3bcd6)
 * - Larger, more prominent logo placement
 * 
 * Contact Information:
 * - Email: support@cecure.uk
 * - Phone: 01332 913 303
 * - Website: https://cecure.uk
 * 
 * Logo Implementation:
 * - Header logo: /assets/img/cecure_logo.jpg (84px - increased by 20%)
 * - Footer logo: /assets/img/cecure_logo_footer.png (60px)
 * - Favicon: /assets/img/favicon.png
 * - All logos are properly integrated and responsive
 * 
 * Service Cards:
 * - Fixed height layout (400px) for consistent presentation
 * - Structured with header, content, and footer sections
 * - Image and title at top, description in middle, CTA at bottom
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #5f7d9e;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 80px; /* Reduced from 90px */
}

.navbar-brand {
    color: white !important;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.15rem; /* Reduced from 0.25rem */
    padding: 0.3rem 0.6rem !important; /* Reduced from 0.4rem 0.8rem */
    border-radius: 6px;
    font-size: 0.7rem; /* Reduced from 0.8rem */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar-nav {
    align-items: center;
    height: 80px; /* Reduced from 90px */
    display: flex;
    align-items: center;
}

/* Ensure the navbar collapse shows the centered nav on larger screens */
.navbar-collapse {
    flex-grow: 0;
    justify-content: center;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-collapse {
        position: absolute;
        left: 0;
        right: 0;
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 5;
        height: 80px; /* Reduced from 90px */
    }
    
    .navbar-toggler {
        margin-left: auto;
    }
}

.contact-btn {
    background: #a3bcd6 !important;
    color: #2d3748 !important;
    border-radius: 16px !important; /* Reduced from 20px */
    padding: 0.35rem 0.8rem !important; /* Reduced from 0.5rem 1.2rem */
    margin-left: 0.4rem !important; /* Reduced from 0.8rem */
    box-shadow: 0 3px 12px rgba(163, 188, 214, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.65rem; /* Reduced from 0.75rem */
    white-space: nowrap;
}

.contact-btn:hover {
    color: #2d3748 !important;
    background: #8fb0d3 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(163, 188, 214, 0.4);
}

/* Bootstrap navbar toggler styling */
.navbar-toggler {
    border: 2px solid white;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand styling */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-brand .logo {
    font-size: 1.3rem; /* Slightly reduced */
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: white;
}

.navbar-brand .tagline {
    font-size: 0.7rem; /* Slightly reduced */
    opacity: 0.9;
    color: #e2e8f0;
}

/* Logo styling for actual Cecure Technologies logo */
.logo-container {
    width: 75px; /* Slightly reduced from 84px for better fit */
    height: 75px; /* Slightly reduced from 84px for better fit */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

/* Footer logo styling */
.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 240px; /* Increased by 300% from 60px */
    height: 240px; /* Increased by 300% from 60px */
    object-fit: contain;
}

.footer-logo-container h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #a8d5ff;
}

/* Add shield icons throughout the site */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.security-badge::before {
    content: "🛡️";
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #a8d5ff 0%, #c5e3ff 50%, #e6f3ff 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4a5568;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #a8d5ff;
}

.btn-outline:hover {
    background: #a8d5ff;
    color: #2d3748;
}

/* Services Section */
.services-overview {
    padding: 4rem 0;
    background: white;
}

.services-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Responsive grid for 8 services */
@media (min-width: 1600px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1599px) and (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 480px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card-header {
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
    border-bottom: 1px solid rgba(168, 213, 255, 0.3);
    height: 140px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    height: 3rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2d3748;
    line-height: 1.3;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-content {
    padding: 2rem 2rem 5rem 2rem;
    flex: 1;
}

.service-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.service-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem 2.5rem 2rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.service-card .btn-outline {
    width: 100%;
    padding: 0.75rem 1rem;
}

/* Local Focus Section */
.local-focus {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
}

.local-focus h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

.local-focus > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #4a5568;
}

.location-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.location {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.location h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.location p {
    color: #4a5568;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact > .container > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #4a5568;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-method h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.contact-method p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-method .small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #a8d5ff 0%, #c5e3ff 50%, #e6f3ff 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.page-hero p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Details */
.service-details {
    padding: 4rem 0;
    background: white;
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

.service-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.response-times {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.response-times li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #a8d5ff;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #a8d5ff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #a8d5ff;
}

.contact-info {
    margin-top: 1rem;
}

.office-hours {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .navbar-brand {
        order: 1;
        align-self: flex-start;
        margin-bottom: 0;
    }
    
    .navbar-toggler {
        order: 2;
        align-self: flex-end;
        position: absolute;
        top: 0.5rem;
        right: 1rem;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        flex-direction: column;
    }
    
    .navbar-nav .nav-link {
        color: #2d3748 !important;
        padding: 0.5rem 0.8rem !important; /* Slightly reduced */
        margin: 0.15rem 0; /* Reduced from 0.2rem */
        border-radius: 6px;
        font-size: 0.7rem; /* Reduced to match desktop */
    }
    
    .navbar-nav .nav-link:hover {
        color: #4a5568 !important;
        background-color: rgba(95, 125, 158, 0.1);
    }
    
    .contact-btn {
        margin-left: 0 !important;
        margin-top: 0.4rem !important; /* Reduced from 0.5rem */
        text-align: center;
        font-size: 0.65rem; /* Reduced to match desktop */
    }
    
    .navbar-brand .logo {
        font-size: 1.2rem; /* Slightly reduced */
    }
    
    .navbar-brand .tagline {
        font-size: 0.65rem; /* Slightly reduced */
    }
    
    .logo-image {
        width: 45px; /* Adjusted from 48px */
        height: 45px; /* Adjusted from 48px */
    }
    
    .footer-logo {
        width: 70px; /* Proportionally smaller for tablet */
        height: 70px; /* Proportionally smaller for tablet */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .location-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .navbar-brand .logo {
        font-size: 1.1rem; /* Slightly reduced */
    }
    
    .navbar-brand .tagline {
        font-size: 0.6rem; /* Slightly reduced */
    }
    
    .logo-image {
        width: 38px; /* Adjusted from 42px */
        height: 38px; /* Adjusted from 42px */
    }
    
    .footer-logo {
        width: 60px; /* Proportionally smaller for mobile */
        height: 60px; /* Proportionally smaller for mobile */
    }
    
    .footer-logo-container {
        flex-direction: column;
        align-items: flex-start; /* Ensure top alignment on mobile too */
        gap: 0.5rem;
    }
    
    .service-card {
        height: 420px !important;
    }
    
    .service-card-header {
        height: 120px !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        height: 2.4rem;
    }
    
    .service-card-content {
        padding: 2rem 2rem 4.5rem 2rem;
    }
}